class 8 chapter 6
JAVA – CONTROL STATEMENTS Complete Questions and Answers A. Choose the Correct Answer (MCQ) 1. In Java, which keyword is used to start a conditional block that executes only if a specific condition is true? a. else b. if c. switch d. loop Answer: b. if 2. What is the correct way to write an if condition in Java where x is greater than y? a. if (x > y) b. If (x > y) c. if { x > y } d. If [ x > y ] Answer: a. if (x > y) 3. Which of the following is NOT a type of control statement? a. Decision Control Statement b. Looping Control Statement c. Input/Output Control Statement d. Jump Statement Answer: c. Input/Output Control Statement 4. Which of these provides an alternative path of execution when an if condition is false? a. break b. else c. case d. default Answer: b. else 5. The if-else-if ladder is useful in handling how many conditions? a. One b. Two c. Multiple d. No such ladder Answer: c. Multiple 6. What is the primary purpose of decision control statements in ...