(X) Second Term Exam 2077

ROSEBUD SCHOOL
Buddhanagar, Kathmandu
SECOND TERM EXAM - 2077
Subject: Computer Science
Class: X (Ten)
Full Marks: 50
Pass Marks: 20

Time: 1:30 hrs.
    Group ‘A’ (10 Mark)
  1. Answer the following questions in one sentence. [6×1=6]
    1. Define LAN.
    2. What are the components of data communication?
    3. Which data type is used to store link address?
    4. Write down the criteria for a query which display all records having Name start with ‘P’.
    5. Define global variable.
    6. List any two similarities between QBASIC and C.
  2. Write appropriate technical terms for the following: [2×1=2]
    1. Data transmission in one direction only that is to send or receive only
    2. A company which provides internet facility
  3. Write the full forms of the following: [2×1=2]
    1. STP
    2. BNC
    Group ‘B’ (24 Mark)
  4. Answer the following questions. [9×2=18]
    1. Differentiate between bridge and router.
    2. Define computer network and protocol.
    3. Compare simplex and half duplex.
    4. Write any two advantages of computer network.
    5. Write down the role of NIC in a computer network.
    6. Compare database and DBMS.
    7. What is primary key? List any two advantages of it.
    8. What do you mean by Query? Write its uses.
    9. Define ‘sorting’ and ‘filtering’.
  5. Write down the output of the given program. Show with dry run in table. [2]
  6. Declare sub result ()
    Call result
    End

    Sub result ()
    N=5
    C=1
    WHILE C<=5
    PRINT N
    N=N*10+5
    C=C+1
    WEND
    End Sub
  7. Re-write the given program after correcting the bugs. [2]
  8. REM program to print 4 4 8 12 20 ... 20th terms
    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
  9. Study the following program and answer the given questions. [2×1=2]
  10. Declare sub table (n)
    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
    1. Write the name of procedure name used in above program.
    2. List the operator used in above program with its type.
    Group ‘C’ (16 Mark)
  11. Convert/calculate as per the instruction. [4×1=4]
    1. (DAD)16 = (?)2
    2. (2021)8 = (?)10
    3. (1011)2 + (1010)2 – (110)2
    4. (10101)2÷ (100)2
    1. Write a QBASIC program to find the square root of supplied number using Sub ... End Sub. [4]
    2. Write a QBASIC program to find the product of digits of a supplied positive number using Sub ... End Sub [4]
  12. 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]
The End