(X) Vidhyarthi Publication Model Set 2076/77

Computer Science (Optional II)
SEE (Model Questions)
Time: 1 hr 30 Min                                                                                      Full Marks:50
Group 'A' (10 Marks)
  1. Answer the following questions in one sentence. [6×1=6]
    1. What is the Internet?
    2. What is browser?
    3. Which is the logical data type of MS Access?
    4. Which view is used to modify a table in MS Access?
    5. What is structure programming language?
    6. Write any two data types of C language.
  2. Write appropriate technical terms for the following: [2×1=2]
    1. Crimes committed using electronic devices and cyber space
    2. A malicious program of computer that damages data and software
  3. Write the full forms of the following: [2×1=2]
    1. UTP
    2. WWW
Group 'B' (24 Marks)
  1. Answer the following questions.   [9×2=18]
    1. What is computer network? Write any two disadvantages of it.
    2. What is cyber ethics? Write any two cyber ethics.
    3. What is hardware security? Write the role of UPS in hardware security.
    4. What is e-banking? Write any two uses of it.
    5. What is database management system? Give two examples.
    6. What is database? Give any two examples.
    7. Define field and record.
    8. What is report? Write its use.
    9. Define form. Write any two uses of it.
  2. Write the output of the given program: (Workout with dry run). [2]
    DECLARE SUB OUTPUT1 (A)
    CLS
    N=135
    CALL OUTPUT1(N)
    END
    
    SUB OUTPUT1(A)
    DO WHILE A<>0
        R= A MOD 10
        T=T+R
        A=A\10
    LOOP
    PRINT T
    END SUB
    
  3. Re-write the given program after correcting the bugs. [2]
    REM to create a new data file
    CLS
    OPEN "ABC.DAT" FOR INPUT AS #1
    DO
        INPUT "Enter Name, Roll No and Total. "; N$,R,T
        INPUT #1, N$, R,T
        INPUT "Supply more records Y/N"; CS
    LOOP WHILE UCASE$(Y$)="Y"
    CLOSE #1
    END
    
  4. Study the following program and answer the given questions. [2×1=2]
    OPEN "EMP.DAT" FOR INPUT AS#1
    DO
        INPUT #1, N$, A$, S
        IF UCASE$(A$)="KATHMANDU" THEN
          PRINT N$, A$, S
        END IF
    LOOP WHILE NOT EOF(1)
    CLOSE #1
    END
    
    1. Write the use of statement "INPUT#1, N$,A$,S" in the above program.
    2. What happens if you remove "UCASE$" from the above program.
Group 'C' (16 Marks)
  1. Convert / Calculate as per the instruction. [4×1=4]
    1. (ABC)16=(?)8
    2. (52)10=(?)2
    3. (1010)2+(110)2-(1111)2=(?)2
    4. (1101101)2÷(110)2
    1. Write a program in QBASIC that allows a user to input length, breadth and height and then calculate the area of four walls. Hint: [A=2H(L+B)]    [4]
    2. Write a program to create a sequential data file named "employ.dat" to store Name, Post, Address and Salary for the number of employees. The program should terminate on user's choice.       [4]
  2. Write a program in C language to input a number and then check whether the number is positive or negative or zero. [4]
  3. OR
    Write a program in C language to display the series 1,1,2,3,5,8 ... up to 10th terms. [4]
THE END