0% found this document useful (0 votes)
8 views3 pages

COMP 12 HALF

The document contains a series of multiple-choice questions and subjective questions related to database management and programming concepts. It covers topics such as data organization, database design, programming syntax, and logical operators. Additionally, it includes detailed questions requiring explanations and problem-solving in the context of programming and database systems.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

COMP 12 HALF

The document contains a series of multiple-choice questions and subjective questions related to database management and programming concepts. It covers topics such as data organization, database design, programming syntax, and logical operators. Additionally, it includes detailed questions requiring explanations and problem-solving in the context of programming and database systems.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

GREENWORLD SCIENCE ACADEMY (SARGODHA)

SARGODHA PH.0349-3121782

Sr Question Option A Option B Option C Option D


No.
1 The process of arranging data in a Sorting Summarizing Data Classifying
logical sequence is called: capturing

2 A type of file that contains data is Data file Program file Image file Query file
called:

3 Which of the following is used to Modality Attribute Cardinality Entity


describe the characteristics of an
object?

4 A relation is analogous to a: Table Field Record Row


5 A key that consists more than one Foreign key Composite key Primary key Control key
attributes is called:

6 Who is responsible to design, Database End user Application Web designer


implement and maintain a database? administrator programmer

7 A person's name and birthday are Entities Attributes Relationships Descriptions


examples of:

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:

10 Which of the following is not a Table Query Report MS Word


database object?

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

13 a+=b is equivalent to: b+=a a=+b a=a+b b=b+a


14 Which of the following statement is A+B A >= B A != B A == B
true for A = 25 and B = 35:

15 The result of C expression 9/4*2 will 4.5 4.0 5 4


be equal to:
GREENWORLD SCIENCE ACADEMY (SARGODHA)
SARGODHA PH.0349-3121782

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.

Q5. Write detailed answers of the following questions. (Any 1) 8X1=8


1. What are the four major components of the database system? Write in details.
2. Define the term analysis. Briefly discuss the following terms: i) Feasibility study ii) Requirement analysis
iii) Project planning iv) Data analysis

Q6. Write detailed answers of the following questions. (Any 2) 8X2=16


1. Define and explain the following terms: i) Data distribution strategy ii) File organization
2. Write down the rules for naming variable in C.
3. Let x, y and z be the name of four type float variables and let a, b and c be the names of three type
int variables. Each of the following statements contains one or more violations of the rules for form-
ing arithmetic expressions. Rewrite these statements so that it is consistent with these rules.
i) z=4.0 w* y ii) y=yz iii) a=6b4 iv) c=3(a+b) v) z=7w+xy

You might also like