0% found this document useful (0 votes)
28 views5 pages

Computer Part -II

C Programs for class 12

Uploaded by

Hina Zaheer
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
28 views5 pages

Computer Part -II

C Programs for class 12

Uploaded by

Hina Zaheer
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 5

Question Bank for part -II Computer Science

C Language
Chapter no 8

1. What is language translator or processor ?Discuss its types.


2. What are the necessary steps are taken to prepare C program for execution ? Explain with
diagram.
3. How many types of errors occur in writing a C program ? which one is the most difficult to
locate and remove ? justify your answer
4. Briefly describes the basic structure of C program
5. Describe characteristics of High level programming languages.

Chapter no 11

1. Write a program user enter a character check it is vowel or consonant


2. Write a program that inputs three numbers and displays maximum number using if-
statements
3. Write a program that inputs a year and finds whether it is leap or not a leap year .
4. Write a program that inputs a number by the find it is positive , negative or zero.
5. Write a program that inputs temperature and displays a message according to following
data:
Temperature Message
Greater then 35 Hot day
Between 25 and 35 inclusive Pleasant day

Less than 25 Cool day

6. Write a program that inputs obtained marks of student calculate percentage (assume total
marks are 1100), and displays his/her grade. The grade should be calculated according to the
following rules:

Percentage Grade
More than or equal o 80 A+
Between 70 (inclusive) and 80 A
Between 60 (inclusive) and 70 B
Between 50 (inclusive) and 60 C
Between 40 (inclusive) and 50 D
Between 33 (inclusive) and 40 E
Less than 33 F

Chapter no 12

1. Write a program print the counting from 1 – 10 numbers and their sum by using loop.
2. Write a program that input a number and display the table by using while loop.
3. Write a program that display ten numbers with their square and cube using loop .
Question Bank for part -II Computer Science

4. Write a program that input a number and display the factorial of that number by using loop.

5. Write a program that a positive integer value and display its digits in reverse order :- 1234
it should displays 4321

Database system
Chapter no 1 (DBMS)

1. What is data? Explain the different operations on data for data processing.
2. What is database? Explain the types of files with respect to functional , usage and access or storage point
of view.
3. What is DBMS? Explain the types of database logical models.
4. Explain the feature of DBMS.
5. What is DBMS? Explain the advantages of DBMS.

Short Question
1. What is machine language?
2. write the advantages of machine language
3. What is assembly language?
4. Why assembly language is called symbolic language ?
5. What is Mnemonics?
6. What is language translator or processor ?
7. What is compiler
8. What is Assembler ?
9. What is interpreter ?
10. Define the history of C language
11. define Header file ?
12. Define the Macro constant.
13. What is linker ?
14. What is debugging?
15. What are the difference between unstructured programming and structure programming ?
16. C is typed language define it ?
17. 35what is meant by IDE ?
18. what is machine independence.?
19. What the difference between object and source code .
Chapter # 09
1. what is increment operator?
2. what is decrement operator ?
3. What is order of precedence of operator ?
4. what is associativity of operator ?
5. what are the commands?
6. What are the difference between single line and multi-line commends.
7. what is expression?
8. what is arithmetic expression?
9. what are the difference logical expression and relational expression ?
Question Bank for part -II Computer Science

10. which operator are used to evaluate the compound condition.


11. what are the difference between unary and binary operator ?
12. what is unary operator ?
13. write down the two naming rules for variable.
14. Write down C -language statement to declare the long double data type variable.
15. What is user define and standard identifier in c language?
16. What is keyword?
17. What is variable initialization?
18. What are the difference between variable declaration and definition.
19. What is data type?
Chapter # 10
1. What is standard input and standard output ?
2. what is scanf() function ?
3. What is printf function ?
4. what is use of format specifier?
5. what is field width ?
6. what is floating point numbers formatting
7. what is escape sequence?
8. what is getch() ? OR what is the use of getch(); function ?
9. What is getche()?
10. write C statement to input value of integer variable x.
11. Define arguments.
12. what is purpose of ampersand (&) operator in scanf( ) function
13. Write the list of important input and output functions.
14. Define the clrscr(); function.
15. what is the general format of printf(); statement ?
Chapter no 11
1. what is a control structure ?
2. what is control variable ?
3. How many type of structure in C language ?
4. what is selection structure?
5. what is “if” statement?
6. what is “if---else---if” statements ?
7. what is switch statement?
8. Write the syntax of switch statement .
9. Write the syntax if-else-if statement .
10. what is nested if statement ?
11. what is break statement in c language.
12. what is conditional operator or ternary operator ?
13. what is happened if break statement missing in case block ?
14. what is goto statement ?
15. convert the if statement into ternary operator.

Chapter no 12
Question Bank for part -II Computer Science

1. what is loop ?
2. How many types of loop in C language?
3. what is do -----while loop ?
4. what are the difference between while and do ----while loop ?
5. what are the difference between conditional loop and counter loop ?
6. what is nested loop ?
7. what is sentinel controlled loop ?
8. what is sentinel value?
9. What is continue statement ? why we use?
10. what is for loop ?
11. what is infinite loop ?
12. what are the difference between outer loop and inner loop ?
13. write the syntax and draw the flow chart of while do-while and for loop.
14. Convert the while loop into do-while vice versa ,convert for loop into while loop vice versa
and convert for into do-while loop vice versa.
15. Output finding and error tracing

Database system short Question

1. Define data Integration


2. What is database?
3. What is database system /DBMS?
4. Define data Integrity
5. Define data independence:
6. Define data consistency:
7. Define data Dictionary:
8. What is Meta Data?
9. What is Manipulation ?
10. What is sorting of data ?
11. What is File?
12. What is Record / ROW/ Tuple:
13. What is Traditional or File processing system ?
14. What is Data base Engine:?
15. What is Data integration?
16. What is Data base Models:?
17. What is Hierarchical Model?
18. What is Network database model?
19. What is Relational Database Model?
20. What is entity?
21. What is attribute/field?
22. What is master file ?
23. Define transaction file.
24. What is backup file ?
25. What is program file ?
26. What is data file ?
Question Bank for part -II Computer Science

27. What is sequential file ?


28. What is direct or Random file ?
Chapter # 02

1. what is relation?
2. what are difference between fixed and variable length record ?
3. what is sort key ?
4. what is index ?
5. what is integrity constrain ?
6. what is Key / Relational key /Key attributes ?
7. what is Primary Key ?
8. Properties of the primary key:
9. what is Composite Key?
10. what is foreign key?
11. what is alternative key ?
12. what is candidate key ?
13. Who is DA ?
14. Define the DBA / database administrator ?
15. Define the end user ?
16. Define the application programmer ?
17. what is View?
18. Write down the list of properties (any two).

Head of computer science department PGC(Main)

Prof Junaid Javad

You might also like