Control Structures Quiz - CBSE Class 11 ICT
Free practice quiz: Control Structures (CBSE Class 11 ICT). 14 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
This CBSE Class 11 ICT practice quiz has 14 multiple-choice questions on Control Structures, and 14 of them come with an explanation. Try the 5 sample questions below (tap an option to check yourself), then play the full quiz online. No sign-up needed.
Start quiz: 14 questions, freeSample questions
Which control structure is used to repeatedly execute a block of code?
Show answer
Answer: C. loop
Loops (like 'for' and 'while') are designed for repetitive execution of code blocks.
What is the difference between 'while' and 'do-while' loops?
Show answer
Answer: B. 'while' checks the condition before each iteration, 'do-while' checks after
'while' loop checks the condition first, 'do-while' executes the loop body at least once.
What is nested loop?
Show answer
Answer: A. A loop inside another loop
A nested loop is a loop placed inside another loop.
What is an infinite loop and how can you prevent it?
Show answer
Answer: B. A loop with a condition that always evaluates to true
An infinite loop occurs when the loop condition never becomes false; proper loop termination conditions are essential to prevent it.
How can you improve the efficiency of a recursive function?
Show answer
Answer: B. Use memoization to store previously calculated results
Memoization improves efficiency by storing and reusing previously computed results, thus avoiding redundant calculations.
More questions in this quiz
Answers and explanations are in the full quiz.
- What does an 'if' statement do?
- Explain the use of a 'break' statement within a loop.
- What is the purpose of a 'switch' statement?
- How does a 'for' loop differ from a 'while' loop?
- Describe the functionality of a 'continue' statement in a loop.
- Explain the concept of recursion in programming.
- What are the potential drawbacks of using recursion?
- Explain the use of flags in controlling program flow.
- How can you handle exceptions during program execution using control structures?
More quizzes
Browse all Programming quizzes