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. Can a switch statement handle strings?

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

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

4. Which of these expressions is evaluated first?

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

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

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

8. Which of the following is used for decision-making in C?

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

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

11. What is the output of:

12. Which of the following is a relational operator?

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

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

15. Which operator is used for logical AND in C?

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

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

18. Which data type is allowed in switch expression?

19. Which operator gives highest precedence in decision making?

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

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

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

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

24. Which operator is used in ternary condition?

25. What will this code print?


 

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
error: