JOINT SCHOOL SEE PREPARATION EXAMINATION-2079
Group
"A" [10]
1. Give answer in one sentence for the following questions: [6×1=6]
a. Define topology
b. What is digital citizenship?
c. Why table is called primary object of MS Access?
d. Which data type of MS Access is used to store photo, video?
e. What is modular programming?
f. List two data types used in C language.
2. Write appropriate technical terms for the following: [2×1=2]
a. Network within a city
b. The use of computer technology to create a simulated
environment.
3. Write the full forms of the following: [2×1=2]
a. TCP/IP b. CDMA
Group "B" [24]
4. Answer the following questions:[9×2=18]
a. Explain bus topology with diagram in brief.
b. Define e-commerce. List two examples.
c. What is encryption and decryption?
d. Write any four preventive measures for computer hardware
security.
e. List two advantages of cloud computing.
f. What is database management? Give any two examples.
g. What is report? Write its uses.
h. List any four objects of MS Access.
i. Differentiate between primary and foreign key.
5. Write the output of the given program. Show with dry run in table [2]
DECLARE SUB SERIES ()
CALL SERIES
END
SUB SERIES
A = 1
B = 1
FOR l = 1 TO 5
PRINT A; B;
A = A + B
B = A + B
NEXT I
END SUB
6. Re-write the given program after correcting the bugs.[2]
REM to display all the record from data file
"student.txt"
OPEN "student.txt" FOR OUTPUT AS #1
DO WHILE NOT EOF("student.txt")
INPUT #1,NS,A
PRINT NS.A
CLOSE 1
END
7. Study the following program and answer the given questions:[2 * 1 = 2 ]
DECLARE FUNCTION CHECK$(N)
INPUT N
PRINT CHECK$(N)
END
FUNCTION CHECK$(N)
IF N MOD 2=0 THEN
CHECK$= "EVEN"
ELSE
CHECK$ = “ODD”
END IF
END FUNCTION
a. Will the above program will execute if DECLARE FUNCTION is declared?
b. Why is $ sign used in the above function?
Group
"C"
8. Convert/calculate as per the instructions:[4×1=4]
a. (ABC)16 into Binary
b. (492)10 into Octal
c. (100101-11011)2×(110)2
d. (10110+101)2
9
a. Write a program in QBASIC that allows user to enter a number
and check whether the given number is odd or even using sub procedure and check
given number is positive or negative using function procedure.[4]
b. A data file "rec.txt" contains some records under the
heading roll, name, class. Write QBASIC program to search a record on the basis
of entered roll. If data is not found, it should display "data is not
present".[4]
OPEN "rec.txt" FOR INPUT AS #1
CLS
INPUT "Enter Roll Number to Search: ";
searchRoll$
found = 0
DO WHILE NOT EOF(1)
INPUT #1, roll$, name$, class$
IF roll$ = searchRoll$ THEN
PRINT "Record Found!"
PRINT "Roll: "; roll$
PRINT "Name: "; name$
PRINT "Class: "; class$
found = 1
EXIT DO
END IF
LOOP
IF found = 0 THEN
PRINT "Data is not present."
END IF
CLOSE #1
END
10. Write C program to input a multi-digit number and calculate
the sum of its individual digits. [4]
OR
Write C program that inputs a number and check whether the input
number is Armstrong or not.
#include
<stdio.h>
int
main()
{
int
number, sum = 0, digit;
printf("Enter
a number: ");
scanf("%d",
&number);
while (number != 0)
{
digit
= number % 10;
sum
+= digit;
number
/= 10;
}
printf("Sum
of the individual digits: %d\n", sum);
return 0;
}
include<stdio.h>
include<math.h>
int
main()
{
int
n, sum = 0, rem, temp;
printf("Enter any number: ");
scanf("%d", &n);
temp = n;
while
(n != 0)
{
rem = n % 10;
sum=sum + pow(rem, 3) ;
n=n/10;
}
if
(temp==sum)
{
printf("%d is armstrong", temp);
}
else
{
printf("%d is not Armstrong”, temp);
}
return 0;
}