ECAT Computer Decision Constructs Test Online

ECAT Computer Science Decision Constructs Test

ECAT Computer Science Chapter 21 Decision Constructs Online Test

Total Questions: 37
Time Allowed: 20 Minutes
Total Marks: 37
How to Attempt Test: Please choose the right Option in MCQ-type question.
Test Helpful For: ECAT Entry Test
Computer Online Test
Interview Questions about Computer
All Universities Entrance Test
Recruitments Tests

ECAT Decision Constructs Test Online MCQs

Page 1 of 2

Uncategorized

1. Which decision construct is used for true/false evaluation?

2. Which of the following is used to select one option from multiple choices?

3. What is the correct syntax for a switch statement?

4. Which of the following is the correct syntax of an if statement in C?

5. Which of the following cannot be used in a switch case label?

6. What is the purpose of the break statement in a switch case?

7. Which operator is used for logical OR in C?

8. What will this code print?

9. What is the purpose of default in a switch?

10. What will be the output of:

11. Can you nest switch statements?

12. Which of these expressions is evaluated first?

13. Which of the following can be nested?

14. Which of the following must be a constant expression in a switch case?

15. What is the output of this code?

16. Can the default label appear anywhere in a switch block?

17. Which is the default return type of a condition?

18. Which operator is used in ternary condition?

19. Which of the following keywords is not part of decision-making in C?

20. How many else if clauses can be used after an if?

21. What happens if a break is omitted in a switch case?

22. Which is true for a valid if-else block?

23. Which data type is allowed in switch expression?

24. What is the use of the default case in a switch?

25. Which keyword can transfer control to a label in C?


 

You Can Learn and Gain more Knowledge through our Online Quiz and Testing system Just Search your desired Preparation subject at Gotest.

Mustansar Khan

Hey Exam Warriors! I'm Mustansar Khan, your ally in conquering tests. Uncover strategies, real-time experiences, and expert advice to turn your study sessions into victories. Let's gear up for success!

Your Related

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
error: