Control Structures Quiz - CBSE Class 10 ICT
Free practice quiz: Control Structures (CBSE Class 10 ICT). 18 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
This CBSE Class 10 ICT practice quiz has 18 multiple-choice questions on Control Structures, and 18 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: 18 questions, freeSample questions
What is a control structure in programming?
Show answer
Answer: C. A way to manage the flow of a program
Control structures are used to dictate the order of execution of the statements in a program.
What is the default flow of control in a program?
Show answer
Answer: A. Sequential execution
Programs execute in a sequential order unless control structures dictate otherwise.
Which symbol marks the beginning of a block in most syntax?
Show answer
Answer: B. {}
In many programming languages, curly braces '{}' are used to define the start and end of a block of code.
When should 'if-else' be preferred over 'switch' statement?
Show answer
Answer: A. When there are multiple precise comparisons
An 'if-else' chain is more suitable for precise or logical conditions, unlike 'switch', which is better for predefined constant values.
Which of the following can be used as a synonym for 'control structure'?
Show answer
Answer: B. Flow control
Control structures are frequently referred to as flow control; they determine the path that execution will follow.
More questions in this quiz
Answers and explanations are in the full quiz.
- Which of the following is a control structure?
- What is the primary purpose of an 'if' statement?
- What role does a 'switch' statement play?
- Which of the following is not a control structure?
- How does a 'for' loop differ from a 'while' loop?
- What does a 'break' statement do in a loop?
- What is a common use of the 'continue' statement?
- Which statement checks an expression against predefined constants?
- Why is a break statement used in switch cases?
- What is the main purpose of using 'else' in an 'if' construct?
- Why is recursion considered a form of control structure?
- Which loop is best suited for iterating a known number of times?
- What control structure allows branching in decision trees?
More quizzes
Browse all Programming quizzes