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

ECAT Practice Computer Science Decision Constructs MCQs Test 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.
General10 MCQs
1. In a switch statement, the break keyword is used to:
2. What is the output of: if (5 > 3) { print("Yes"); } else { print("No"); }?
3. What is the output of: if (10 == 5) { print("Equal"); } else { print("Not Equal"); }?
4. In a conditional expression (ternary operator), the syntax is:
5. Which of the following is a relational operator?
General10 MCQs
6. Which operator checks for "not equal to"?
7. What will this code print? int a = 10; if (a > 5 && a < 20) { print("In range"); } else { print("Out of range"); }
8. What will this code print? int a = 10; if (a > 5 || a < 3) { print("Yes"); } else { print("No"); }
9. What is the result of: ! (5 > 3)?
10. 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.