SEE – Class 10 – Computer Science Model Questions with Solution (SET 4)
Subject: Opt. II (Computer Science) SET 3
Full Marks: 50 Time: 2:00 hrs
Candidates are required to give their answers according to the instructions.
Attempt all the questions.
Group ‘A’ – [10×1=10]
1. Answer the following questions in one sentence: [6×1=6]
a. What is network protocol?
A network protocol is a set of rules and standards that allow computers to communicate and exchange data over a network.
b. What is e-commerce?
E-commerce (Electronic Commerce) is the buying and selling of goods and services online using the Internet.
c. What is the default size of the text field in MS Access?
The default size of the text field in MS Access is 255 characters.
d. Which data type is used to store a photo in MS Access?
The OLE Object data type is used to store photos in MS Access.
e. What is looping?
Looping is a programming concept where a set of instructions is repeated until a certain condition is met.
f. List any two data types used in C programming language.
- int (for integers)
- float (for decimal numbers)
2. Write appropriate technical term for the following: [2×1=2]
a A program that can disinfect a file from virus. Antivirus
b. Learning through the electronic media. E-Learning
3. Write the full form of the following: [2×1=2]
i. G2G = Government to Government
ii. ISP = Internet Service Provider
Group ‘B’ – [9×2=18]
4. Answer the following questions:
a. What is network topology? List any two types of network topology.
Network topology refers to the arrangement or layout of devices (nodes) and connections in a computer network.
Two types of network topology:
- Star topology
- Bus topology
b. What is antivirus software? Name any two popular antivirus software.
Antivirus software is a program designed to detect, prevent, and remove malicious software like viruses from a computer.
Two popular antivirus software:
- Avast antivirus
- Norton antivirus
c. Define cyber law and cybercrime.
- Cyber law: The legal framework that governs activities in the digital world, including internet use and online transactions, is called cyber law.
- Cybercrime: Illegal activities conducted using computers or the internet, such as hacking, phishing, and identity theft, are called cybercrime.
d. Define virtual reality. Write any two areas where virtual reality is used.
- Virtual reality (VR): A simulated environment created by computer technology, allowing users to interact with it as if it were real.
- Areas where VR is used:
- Gaming
- Medical training
e. What is a password? Write any two importance of password protection.
A password is a secret code that restricts access to a system, account, or data.
Importance of password protection:
- Prevents unauthorized access.
- Protects sensitive and personal information.
f. What is DBMS? Write four objects of Ms-Access.
DBMS (Database Management System): A software tool that manages, organizes, and retrieves data efficiently is called DBMS.
Four objects of Ms-Access:
- Table
- Query
- Form
- Report
g. What is validation text and validation rule?
- Validation rule: A condition set on a field to ensure that only valid data is entered is called validation rule.
- Validation text: The message displayed when invalid data is entered, explaining the error is called validation text.
h. What is form? Write two advantages of it.
A form is a user-friendly interface in a database that allows users to input, view, and edit data easily.
Advantages of forms:
- Simplifies data entry.
- Ensures data consistency and accuracy.
i. What is a record? Why is the primary key necessary in a record?
Record: A complete data set about a single entity stored as a row in a table.
Importance of primary key:
- Uniquely identifies each record.
- Prevents duplication in the database.
5. Write down the output of the given program. Show with a dry run in the table. [2]
DECLARE SUB Series (A)
CLS
A=20
CALL Series (A)
END
SUB Series (A)
FOR K = 1 to 5
PRINT A;
A = A+10
NEXT K
END SUB
Dry Run Table | |||
A (Before Update) | K | Output | A (After A = A + 10) |
20 | 1 | 20 | 30 |
30 | 2 | 30 | 40 |
40 | 3 | 40 | 50 |
50 | 4 | 50 | 60 |
60 | 5 | 60 | 70 |
Output is: 20 30 40 50 60
6. Re-write the given program after correcting the bugs: [2]
DECLARE FUNCTION Rev$(N$)
CLS
LNPUT "Enter a word"; N$
DISPLAY "Reversed is"; Rev$(N$)
END
EUNCTION Rev$(N$)
FOR K= LEN$(N$) TO 1 STEP-1
B$=B$+MID$(NS,1,K)
NEXT K
B$=Rev$
END FUNCTION
Program after correcting bugs is:
DECLARE FUNCTION Rev$(N$)
Cls
Input "Enter a word"; N$
Print "Reversed is: l"; Rev$(N$)
End
Function Rev$ (N$)
For K = Len(N$) To 1 Step -1
B$ = B$ + Mid$(N$, K, 1)
Next K
Rev$ = B$
End Function
7. Study the following program and answer the given questions: [2]
DECLARE FUNCTION SUM (N)
ClS
Input "Enter any number"; N
X = SUM(N)
Print "The sum of individual digit is"; X
End
Function SUM (N)
While N <> 0
R = N Mod 10
S = S + R
N = Int(N / 10)
Wend
SUM = S
End Function
a. What is the function of INT?
The INT
function in the program returns the integer part of a number by removing its fractional part.
b. How many times does the While … Wend loop repeat if the value of N is 123?
The loop repeats 3 times before N
becomes 0.
Group ‘C’ [4×4=16]
8. Convert/calculate as per the instruction: [4]
i. (10110011) 2 =(?) 16

