Computer Science
Questions
SEE Computer Science Model Question
New Model question of Class 10 Computer science
Secondary Education Examination
Model Question
Subject: Computer Science Time:1:30 hr. FM: 50
Group ‘A’ - 10 marks
1. Answer the following questions in one sentence: [6x1=6]
a. What is a search engine?
b. What is the business done through the internet?
c. Which data type is used to store numeric characters or special symbols in MS Access?
d. Which view is used to modify a table in MS Access?
e. What is Modular Programming?
f. Write any two features of C language.
2. Write the appropriate technical term for the following: [2x1 =2]
a. Law that governs the legal issues of cyberspace.
b. The smallest unit to represent information on a quantum computer.
3. Write the full form of the following: [2x1=2]
I. STP II. WAP
Group ‘B’ - 24 marks
4. Answer the following questions: [9x2=18]
a. What is a computer network? Enlist any two advantages of it.
b. What is computer ethics? Write any two of them.
c. What is software security? Write any two measures of hardware security.
d. What is m-Commerce? Write its two important services.
e. What is IoT? Write any two importance of it.
f. What is a database? Give any two examples.
g. What is a primary key? List any two advantages of it.
h. What is data sorting? List any two advantages of using it.
i. What types of work is done in MS Access using Form and query objects?
5. Write down the output of the given program. Show with a dry run in the table. [2]
DECLARE SUB SHOW (A)
CLS
N = 87
CALL SHOW (N)
END
SUB SHOW (A)
DO
B = A MOD 6 + 3
IF B MOD 4 = 0 THEN
GOTO AA
PRINT B;
AA:
A = A - 10
LOOP WHILE A >= 50
END SUB
6. Re-write the given program after correcting the bugs: [2]
REM to add record in an existing file
CLS
OPEN “Record.Dat” FOR OUTPUT AS #1
AA:
INPUT “Enter Name, Class and Roll No. “; Nm$, Cl, Rn
INPUT #2, Nm$, Cl, Rn
INPUT “More records “; Y$
IF UCASE$(Y$) = “Y” THEN
GOTO aa
CLOSE “Record.dat”
END
7. Study the following program and answer the given questions: [2]
OPEN “Detail.dat” FOR INPUT AS #1
OPEN “Temp.dat” FOR OUTPUT AS #2
INPUT “Enter name of the students “; Sn$
FOR I = 1 TO 10
INPUT #1, Nm$, Cl, A
IF Sn$ < > Nm$ THEN
WRITE #2, Nm$, Cl, A
END IF
NEXT I
CLOSE #1, #2
KILL “Detail.dat”
NAME “Temp.dat” AS “Detail.dat”
END
-
- What is the main objective of the program given above?
- Do you get any problem in the above program if the “Kill” statement is removed? Give reason.
Group 'C' [4x4=16]
8. Convert/calculate as per the instruction: [4]
-
- (11001101)2 = (?)16
- (524)10 = (?)2
- (1010)2 x (110)2 – (1011)2 = (?)2
- (10110)2 ÷ (101)2
9. a. Write a program in QBASIC that asks the length, breadth and height of a room and calculates its area and volume. Create a user-defined function to calculate area and a sub-program to calculate volume. Hint: [A = LxB], [V = LxBxH] [4]
b. A sequential data file called “Record.txt” has stored data under the field heading Roll No., Name, Gender, English, Nepali, Maths and Computer. Write a program to display all the information of those students whose gender is ‘F' and who obtained marks in the computer is more than 90. [4]
10. Write a program in C language that asks for a number and checks whether it is odd or even. [4]
OR
Write a program in ‘C' language to display the series with their sum. 1,2,3,4,….., up to 10th terms.
SEE QBASIC Solutions
Program to display the multiplication table of any supplied number:
CLS
INPUT "Enter any number ";num
i = 1
DO
product = num * i
PRINT num;" x ";i;" = ";product
i = i+1
LOOP WHILE i<=10
END
Program to display the first 10 natural numbers and their sum.
CLS
i=1
sum=0
DO
PRINT "number: ";i
sum=sum+i
PRINT "Sum: ";sum
i=i+1
LOOP WHILE i<=10
END
Program to ask any number and displays its factors.
CLS
INPUT "Enter any number";num
i=1
DO
IF num MOD i = 0 THEN
PRINT i; " is the factor of ";num
END IF
i=i+1
LOOP WHILE i<=num
END
Factors of any number are those natural numbers that can divide the original number without leaving any remainder (or makes remainder 0). Example: Since, there are only 9 natural numbers, from 1 to 9, we can check the factors by dividing 9 by 1 to 9 each. Thus, we can conclude that only 1, 3 and 9 are factors of 9.
In the above program, MOD
returns the remainder so if "num" is divided by "i" (counter/increment value) and the remainder is 0 then that particular value of "i" is the remainder of "num".