Chapter 2 Programming In C Computer Science 10th Class Federal MCQ Tests
10th Class Computer Science Chapter 2 MCQ Tests
Chapter 2 of 10th Class Computer Science has 20 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: 20
Total Marks: 20
Time: 20 Mins
Total Questions: 20
Total Marks: 20
Time: 20 Mins
20Min : 00 Sec Remaining
Question # 1
Detect a syntax mistake in given program: float 6.5=x; printf("%f",x);
Question # 2
Text Editing, Compilation, Debugging, all features integrated in:
Question # 3
printf() statement written inside main function.
Question # 4
One can easily run a computer program without integrated development environment.
Question # 5
A program written in Dev C++ is saved as ________________ extension.
Question # 6
if a function is not returning any value then, keyword to represent is:
Question # 7
A reserved word can be used as variable name.
Question # 8
Body of main function is enclosed using:
Question # 9
The output of the following statements (int x=9.6; printf("%d",x); will be:
Question # 10
The output of following code will be:
main() { int a=65;
char c=(char)a;
printf("%c",c);
}
Question # 11
Detect a syntax mistake in given program: int x = 6; print("%d",x);
Question # 12
Name the language understood easily by humans.
Question # 13
One datatype in C can be converted into another datatype during source code development.
Question # 14
A class in Object oriented programming is a blue print of :
Question # 15
The output of the following statement (int printf=90; printf("%d",printf); ) will be:
Question # 16
Special symbol used to write comments against every programming statement is:
Question # 17
A keyword used in C language to repeat steps is:
Question # 18
Which one of these is an example of IDE (Integrated development environment)?
Question # 19
A space can be used in a variable name.
Question # 20
A computer program is a set of instructions written in :
Total Questions
1234567891011121314151617181920
Question # 1
Detect a syntax mistake in given program: float 6.5=x; printf("%f",x);
Question # 2
Text Editing, Compilation, Debugging, all features integrated in:
Question # 3
printf() statement written inside main function.
Question # 4
One can easily run a computer program without integrated development environment.
Question # 5
A program written in Dev C++ is saved as ________________ extension.
Question # 6
if a function is not returning any value then, keyword to represent is:
Question # 7
A reserved word can be used as variable name.
Question # 8
Body of main function is enclosed using:
Question # 9
The output of the following statements (int x=9.6; printf("%d",x); will be:
Question # 10
The output of following code will be:
main() { int a=65;
char c=(char)a;
printf("%c",c);
}
Question # 11
Detect a syntax mistake in given program: int x = 6; print("%d",x);
Question # 12
Name the language understood easily by humans.
Question # 13
One datatype in C can be converted into another datatype during source code development.
Question # 14
A class in Object oriented programming is a blue print of :
Question # 15
The output of the following statement (int printf=90; printf("%d",printf); ) will be:
Question # 16
Special symbol used to write comments against every programming statement is:
Question # 17
A keyword used in C language to repeat steps is:
Question # 18
Which one of these is an example of IDE (Integrated development environment)?
Question # 19
A space can be used in a variable name.
Question # 20
A computer program is a set of instructions written in :
Total Questions
1234567891011121314151617181920
Computer Science
10th Class Federal MCQ Tests
10th Class Online Classes 2026
Updated on: 17-05-2026
10th Class Online Preparation
10th Class 2026 Online
10th 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
Federal 10th Class Computer Science








