Question Detail

COS 102 6 lecture note; fundamentals of programming Objective Question

Question

What does 'control flow' primarily refer to in the context of a program?
Options
A The visual design and layout of the program's user interface.
B The order in which the program's instructions or code executes.
Correct Answer
C The amount of memory allocated and deallocated during program runtime.
D The process of managing multiple concurrent operations within a program.
Correct Answer

Option B is the correct answer.

Detailed Explanation

As stated on page 18 of the document, "A program’s control flow is the order in which the program’s code executes." It dictates the sequence of operations.

Hint

Think about the path a program takes from start to finish. What determines that path?

Question Info