COMP 12 HALF
COMP 12 HALF
SARGODHA PH.0349-3121782
2 A type of file that contains data is Data file Program file Image file Query file
called:
8 Transitive dependency is removed in: 1st normal form 2nd normal 3rd normal 4th normal
form form form
9 Microsoft Access saves the database .mdb .msdb .madb None of them
with the extension:
11 Another name for keyword is: Reserved word Special word Comments Identifier
12 Relational operator is used to: Establish a Compare two Construct Perform
relationship values compound arithmetic
among variables conditions operations
SUBJECTIVE TYPE
Q2. Write short answers of the following questions. (Any 6) 2X6=12
1. Differentiate between data and information.
2. Write any two advantage of database management system.
3. Define indexes. 4. Write the purpose of feasibility study.
5. Define an attribute. Give an example. 6. Differentiate between cardinality and modality.
7. Differentiate between logical database design and physical database design.
8. What is meant by data integrity? What are the two types?
9. What is the use of || (OR) operators?
Q3. Write short answers of the following questions. (Any 6) 2X6=12
1 .Describe transitive dependency. 2. Define the term RDBMS.
3 .Differentiate between menu bar and toolbar 4. What do you know about C statement?
5 .Differentiate between declaring and defining a variable 6. Differentiate between constant and variable.
7 . Identify the errors in the following lines:
Integer A=2+3;
Float B=5;
Int C=A+b;
8 . Find out the errors from the following code.
void main()
{ char ch, ch2;
ch1=’2’;
ch2=’6’;
}
9 . Trace the output in the following code.
int x=10 y=15;
x=x++;
y=++y;
printf (“%d %d”, x,y);
Q4. Write short answers of the following questions. (Any 6) 2X6=12
1. Write two rules for naming variables
2. Find out the errors in the following code.
#include (stdio.h)
main()
{
char ch=’a’;
float 3 digit=33.3;
3. List three problems while working with floating point numbers.
4. Determine the output of the following code.
int b = 9;
b = 9/2;
printf("%d", b);
5. What is the use of AND logical operator?
6. Predict the output of the following code:
int number=6;
++number;
Printf (“%d \n”, number);
7. What is compound condition? Give an example.
8. Find output of the expression 10*(24/(5-2))+13 9. Describe single comments in C.