Constants MCQ Tests
12th Class Computer Science MCQ Tests
Constants
of 12th Class Computer Science has 10 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: 10
Total Marks: 10
Time: 10 Mins
Total Questions: 10
Total Marks: 10
Time: 10 Mins
10Min : 00 Sec Remaining
Question # 1
Identify a datatype , when added with modulas operator gives an error.
Question # 2
Detect an error in following constant statement: const int x=7.5;
Question # 3
Operator with highest precedence is :
Question # 4
Special symbols ( + , - , *, !........) are stored as:
Question # 5
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 # 6
if x=9 and y=9 then (x!=y) will give true value.
Question # 7
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 # 8
There is no need to assign a variable for constant if it is already declared with #define.
Question # 9
if datatype of pi constant is float then what will be the data type of circumference of circle :
Question # 10
The format specifier used for Pi 3.14 will be:
Total Questions
12345678910
Question # 1
Identify a datatype , when added with modulas operator gives an error.
Question # 2
Detect an error in following constant statement: const int x=7.5;
Question # 3
Operator with highest precedence is :
Question # 4
Special symbols ( + , - , *, !........) are stored as:
Question # 5
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 # 6
if x=9 and y=9 then (x!=y) will give true value.
Question # 7
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 # 8
There is no need to assign a variable for constant if it is already declared with #define.
Question # 9
if datatype of pi constant is float then what will be the data type of circumference of circle :
Question # 10
The format specifier used for Pi 3.14 will be:
Total Questions
12345678910
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 Constants









