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
if datatype of pi constant is float then what will be the data type of circumference of circle :
Question # 2
if x=9 and y=9 then what is the meaning of statement x = = y;
Question # 3
Special symbols ( + , - , *, !........) are stored as:
Question # 4
Detect an error in following constant statement: const int x=7.5;
Question # 5
if x=9 and y=9 then (x!=y) will give true value.
Question # 6
The output of the following statements (int x=9.6; printf("%d",x); will be:
Question # 7
A variable name can be start with which one of special symbol?
Question # 8
The size of float variable is 8 bytes while size of integer variable is 2 bytes. Give a reason.
Question # 9
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 # 10
Identify a datatype , when added with modulas operator gives an error.
Question # 11
The following initialization statement ( int sum; 7 = sum; ) gives an error. Give a reason.
Question # 12
The format specifier used for Pi 3.14 will be:
Question # 13
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 # 14
Operator with highest precedence is :
Question # 15
There is no need to assign a variable for constant if it is already declared with #define.
Question # 16
if x = 7; y = 8; and x=y; then new value of x will be:
Question # 17
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 # 18
The value of a after execution of following statement ( int a = 10 + 4.867;) will be:
Question # 19
The output of following statement (!(7 > 6 || 3 > 4) ) is :
Total Questions
12345678910111213141516171819
Question # 1
if datatype of pi constant is float then what will be the data type of circumference of circle :
Question # 2
if x=9 and y=9 then what is the meaning of statement x = = y;
Question # 3
Special symbols ( + , - , *, !........) are stored as:
Question # 4
Detect an error in following constant statement: const int x=7.5;
Question # 5
if x=9 and y=9 then (x!=y) will give true value.
Question # 6
The output of the following statements (int x=9.6; printf("%d",x); will be:
Question # 7
A variable name can be start with which one of special symbol?
Question # 8
The size of float variable is 8 bytes while size of integer variable is 2 bytes. Give a reason.
Question # 9
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 # 10
Identify a datatype , when added with modulas operator gives an error.
Question # 11
The following initialization statement ( int sum; 7 = sum; ) gives an error. Give a reason.
Question # 12
The format specifier used for Pi 3.14 will be:
Question # 13
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 # 14
Operator with highest precedence is :
Question # 15
There is no need to assign a variable for constant if it is already declared with #define.
Question # 16
if x = 7; y = 8; and x=y; then new value of x will be:
Question # 17
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 # 18
The value of a after execution of following statement ( int a = 10 + 4.867;) will be:
Question # 19
The output of following statement (!(7 > 6 || 3 > 4) ) is :
Total Questions
12345678910111213141516171819
Computer Science MCQ Test by Topics
- +9.1 Overview
- +9.2 Keywords
- +9.3 Variables
- +9.4 Constants
- +9.5 DataType
- +9.6 Operators in C
- +9.7 Expression
- +9.8 Comments
Computer Science
- Data Basics
- Basic Concepts and Terminology of Databases
- Database Design Process
- Data Integrity and Normalization
- Introduction to Microsoft Access
- Table and Query
- Microsoft Access-Forms and Reports
- Getting Started with C
- Elements of C
- Input/Output
- Decision Constructs
- Loop Constructs
- Functions in C
- File Handling
12th Class Online Classes 2026
Updated on: 17-05-2026
12th Class Online Preparation
12th Class 2026 Online
12th Class 2026
Add a Comment
Comments will be shown after admin approval.
Spam comments will not be approved at all.
Matric Result 2026 Punjab
10th Class Result 2026 Punjab
9th Class Result 2026 Punjab Boards
10th Class Result Gazette 2026 Punjab
Punjab Past Papers Matric 9th 10th
Primary Results 5th & 8th Class
BISE Results Intermediate & Matric
BISE Punjab Boards
Sindh Educational Boards
KPK Examination Boards
Technical Boards
Public Service Commission
University Results Gruaduation, Masters Classes
Subscribe by Email
Subscribe by Email
Position Holders Matric 2026
Position Holders 9th Class 2026
Position Holders Inter 2026
Position Holders 11th Class 2026
Punjab 12th Class Computer Science









