PABSON SEE Pre-Board Exam 2078

PABSON SEE PRE BOARD EXAM - 2078 Exam Date: 2078-12-01 Subject: Opt. II Computer Science Full Marks:50 Time: 1:30 hrs. Group ‘A’ Very Short Answer: [10×1] Q1. Answer the following questions in one sentence: [6*1=6] (a) What is badwidth? (b) What is cyber bullying? (c) What is AI? (d) WHat is the storage size of memo and text data type in MS Access? (e) What is local variable? (f) What is an operator is C language? Q2. Write appropriate technical terms for the following: [2×1=2] (a) Secret group of characters which helps to protect file from unauthorized person (b) A type of network in which every computer works as both client and server Q3. Write the full forms of the following: [2×1=2] (a) ADSL (b) TCP/IP Group ‘B’ Short Answer : [12×2=24] Q4. Write the following questions. [9×2=18] (a) Differentiate between LAN and WAN. (b) Write any four commandments of computer etthics. (c) What is e-commerce? List any two e-commerce companies in Nepal. (d) What are the advantages of cloud computing? (e) What is VR? Mention its application areas. (f) What is DBMS? Give any two examples. (g) What is primary key? List any two advanatges. (h) What is query? (i) What is data sorting? Write its two advantages. Q5. Write the output of the given program. Show with dry run in table. [2] DECLARE SUB DISPLAY(A) A=3 CALL DISPLAY(A) END SUB DISPLAY(A) FOR X = 1 TO 6 PRINT A; IF A MOD 2 = 0 THEN A = A / 2 ELSE A = ( A * 3 ) + 1 END IF NEXT X END SUB Q6. Re-Write the given program after correcting the bugs. [2] REM to add more data in a sequential data file OPEN "EMP.DAT" FOR INPUT AS #2 DO INPUT "ENTER NAME "; N$ INPUT "ENTER ADDRESS "; A$ INPUT "ENTER SALARY "; S$ WRITE #1, N$, A$,S INPUT "Do you want to add more record "; M$ LOOP WHILE UCASE$(M$)="Y" END Q7. Study the following program and answer the given questions. [2×1=2] DECLARE FUNCTION test$(A$) CLS INPUT "Enter any word "; T$ PRINT test$(T$) END FUNCTION test$(A$) FOR M = LEN(A$) TO 1 STEP-1 C$=C$+MID$(A$,M,1) NEXT M test$=C$ END FUNCTION (a) List the formal and actual para,eters used in the program given above. Ans: Formal Parameter : A$ and Actual parameter: T$ (b) List the library function used in the above program. Ans: LEN , MID$ Group "C" Long Answer Questions: [4×4=16] Q8. Convert / calculate as per the instruction: [4×1=4] (a) (CCA)16 into Binary (b) (654)10 into Octal (c) (111011)2 ÷ (100)2 (d) (10101-1110)2 × (10)2 Q9. (a) Write a program in QBASIC that allows user to enter radius of a circle. Create a user defined function to find area of circle and sub procedure to find volume of a cylinder. Hint: [A=Πr2, V=Πr2h][4]
DECLARE FUNCTION AREA(R) INPUT "ENTER RADIUS" ; R PRINT " AREA = " ; AREA(R) END FUNCTION AREA(R) AREA=3.14*R^2 END FUNCTION
DECLARE SUB VOL(R,H) INPUT "ENTER RADIUS AND HEIGHT : " ; R ,H CALL VOL(R,H) END SUB VOL(R,H) V=3.14*R^2*H PRINT " VOLUME = " ; V END SUB
b) A sequential data file "emp.dat" contains employee's name, address, gender and salary. Write a program to display all the information of employees whose salary is more than Rs.20,000. [4]
OPEN "EMP.DAT" FOR INPUT AS #1 WHILE NOT EOF(1) INPUT #1, EN$,EA$,GEN$,SAL IF SAL>20000 THEN PRINT EN$,EA$,GEN$,SAL END IF WEND CLOSE #1 END
Q10. Write a program in C language to input any two numbers and find greatest number. [4]
#include<stdio.h> int main() { int num1,num2; printf("Enter first number :"); scanf("%d",&num1); printf("Enter second number :"); scanf("%d",&num2); if(num1>num2) printf("Greater number = %d",num1); else printf("Greater number = %d",num2); return 0; }
OR Write a program in C language that asks user to enter any number and check whether the number is odd or even. [4]
#include<stdio.h> int main() { int num; printf("Enter first number :"); scanf("%d",&num); if(num%2==0) printf("Even number"); else printf("Odd number"); return 0; }
The End