Computer Science (Optional II)
SEE (Model Questions)
Time: 1 hr 30 Min Full Marks:50
Group 'A' (10 Marks)
- Answer the following questions in one sentence. [6×1=6]
- What is the Internet?
- What is browser?
- Which is the logical data type of MS Access?
- Which view is used to modify a table in MS Access?
- What is structure programming language?
- Write any two data types of C language.
- Write appropriate technical terms for the following: [2×1=2]
- Crimes committed using electronic devices and cyber space
- A malicious program of computer that damages data and software
- Write the full forms of the following: [2×1=2]
- UTP
- WWW
- Answer the following questions. [9×2=18]
- What is computer network? Write any two disadvantages of it.
- What is cyber ethics? Write any two cyber ethics.
- What is hardware security? Write the role of UPS in hardware security.
- What is e-banking? Write any two uses of it.
- What is database management system? Give two examples.
- What is database? Give any two examples.
- Define field and record.
- What is report? Write its use.
- Define form. Write any two uses of it.
- 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
- 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
- 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
- Write the use of statement "INPUT#1, N$,A$,S" in the above program.
- What happens if you remove "UCASE$" from the above program.
- Convert / Calculate as per the instruction. [4×1=4]
- (ABC)16=(?)8
- (52)10=(?)2
- (1010)2+(110)2-(1111)2=(?)2
- (1101101)2÷(110)2
-
- 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]
- 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]
- Write a program in C language to input a number and then check whether the number is positive or negative or zero. [4]
THE END