(10110011) 2 =(B3) 16
ii. (1001 + 110) 2 -(1000) 2
1001
+0110
-------
1111
-1000
-------
0111
(1001 + 110)₂ – (1000)₂ = (0111)₂
iii. (410) 10 =(?) 2
410 ÷ 2 = 205 remainder 0
205 ÷ 2 = 102 remainder 1
102 ÷ 2 = 51 remainder 0
51 ÷ 2 = 25 remainder 1
25 ÷ 2 = 12 remainder 1
12 ÷ 2 = 6 remainder 0
6 ÷ 2 = 3 remainder 0
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
(410)₁₀ = (110011010)₂
iν. (10110) 2 /(101) 2

Q= 100
R= 10
9. a. Write a program in QBASIC that asks the radius of a circle to calculate its area and circumference. Create a user-defined function to calculate area and a sub-program to calculate the circumference. (HINT A = pi * r ^ 2 C = 2pi*rl) [4]
CLS
DECLARE FUNCTION ARE(R)
DECLARE SUB CIR (R)
INPUT "ENTER RADIUS: ";R
PRINT "AREA IS: ";ARE(R)
CALL CIR(R)
END
FUNCTION ARE(R)
ARE = 3.17*R*R
END FUNCTIOON
SUB CIR(R)
C = 2*3.14*R
PRINT "CIRCUMFERENCE IS: ";C
END SUB
b. A sequential data file called “Record.dat” has stored data under the field headings: Roll No., Name, Gender, English, Nepali, Maths and Computer. Write a program to display all the information to those students whose mark is in English is more than 40.
OPEN “Record.txt” FOR INPUT AS #1
CLS
PRINT “Roll No”, “Name”, “Gender”, “English”, “Nepali”, “Maths”, “Computer”
WHILE NOT EOF(1)
INPUT #1, r, n$, g$, e, n, m, c
IF e>40 THEN
PRINT r, n$, g$, e, n, m, c
END IF
WEND
CLOSE #1
END
10. Write a program in C-language that asks for any two numbers and displays the greatest among them.
#include <stdio.h>
int main() {
int num1, num2;
printf("Enter the first number: ");
scanf("%d", &num1);
printf("Enter the second number: ");
scanf("%d", &num2);
if (num1 > num2) {
printf("%d is the greatest number.\n", num1);
} else if (num2 > num1) {
printf("%d is the greatest number.\n", num2);
} else {
printf("Both numbers are equal.\n");
}
return 0;
}
OR
Write a program in C-language to display the series with their sum.
1, 2, 3, 4 ….., up to 10th term.
#include <stdio.h>
int main() {
int sum = 0;
printf("The series is: ");
for (int i = 1; i <= 10; i++) {
printf("%d ", i);
sum += i;
}
printf("\nThe sum of the series is: %d\n", sum);
return 0;
}