NSCT – Operators & Expressions MCQs 20 min Score: 0 Attempted: 0/20 Subscribe 1. Which control structure executes a block of code only if a condition is true? (A) for loop (B) if statement (C) while loop (D) switchShow All AnswersShow All Answers 2. Which keyword is used for an alternative block of code if the if condition is false? (A) elif (B) else (C) otherwise (D) nextShow All Answers 3. Which keyword is used to check multiple conditions in sequence? (A) switch (B) else (C) if (D) elifShow All Answers 4. Which loop is used when the number of repetitions is known? (A) while (B) for (C) do-while (D) if-elseShow All Answers 5. Which loop is used when the number of repetitions is not known? (A) for (B) do-while (C) while (D) switchShow All Answers 6. What does the break statement do inside a loop? (A) Skips the current iteration (B) Starts a new loop (C) Continues to the next iteration (D) Exits the loop immediatelyShow All Answers 7. What does the continue statement do inside a loop? (A) Exits the loop immediately (B) Repeats the same iteration (C) Stops the program (D) Skips the current iteration and moves to the nextShow All Answers 8. Which control structure is best for checking multiple fixed options? (A) switch/case (B) for (C) if (D) whileShow All Answers 9. Which statement is used to exit a function or method immediately? (A) stop (B) break (C) return (D) exitShow All Answers 10. Which type of loop executes at least once regardless of the condition? (A) for (B) while (C) if (D) do-whileShow All Answers 11. What happens if the loop condition is always true? (A) Infinite loop (B) Loop will stop immediately (C) Skip iteration (D) Error occursShow All Answers 12. Which control structures can be placed inside another control structure? (A) Both if-else and loops (B) loops only (C) if-else only (D) NoneShow All Answers 13. Which keyword is used to handle multiple conditions in a single sequence? (A) case (B) else (C) switch (D) elifShow All Answers 14. Which loop is best when the exact number of repetitions is known beforehand? (A) while (B) if-else (C) do-while (D) forShow All Answers 15. Which loop repeats a block of code while a condition remains true? (A) while (B) for (C) if (D) switchShow All Answers 16. Which statement is used to skip the current iteration in a loop? (A) break (B) return (C) continue (D) passShow All Answers 17. Which statement does nothing and is used as a placeholder? (A) pass (B) continue (C) break (D) returnShow All Answers 18. What type of control structure is if-else? (A) Sequential (B) Iterative (C) Conditional (D) FunctionalShow All Answers 19. Which loop executes code for each item in a fixed collection of elements? (A) do-while (B) while (C) for (D) ifShow All Answers 20. Which control structure allows choosing between multiple options based on a value? (A) if (B) switch/case (C) while (D) forShow All Answers