Buddhanagar, Kathmandu
SECOND TERM EXAM - 2077
Subject: Computer Science
Class: X (Ten) Full Marks: 50
Pass Marks: 20
Time: 1:30 hrs.
Class: X (Ten) Full Marks: 50
Pass Marks: 20
- Answer the following questions in one sentence. [6×1=6]
- Define LAN.
- What are the components of data communication?
- Which data type is used to store link address?
- Write down the criteria for a query which display all records having Name start with ‘P’.
- Define global variable.
- List any two similarities between QBASIC and C.
- Write appropriate technical terms for the following: [2×1=2]
- Data transmission in one direction only that is to send or receive only
- A company which provides internet facility
- Write the full forms of the following: [2×1=2]
- STP
- BNC
- Answer the following questions. [9×2=18]
- Differentiate between bridge and router.
- Define computer network and protocol.
- Compare simplex and half duplex.
- Write any two advantages of computer network.
- Write down the role of NIC in a computer network.
- Compare database and DBMS.
- What is primary key? List any two advantages of it.
- What do you mean by Query? Write its uses.
- Define ‘sorting’ and ‘filtering’.
- Write down the output of the given program. Show with dry run in table. [2] Declare sub result ()
- Re-write the given program after correcting the bugs. [2] REM program to print 4 4 8 12 20 ... 20th terms
- Study the following program and answer the given questions. [2×1=2] Declare sub table (n)
- Write the name of procedure name used in above program.
- List the operator used in above program with its type.
- Convert/calculate as per the instruction. [4×1=4]
- (DAD)16 = (?)2
- (2021)8 = (?)10
- (1011)2 + (1010)2 – (110)2
- (10101)2÷ (100)2
-
- Write a QBASIC program to find the square root of supplied number using Sub ... End Sub. [4]
- Write a QBASIC program to find the product of digits of a supplied positive number using Sub ... End Sub [4]
- Write a C program to find greatest among three different numbers.[4]
OR
Write a C program to test whether the supplied number is prime or composite.[4]
Group ‘A’ (10 Mark)
Group ‘B’ (24 Mark)
Call result
End
Sub result ()
N=5
C=1
WHILE C<=5
PRINT N
N=N*10+5
C=C+1
WEND
End Sub
DECLARE SUB series()
CLS
EXECUTE Series
END
SUB Series
X = 4
Y = 4
FOR ctr = 10 to 1
DISPLAY X;Y;
X=X+Y
Y=X+Y
Next ctr
End Series
Input “Enter any number”, n
Call table (n)
End
Sub table (n)
For I = 1 to 10
Ans = n * i
Print Ans
Next i
End Sub
Group ‘C’ (16 Mark)
The End