Navigation Menu
Home Blog Latest Notices
ECAT 2026 Practice Test Computer Science Decision Constructs Free Quiz 2
General
ECAT 2026 Practice Test Computer Science Decision Constructs Free Quiz 2
Practice ECAT 2026 Practice Test Computer Science MCQs from Decision Constructs. Get instant results with Explanation.
Practice Quiz 2 for "Decision Constructs" (Computer Science). Total 30 MCQs available, split into 3 quizzes. Test your understanding of core concepts. This area is highly tested in ECAT. Practice these MCQs repeatedly to ensure you don't lose valuable marks on exam day.
General5 MCQs
11. In a switch statement, the break keyword is used to:
12. What is the output of: if (5 > 3) { print("Yes"); } else { print("No"); }?
13. What is the output of: if (10 == 5) { print("Equal"); } else { print("Not Equal"); }?
14. In a conditional expression (ternary operator), the syntax is:
15. Which of the following is a relational operator?
General5 MCQs
16. Which operator checks for "not equal to"?
17. What will this code print? int a = 10; if (a > 5 && a < 20) { print("In range"); } else { print("Out of range"); }
18. What will this code print? int a = 10; if (a > 5 || a < 3) { print("Yes"); } else { print("No"); }
19. What is the result of: ! (5 > 3)?
20. In C/C++, what is the result of (5 > 3) ? 10 : 20?

📋 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.