Xii Comp (Study Paper)
Xii Comp (Study Paper)
Chapter 3: Chapter 8:
1) Why do we use #include< stdio.h> in c 22) 9) Write a program that swap two
program? inputted numbers
2) Define the primary key and secondary key 23) 10) Write a program that generates the
3) What is database? Define the basic odd numbers from 101-150
database models 24) 11) Write a program to print the
4) Define the relational database model. OR numbers from 4 to 9 and their
write any 3 advantages and 3 25) squares (using do-while, for, while loop)
disadvantages of RDBMS 26) 12) Write a program that inputs your age
5) Define Field , DDL, reports, Query, Data and sister’s age and then
redundancy, functions and library 27) display which is older of the two
functions 28) 13) Write a program which gives the
6) What is loop? How many loop are there in following output
C-language define each with their basic 1
syntax 12
7) Differentiate between do-while and while 123
loop 1234
8) What is selection control structure? 12345
9) Why C- language is called case sensitive
language?
10) Difference between break and continue
statement.
11) Write a program which prints the even
numbers from the given range (151-
12) 190)
13) 2) Write a program which prints the whole
numbers from the given range(151-
14) 190)
15) 3) Write a program which prints all the
ASCII character from 0-255
16) 4) Write a program which takes anumber
and prints the table of the given
17) number
18) 5) Write a program which prints the odd
numbers from the given range (151-190)
19) 6) Write a program to calculate the
power of numbers from 1 to 5
20) 7) Write a program that prints factorial
of any inputted number
21) 8) Write a program to calculate the cube
` form the desk of Sir Saad
of a given numbers.
H. No. 154 Opposite Khawaja Nazim Uddin Hall, PIB Colony Karachi. Page |2
Ph. # 34928070 / 34949503, WhatsApp: 03087793344,