View latest educational results 2026 of class 9th, 10th / Matric / SSC, Intermediate / HSSC / FA / FSc / Inter, 5th / Primary, 8th / Middle, DAE, DBA, D.COM, BA / BBA / BCom / BSc / B.Ed, MA / MSc / MBA / MIT / MCS, MBBA / M.Ed, LLB, Engineering, M.Phil, PhD from all BISE / boards and Universities by roll number & by name and check old result 2025 online.

Chapter 9 Elements Of C Computer Science 12th Class Punjab MCQ Tests

12th Class Computer Science Chapter 9 MCQ Tests
Chapter 9 of 12th Class Computer Science has 19 questions. If you take an online MCQ test, the system will randomly choose the questions. If you want to take the quiz by chapter then click the start test button.

Total Questions: 19
Total Marks: 19
Time: 20 Mins
Total Questions: 19
Total Marks: 19
Time: 20 Mins
20Min : 00 Sec Remaining
Question # 1
What will be the output of following code. main() { int a = 20; float b = 15.6; int c; c = a + b; printf("%d", c); }
Question # 2
The size of float variable is 8 bytes while size of integer variable is 2 bytes. Give a reason.
Question # 3
There is no need to assign a variable for constant if it is already declared with #define.
Question # 4
The format specifier used for Pi 3.14 will be:
Question # 5
Operator with highest precedence is :
Question # 6
The output of the following statements (int x=9.6; printf("%d",x); will be:
Question # 7
The value of a after execution of following statement ( int a = 10 + 4.867;) will be:
Question # 8
if x = 7; y = 8; and x=y; then new value of x will be:
Question # 9
Special symbols ( + , - , *, !........) are stored as:
Question # 10
Detect an error in following constant statement: const int x=7.5;
Question # 11
The output of following code will be: main() { int value = 10; if (value == 0 || value == 1 || value == 2 || value == 3) printf("You picked 0 ,1,2, or 3 value"); else printf("You did not pick 0 or 1"); }
Question # 12
if x=9 and y=9 then (x!=y) will give true value.
Question # 13
A variable name can be start with which one of special symbol?
Question # 14
if datatype of pi constant is float then what will be the data type of circumference of circle :
Question # 15
The following initialization statement ( int sum; 7 = sum; ) gives an error. Give a reason.
Question # 16
The output of following code will be: main() { int a=3; float d=6; d+=a; a+=d; printf("d=%d",d); printf(("a=%f",f); }
Question # 17
Identify a datatype , when added with modulas operator gives an error.
Question # 18
The output of following statement (!(7 > 6 || 3 > 4) ) is :
Question # 19
if x=9 and y=9 then what is the meaning of statement x = = y;
Total Questions
12345678910111213141516171819
Question # 1
What will be the output of following code. main() { int a = 20; float b = 15.6; int c; c = a + b; printf("%d", c); }
Question # 2
The size of float variable is 8 bytes while size of integer variable is 2 bytes. Give a reason.
Question # 3
There is no need to assign a variable for constant if it is already declared with #define.
Question # 4
The format specifier used for Pi 3.14 will be:
Question # 5
Operator with highest precedence is :
Question # 6
The output of the following statements (int x=9.6; printf("%d",x); will be:
Question # 7
The value of a after execution of following statement ( int a = 10 + 4.867;) will be:
Question # 8
if x = 7; y = 8; and x=y; then new value of x will be:
Question # 9
Special symbols ( + , - , *, !........) are stored as:
Question # 10
Detect an error in following constant statement: const int x=7.5;
Question # 11
The output of following code will be: main() { int value = 10; if (value == 0 || value == 1 || value == 2 || value == 3) printf("You picked 0 ,1,2, or 3 value"); else printf("You did not pick 0 or 1"); }
Question # 12
if x=9 and y=9 then (x!=y) will give true value.
Question # 13
A variable name can be start with which one of special symbol?
Question # 14
if datatype of pi constant is float then what will be the data type of circumference of circle :
Question # 15
The following initialization statement ( int sum; 7 = sum; ) gives an error. Give a reason.
Question # 16
The output of following code will be: main() { int a=3; float d=6; d+=a; a+=d; printf("d=%d",d); printf(("a=%f",f); }
Question # 17
Identify a datatype , when added with modulas operator gives an error.
Question # 18
The output of following statement (!(7 > 6 || 3 > 4) ) is :
Question # 19
if x=9 and y=9 then what is the meaning of statement x = = y;
Total Questions
12345678910111213141516171819

Computer Science MCQ Test by Topics

12th Class 2026

Add a Comment
Comments will be shown after admin approval.
Name *
Email *
Mobile *
City *
Your Comment *
Question: What is capital of Pakistan?

(Answer can be from islamabad | lahore)
 
Spam comments will not be approved at all.




BISE Results Intermediate & Matric
 
To Advertise
Contact US