Long Questions
{Ch#1}
1 Define database system and Components of database system?
2 Explain three types of database model?
3 What are advantages and disadvantages of DBMS?
4 What is file write note on type of file storage point of view
5 What is file write note on type of file usage point of view
6 What is the objectives of DBMS
{Ch#2}
4 Explain properties of relations?
5 Define keys and types of keys?
{Ch#3}
6 Define data model and ingredients of data model?
7 Explain types of relations?
8 Define ER-diagram and explain with a example?
9 Explain database design model?
10 Explain different component of logical model?
11 Describe basic data distributed strategies?
{Ch#8}
12 Describe characteristics of HLL?
13 Define translator and explain different types of translator?
14 Explain basic structure of C language?
15 Explain different types of errors?
16 Explain how creating, editing, compiling, linking and executing a program?
{Ch#9}
17 What are logical operator and different logical operator with truth table?
18 Describe different data types of store integer data in C language?
19 Write the rules for naming variables in C language?
20 What are identifiers in C language and its types?
{Ch#10}
21 Explain print f function with suitable example?
22 Write a note on scan f () function?
{Ch#11}
23 Define control structure and types of control structure?
24 Write a note on if-else statement?
25 Write a note on if-else-if statement?
26 Write a note on nested-if statement?
27 Write a note on switch statement?
Write a program that inputs marks and displays “Congratulation! You have passed”.
28 If the marks are 40 or more.
Write a program that inputs two numbers and find if second number is square of first
29 number.
Write a program that inputs two numbers and finds whether these numbers are equal
30 or not using if-else structure.
Write a program that inputs a number and finds whether it is even or odd using if-else
31 structure.
32 Write a program that inputs three numbers and displays maximum number.
Write a program that inputs a year and finds whether it is a leap year or not using if-
33 else structure.
Write a program that inputs a number from user and determines whether it is
34 positive,negative or zero.
Write a program that inputs radius. It calculates area of circle if user enters 1 as choice.
35 It calculates circumference if the user enters 2 as choice.
36 Write a program that inputs three numbers and displays the smallest using nested if.
Write a program that inputs three numbers and displays whether all numbers are equal
37 or not by using nested if condition.
Write a program that inputs a numbers and displays whether it is even or odd by using
39 logical operator “!”.
40 Write a program that inputs a number of weakdays and displays the name of the day.
Write a program that inputs a character from user and checks whether it is a vowel or
41 consonant.
{Ch#12}
42 Define loop and explain while loop?
43 Write a note on do-while loop?
44 Write a note on for loop?
45 Write a note on nested loop?
46 Write a program that displays counting from 1 to 10 using While loop.
47 Write a program that displays first five numbers and their sum using while loop.
Write a program that displays inputs a number from the use and displays a table of that
48 number by using While loop.
Write a program that displays the following series using while loop.
49 1 3 5 7 9 11 13 15 19 21 23
Write a program that inpurs a number from user and displays the factorial of that
50 number using while loop.
Write a program that displays the sum of the following series using whie loop.
51 1+1/2+1/4+1/6+…………….+1/100.
52 Write a program that displays “Pakistan” for five times using do-while loop.
53 Write a program that displays first ten odd numbers using do-while loop.
Write a program that inputs a number from user and displays the factorial of that
number using do-while loop.
Write a program that inputs a number from user and displays the table of that number
54 using do-while loop.
Write a program that gets starting and ending point from the user and displays all odd
55 numbers in the given range using do-while loop.
Write a program that displays the sum of the following series using do-while loop.
56 1+1/3+1/5+1/7+…………………….+1/99
Write a program to print the sum of odd numbers between 1 and 100.
57 Sum=1+3+5+…………………+99
Write a program that inputs a number from user and displays the factorial of that
58 number using for loop.
Write a program that inputs a number from the user and displays a table of that
59 number using for loop.
Write a program that inputs table number and length of the table then displays the
60 table using for loop.
Write a program that finds the sum of the squares of the integers form 1 to n.where n is
61 a positive value entered by the user.
Write a program in C language to print the following series.
62 0 3 6 9 12 15
Write a program that uses a while loop to enter a number from the user and then
63 display it.The loop is terminated when user enter -1.
Write a program that displays the following block using nested for loop.
* * * * *
* * * * *
* * * * *
* * * * *
64 * * * * *
65 * * * * *