Question Detail

COS 102 6 lecture note; fundamentals of programming Objective Question

Question

Python programs regulate control flow primarily through which of the following?
Options
A Conditional statements, loops, and function calls.
Correct Answer
B Variable declarations and assignments.
C Comments and documentation.
D Import statements and module definitions.
Correct Answer

Option A is the correct answer.

Detailed Explanation

Page 18 states: 'The control flow of a python program is regulated by conditional statements, loops and functions calls.'

Hint

Consider the mechanisms that allow a program to make decisions or repeat actions.

Question Info