Question Paper
Class / Subject: Class 9 (ICSE) · Computer Applications
Chapter: Chapter 3 — Chapter 3: Control Structures - Selection
Time Allowed: 32 minutes
Max Marks: 16
1. What does an if statement do? [1]
(A) Runs code only if a condition is true
(B) Always runs code regardless
(C) Never runs code
(D) Deletes code
2. What does if-else provide? [1]
(A) An alternative action if false
(B) Only one action always
(C) No alternative
(D) Deletes the condition
3. What is a switch statement useful for? [1]
(A) Checking one variable against multiple values
(B) Only single condition checks
(C) Deleting variables
(D) Nothing useful
4. What is an example of an if condition? [1]
(A) score > 50
(B) print Pass always
(C) Delete the variable
(D) Nothing specific
5. Why use selection structures? [1]
(A) To make programs respond to different conditions
(B) To make programs simpler always
(C) To avoid all decisions
(D) No reason
6. What happens if the if condition is false and there's no else? [1]
(A) The if block is simply skipped
(B) An error occurs always
(C) The program crashes
(D) The else block always runs regardless
7. Is switch cleaner than many if-else statements? [1]
(A) Yes, for multiple value checks
(B) No, it's always messier
(C) They are identical always
(D) Switch cannot check multiple values
8. Why learn selection structures? [1]
(A) Essential for programs to make decisions
(B) No reason
(C) It's not useful
(D) Only for tests
9. What does an if statement do? [1]
(A) Runs code only if a condition is true
(B) Always runs code regardless
(C) Never runs code
(D) Deletes code
10. What does if-else provide? [1]
(A) An alternative action if false
(B) Only one action always
(C) No alternative
(D) Deletes the condition
11. What is a switch statement useful for? [1]
(A) Checking one variable against multiple values
(B) Only single condition checks
(C) Deleting variables
(D) Nothing useful
12. What is an example of an if condition? [1]
(A) score > 50
(B) print Pass always
(C) Delete the variable
(D) Nothing specific
13. Why use selection structures? [1]
(A) To make programs respond to different conditions
(B) To make programs simpler always
(C) To avoid all decisions
(D) No reason
14. What happens if the if condition is false and there's no else? [1]
(A) The if block is simply skipped
(B) An error occurs always
(C) The program crashes
(D) The else block always runs regardless
15. Is switch cleaner than many if-else statements? [1]
(A) Yes, for multiple value checks
(B) No, it's always messier
(C) They are identical always
(D) Switch cannot check multiple values
16. Why learn selection structures? [1]
(A) Essential for programs to make decisions
(B) No reason
(C) It's not useful
(D) Only for tests