The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by aayushbhatta62, 2021-09-23 10:48:50

JBD Computer Studies Book 9

JBD Computer Studies Book 9

Keywords: JBD Publication, Kathmandu, Latest edition, Nepal, JBD Computer Studies Book 9, aayushbhatta62

f. Given the following numbers.
28, 23, 25, 12, 26, 76, 45, 48, 41, 15
Write a program to count the even and odd numbers separately.
g. Write a program to print the following table:
i. 2 3 4 5 = 14
3 4 5 6 = 18
4 5 6 7 = 22

ii. 2 3 4 5
3 4 5 6
4 5 6 7
================
9 12 15 18

iii. 2 4 6 3 = 15
6 8 4 7 = 25
9 5 5 5 = 24
===================
17 17 15 15
h. Write a program to input name of five students and arrange them in the

descending order.
i. Write a program to input names of your friend in alphabetical order and

their telephone numbers using an array. The computer should output the
name followed by the correct telephone number.

In the Lab

1. Write a program to input the names and salary of five employees and the
program should display the names and salary of employees whose salary is
greater than 6000.

2. Write a program to input ten numbers and the program should display
the largest and smallest values stored in the array.
3. Write a program to read 10 different positive numbers and print the sum of

even numbers only.
4. Write a program to read 10 numbers using single dimension and count the

odd and even numbers separately.

JBD
Computer Studies-9 251

5. The examination result of 20 students in a class are tabulated as
follows:

Roll no
Science
Nepali
English
Write a program to read the data and determine the following:
a. Total marks obtained by each student.
b. The lowest mark in each subject and the roll number of the student who

achieved it, and
c. The highest total marks and roll number of the student who obtained

it.
6. Write a program that lets the user enter the total rainfall for each of twelve

months into an array. The program should calculate and display the total
rainfall for the year, the average monthly rainfall, and the month with the
highest and lowest amounts.
7. A company produces six categories
of products and the number of
items sold are recorded product-wise
for every month. Write a program to calculate the total cost of the products
sold every month from January through December and the grand total for
the entire year.
8. Write a program to sort a set of randomly entered numbers in descending
order by bubble sort method.
9. Write a program to input name of five students and arrange them in the
descending order.
10. Write a program to input names of your friend in alphabetical order and
their telephone numbers using an array. The computer should output the
name followed by the correct telephone number.
11. Write a program to print the following table:
a. 2 3 4 5 = 14
3 4 5 6 = 18
4 5 6 7 = 22

b. 2 3 4 5
3 4 5 6
4 5 6 7
==================
9 12 15 18

JBD
252 Computer Studies-9

M T PODEL EST APER

Time : 1 hrs 30 min. F.M: 50
P.M: 16

4×2=8
Group A

Computer Fundamentals (20 Marks)
1. Answer the following questions:

a. Name the inventor and date of invention of slide rule.

b. What is primary memory? Name any two primary memories of
computer.

c. List any two positive impacts and two negative impacts of computer in society.

d. “Information Technology helps increase the economic condition of a
country.” Justify this statement.

2. a. Convert the following as indicated: 2×1=2

i. (745)8 into hexadecimal 2×1=2
ii. (945)10 into binary
b. Perform the following binary calculation:

i. (111100)2 + (11001)2 ÷ (11)2 ii. (11101)2 - (110)2 + (110)2

3. Write the full forms: 4 x 0.5 = 2

FORTRAN, ALU, COBOL, DRAM

4. Match the following: 4 x 0.5 = 2

MS-Access Magnetic storage medium

Hard Disk Software

CPU Optical storage medium

DVD Processing unit

Output device 4 x 0.5 = 2
5. Fill in the blanks with suitable words:

a. Microprocessor belongs to____________ generation of computer.

b. ________________ is used to make menu selection and draw freehand
shapes on a screen.

c. _________________ is capable of storing 4.7 GB to 17 GB.

d. _________________ is any connector that passes data in and out of a
computer or peripheral device.

JBD
Computer Studies-9 253

6. Write down the single technical term for the following statements: 4 x 0.5 = 2

a. Early counting device using beads on strings.

b. The computer which works on the basis of signal produced due to the
variation in physical quantities.

c. The system diagnostic program stored in ROM.

d. Application software is a computer program designed to handle a
particular task required by the end-user.

Group B

Operating System (5 Marks) 1
7. Write any two principal functions of operating system. 2×1= 2

8. Write down the commands to accomplish the following tasks.

a. To assign volume label Jay to the drive D:

b. To show all the files that have BAT extension from root directory of drive C.

9. Answer the following questions: 2×1=2
a. What is an icon?
b. What is a mouse pointer?

Group C 3×1=3
HTML (5 Marks)
10. Answer the following questions:

a. What are the components of World Wide Web?
b. What are the three basic HTML document tags?
c. What is the function of <BR> tag?

11. State whether the following statements are true or false: 4×0.5=2

a. HTML allows linking to other HTML documents as well as images.

b. LOOP attribute sets the number of times between each successive scrolling
of the marquee text.

c. The CENTER element uses (<CENTER>…….</CENTER>) tag to move
the text to the center alignment.

d. ALINK attribute defines the colour of the link as it is being clicked.

JBD
254 Computer Studies-9

Group D 1
Programming (20 Marks) 1
12. a. Write any four features of high level programming language. 1
b. What do you meant by source program?
c. What is the use of SELECT CASE?

13. a. Draw a flowchart to find the sum of squares of first N numbers as stated by the

expression:

S = 12 + 22 + 32 + 42 +………..+ N2 where N is number supplied by the user. 2

b. Write down the output of the following program: 2
N $ = “Computer Studies” 4
N$ = UCASE$(N$)
FOR counter = 1 to LEN(N$)
C$ = MID$ (N$,counter,1)
SELECT CASE C$
CASE = “A”, “E” , “I” , “O” , “U”
C=C+1
END SELECT
NEXT counter
PRINT “Number of vowels are:”; C
END

14. Read the following program and answer the given questions:
CLS
DIM A(15)
INPUT N
FOR I = 1 TO N
INPUT A(I)
NEXT I
FOR I = 1 TO N
FOR J = 1 TO N-1
IF A(J) >= A(J+1) THEN


JBD
Computer Studies-9 255

TEMP = A (J)
A(J) = A(J+1)
A(J+1) = TEMP
END IF
NEXT J
NEXT I
FOR I = 1 TO N
PRINT A(I)
NEXT I
END

a. How many numbers is the program able to process?
b. What happens if you type 16 number?
c. What modification is required in the program to accept 16 numbers?
d. If the input numbers are 7 , 23 , 6 , 8 , 1 and 12, write down the output?

15.

a. Write a program which generates the first ten numbers in Fibonacci

sequence 1 , 1 , 2 , 3 , 5 , 8,…. 3

b. Write a program to check whether the entered number is Armstrong or
not 3

c. Write a program to read a number in inches and convert it into feet and
inches. 3

888

JBD
256 Computer Studies-9


Click to View FlipBook Version