Hizb - Ur - Rehman Islamic Science High School & College
Darbar Hazrat Syed Muhammad Abdullah Shah Mashhadi Qadri, Moza Qadir Bakhsh Sharif, Tehsil Kamalia,
District T.T. Singh.
Student Name Roll Num Class Name
INTER-||
Exam Name Paper Code Subject Name
COMPUTER SCIENCE
Time Allowed Total Marks Exam Date
1hour30min 2024-02-29
تس
Q1. Choose the correct answer. 15X1=15 رپدارئہاگلںیئ۔ اچرہنکمموجاابتںیمےسدر
1.A set of related records that represents a unit of data is: .1
(A) File (B) Record (C) Field (D) Database
2.The smallest meaningful unit of data in a database is called: .2
(A) Byte (B) Record (C) Character (D) Field
3.......... type requires largest processing time. .3
(A) Random file (B) Direct access file (C) Sequential file (D) Index sequential file
4.Which file is used to store information that remains constant for a long time: .4
(A) Data file (B) Master file (C) Transaction file (D) Backup file
5.In an E-R diagram, a diamond represents a(n): .5
(A) Attributes (B) Relationship (C) Entity (D) Modality
6.Color of car is an example of: .6
(A) Entity (B) Attributes (C) Relation (D) Relationship
7.Which data type is default type in Access? .7
(A) Memo (B) Number (C) Text (D) Auto number
8.Which symbol indicates that you are editing a record? .8
(A) Pencil (B) Black arrow (C) Key (D) Asterisk
9.The graphically query tool is known as: .9
(A) Query grid (B) Design grid (C) Query form (D) View form
10.Which of the following language requires no translator to execute the program? .10
(A) C (B) C++ (C) Machine language (D) Assembly language
11.Another term for a computer making a decision is: .11
(A) Sequential (B) Selection (C) Repetition (D) Iteration
12.Which of the following data model is more flexible? .12
(A) Network data model (B) Hierarchical data model (C) Relational data model (D) Object data model
13.In ERD model, the relationship between two entities is represented by a: .13
(A) Diamond symbol (B) Rectangular box (C) Oval symbol (D) Line
14.In a relational database, a single piece of information is called: .14
(A) Field (B) Record (C) Entity (D) Attribute
15.Void occupies how many bytes in memory? .15
(A) Zero (B) One (C) Two (D) Four
Q 2 .Write short answers of the following questions. (Any 6) 6X2=12 وکیئےس)دنمرہجذلیوساالتےکرصتخموجاابترحتریرکںی۔6(
I.Define data integration.: .I
II.What is the difference between relation and relationship?: .II
III.How first normal form is achieved?: .III
IV.List out two advantages or characteristic of C language.: .IV
V.What is the difference between machine language and assembly language?: .V
VI.Differentiate between compiler and interpreter.: .VI
VII.Write three advantages of switch statement.: .VII
VIII.What do we do to attain entity integrity?: .VIII
IX.What is referential integrity?: .IX
Q 3 .Write short answers of the following questions. (Any 6) 6X2=12 وکیئےس)دنمرہجذلیوساالتےکرصتخموجاابترحتریرکںی۔6(
I.What is meant by data modeling?: .I
II.Define relationship.: .II
III.What is the role of linker in C-language?: .III
IV.Differentiate between preprocessor directives and header file.: .IV
V.Trace the output .V
. void main ()
{
int marks;
printf (“\n enter your marks”);
scanf (“%d”, & marks);
if (marks>=40)
printf (“\n congratulation”);
}:
VI.Convert following loop code into for loop code .VI
. i=3;
do
{
printf (“%d\n”, i);
i+=3;
}
while (i<=21);:
VII.Define data processing.: .VII
VIII.Write different options in Find and Replace dialog box.: .VIII
IX.Write some situations in which sentinel-controlled loop can be used.: .IX
Q 4 .Write short answers of the following questions. (Any 6) 6X2=12 وکیئےس)دنمرہجذلیوساالتےکرصتخموجاابترحتریرکںی۔6(
I.Define data dictionary.: .I
II.What is the use of Turbo C++?: .II
III.Define object code.: .III
IV.Define structured programming.: .IV
V.Trace the errors in the following codes. .V
void main ()
int x, y=5;
if (x>y);
printf (“x is largest”);
else
printf (“y is largest”);
getch();:
VI.Write two rules of using switch case in C program.: .VI
VII.Write output. .VII
int x=5, y=3;
do
{
x=x*2;
y=y+2;
}
while (y<7);
printf(“%d”,x);:
VIII.Predict the output from the following code. .VIII
int n;
clrscr ();
for (n=5; n>=1; n--)
printf (“%d\n”,n);
getch();:
IX.What is sentinel controlled loop?: .IX
Q 5 .Write detailed answers of the following questions. (Any 3) 3X8=24 وکیئےس)دنمرہجذلیوساالتےکًالیصفتوجاابترحتریرکںی۔3(
I.Explain database management system. Discuss any three advantages of database management system.: .I
II.What elements are combined to produce physical database design? Explain.: .II
III.Write a program which inputs two numbers and tells whether these numbers are equal or not equal.: .III
IV.Write a program in C-Language that inputs two numbers and one arithmetic operate (+,-,*) it applies arithmetic operation
on numbers on the basis of given operator.:
.IV
V.What is a control structure? Briefly describe the basic control structures for writing programs.: .V