Navigation Menu
Home
Full Length Papers
News Blog
ECAT Practice Computer Science Loop Constructs MCQs Test 2
General

ECAT Practice Computer Science Loop Constructs MCQs Test 2

Practice ECAT 2026 Practice Test Computer Science MCQs from Loop Constructs. Get instant results with Explanation.
Practice Quiz 2 for "Loop Constructs" (Computer Science). Total 30 MCQs available, split into 3 quizzes. Test your understanding of core concepts. This area is highly tested in ECAT.
General10 MCQs
1. A nested loop is:
2. What is the output: for(i=0; i<2; i++) { for(j=0; j<2; j++) { printf("*"); } }
3. The while loop condition is checked:
4. The do-while loop condition is checked:
5. What is the output: int i=0; while(++i < 3) { printf("%d", i); }
General10 MCQs
6. What is the output: int i=0; while(i++ < 3) { printf("%d", i); }
7. Which loop is best when the number of iterations is known?
8. Which loop is best when the number of iterations depends on a condition?
9. A loop that never executes its body is:
10. What is the purpose of the condition part in a loop?

📋 ECAT - Test Online Practice Quizzes

ECAT

Conducting Body: UET
Frequency: Quarterly | Time: 100 Minutes
Negative Marking: No

⚡ Test Pattern (Total: 100 MCQs):

Merit Formula: Typically, the aggregate is calculated as: (ECAT × 33.33%) + (FSc Part-I × 16.67%) + (Matric × 50%). However, the respective university may revise its merit calculation formula or admission criteria from time to time. Please confirm the official criteria before applying.