Control Structures

Practice this topic with targeted MCQs and published study materials.

Active MCQs for Control Structures

What does an if statement do?

Difficulty: Medium | Explanation available

4 options

Which is a decision-making structure?

Difficulty: Medium | Explanation available

4 options

How many types of control structures are there in programming?

Difficulty: Medium | Explanation available

4 options

What will be the output? list(range(1, 10, 3))

Difficulty: Medium | Explanation available

4 options

What will be the output? for i in range(2, 6): print(i)

Difficulty: Medium | Explanation available

4 options

What does the range() function return?

Difficulty: Medium | Explanation available

4 options

What is nested if?

Difficulty: Medium | Explanation available

4 options

Which statement is optional in an if structure?

Difficulty: Medium | Explanation available

4 options

What will happen if a while loop condition is always true?

Difficulty: Medium | Explanation available

4 options

Which keyword is used to exit from a function or loop?

Difficulty: Medium | Explanation available

4 options
Showing 11 to 20 of 30 Page 2 of 3

Published Materials for This Topic

Looping Constructs

Published topic material. | Type: Notes

Short Hand if-else & if-elif-else Statement

Published topic material. | Type: Notes

If and if-else Statement

Published topic material. | Type: Notes