NSCT – Control Structures MCQs

20 min Score: 0 Attempted: 0/20 Subscribe
1. Which control structure executes a block of code only if a condition is true?





2. Which keyword is used for an alternative block of code if the if condition is false?





3. Which keyword is used to check multiple conditions in sequence?





4. Which loop is used when the number of repetitions is known?





5. Which loop is used when the number of repetitions is not known?





6. What does the break statement do inside a loop?





7. What does the continue statement do inside a loop?





8. Which control structure is best for checking multiple fixed options?





9. Which statement is used to exit a function or method immediately?





10. Which type of loop executes at least once regardless of the condition?





11. What happens if the loop condition is always true?





12. Which control structures can be placed inside another control structure?





13. Which keyword is used to handle multiple conditions in a single sequence?





14. Which loop is best when the exact number of repetitions is known beforehand?





15. Which loop repeats a block of code while a condition remains true?





16. Which statement is used to skip the current iteration in a loop?





17. Which statement does nothing and is used as a placeholder?





18. What type of control structure is if-else?





19. Which loop executes code for each item in a fixed collection of elements?





20. Which control structure allows choosing between multiple options based on a value?





All Copyrights Reserved 2025 Reserved by T4Tutorials