Computer Decision Constructs Test Online

Important Computer Decision Constructs Question and Answer

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

Decision Constructs Practice Test Online With Explanation

Page 1 of 2

Uncategorized

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

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

3. What is the output of this code?

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

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

6. Which of the following is a relational operator?

7. What is the purpose of the else block?

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

9. What will this code print?

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

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

12. Which operator is used in ternary condition?

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

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

15. What is the output of:

16. Which data type is allowed in switch expression?

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

18. Can a switch statement handle strings?

19. Which of the following is a ternary operator?

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

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

22. Which of the following is a compound condition?

23. Which of the following is used to evaluate multiple conditions?

24. What happens when both if and else are without braces?

25. Which construct is used for multi-way branching?


 

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!

Leave a Reply

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

Back to top button