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 12 Loop Constructs Computer Science 12th Class Punjab MCQ Tests

12th Class Computer Science Chapter 12 MCQ Tests
Chapter 12 of 12th 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
Conditional expression used in do while loop must be true, in order to continue loop.
Question # 2
The total number of variables in Repetition structure is reduced as compared to Sequential structure.
Question # 3
The output of following code will be: main() { int a=32; do { printf("%d ", a); a++; }while(a <= 30); }
Question # 4
The inner loop is performed a number of times as specified by the outer loop.
Question # 5
In multiplication process of (10x9x8x7x6) how many times a loop will run?
Question # 6
if continue statement is used inside'do while' body then control is transferred to:
Question # 7
In sum formula ( sum=sum+number) , the initial value of sum always equals to :
Question # 8
In implantation of data with rows and columns, which loop is appropriate?
Question # 9
if there is a while loop which will execute only 5 times and on each execution the following formula (x=x+2;) will run then output will be: where as x=1; and x=x+2;
Question # 10
if x=0; and while(x>0){ printf("I am in loop"); x++;} how many times " I am in loop " printed?
Question # 11
A set of statements continue to repeat, until or unless condition is :
Question # 12
The output of following code will be: main() { for (int i=0; i<2; i++) { for (int j=0; j<4; j++) { printf("%d, %d ",i ,j); } } }
Question # 13
The output of following code will be: main() { int loop=10; while(printf("Hello ") && loop--); }
Question # 14
The output of the following code will be: main() { int i = 0; for(i = 0;i == 0;i++) { printf("%d", i); } }
Question # 15
The depth of nested loop depends upon:
Question # 16
The output of following code will be: main() { while () printf("In Pakistan "); printf("Now in Afghanistan "); }
Question # 17
In do while loop , the conditional expression is: (while(i!=0) then how many times do while loop will run? Where as int i=0;
Question # 18
In multiplying (10x9x8x7x6) which method is best to execute this task?
Question # 19
The output of following code will be: int main() { int i = 0; do { i++; printf("Pakistan "); } while (i < 3); }
Question # 20
Primary purpose of repetition structure is:
Total Questions
1234567891011121314151617181920
Question # 1
Conditional expression used in do while loop must be true, in order to continue loop.
Question # 2
The total number of variables in Repetition structure is reduced as compared to Sequential structure.
Question # 3
The output of following code will be: main() { int a=32; do { printf("%d ", a); a++; }while(a <= 30); }
Question # 4
The inner loop is performed a number of times as specified by the outer loop.
Question # 5
In multiplication process of (10x9x8x7x6) how many times a loop will run?
Question # 6
if continue statement is used inside'do while' body then control is transferred to:
Question # 7
In sum formula ( sum=sum+number) , the initial value of sum always equals to :
Question # 8
In implantation of data with rows and columns, which loop is appropriate?
Question # 9
if there is a while loop which will execute only 5 times and on each execution the following formula (x=x+2;) will run then output will be: where as x=1; and x=x+2;
Question # 10
if x=0; and while(x>0){ printf("I am in loop"); x++;} how many times " I am in loop " printed?
Question # 11
A set of statements continue to repeat, until or unless condition is :
Question # 12
The output of following code will be: main() { for (int i=0; i<2; i++) { for (int j=0; j<4; j++) { printf("%d, %d ",i ,j); } } }
Question # 13
The output of following code will be: main() { int loop=10; while(printf("Hello ") && loop--); }
Question # 14
The output of the following code will be: main() { int i = 0; for(i = 0;i == 0;i++) { printf("%d", i); } }
Question # 15
The depth of nested loop depends upon:
Question # 16
The output of following code will be: main() { while () printf("In Pakistan "); printf("Now in Afghanistan "); }
Question # 17
In do while loop , the conditional expression is: (while(i!=0) then how many times do while loop will run? Where as int i=0;
Question # 18
In multiplying (10x9x8x7x6) which method is best to execute this task?
Question # 19
The output of following code will be: int main() { int i = 0; do { i++; printf("Pakistan "); } while (i < 3); }
Question # 20
Primary purpose of repetition structure is:
Total Questions
1234567891011121314151617181920

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