Question Detail

COS 102 6 lecture note; fundamentals of programming Objective Question

Question

According to the document, which of the following is NOT listed as one of Python's three types of control structures?
Options
A Sequential
B Selection
C Repetition
D Recursion
Correct Answer
Correct Answer

Option D is the correct answer.

Detailed Explanation

Page 18 of the document explicitly states: 'Python has three types of control structures: Sequential – default mode, Selection – used for decisions and branching, Repetition – used for looping i.e Repeating a piece of code multiple times'. Recursion is a programming technique, but not one of the fundamental control structures listed in this context.

Hint

Review the slide that lists the types of control structures in Python.

Question Info