Federal Board 2017
Computer Science (Inter part2)
(SECTION-A)
Note: Pour possible answers A, B; C and D to each question are given. The choice which you think is correct that circle in front that question with Marker or Pen ink. 'Lining or filling two or more circles 'will result in zero mat k in that question. Write the letter A, B. (7 or D in the column.(write correct "option) against each question also. If there k a contradiction in the bubble and hand written answer, bubble option will be considered correct.

A. Hardware
B. Software
C. Data
D. Information

A. Compilation
B. Debugging
C. Linking
D. Information

A. b += a
B. a = +b
C. a = p + b
D. b = b +a

A. 1
B. 2
C. 3
D. 4

A. %f
B. %i
C. %c
D. %d

A. |=
B. <>
C. !=
D. ><

A. math.h
B. stdio.h
C. string.h
D. conio.h

a > b? a - b: a + b;

A. 15
B. 25
C. 5
D. 150

A. Inner loop
B. counter loop
C. Sub Loop
D. Nested Loop

A. Function name
B. Function return type
C. Parameters
D. Function body

A. "W"
B. "rw"
C. "r+"
D. "a+"

A. data redundancy
B. data inconsistency
C. data dependency
D. data integrity

A. an attribute
B. a field
C an entity
D. a record

A. Relationship
B. Referential integrity
C. Normalization
D. Schema

A. Report
B. Table
C. Query
D. Form


SUBJECTIVE PART
(Section-B)


Q.2 Answer any THIRTEEN parts. All parts carry equal marks.

(Section-C)


Note: Attempt any THREE questions. All questions carry equal marks.
Q. 3
a. What is an expression? Explain any three types of expressions and their operators with examples.
b. Write a program code in C to find the sum of odd numbers from 1 to 100.
Q. 4
What is decision control structure? Explain different types of decision control statements used in C language (with purpose of use and syntax).
Q. 5
a. Explain the process of compiling, linking and executing a C program
b. Write a program code in C to read three numbers using scanf () function and find the largest number
Q. 6
a Give any four drawbacks of traditional file approach system.
b. What is entity relationship diagram (ERD)? Define the terms Entity, Attribute and Relationship with one example each.