What are the programming constructs?

  1. Sequential

  2. Selection -- if and switch statements

  3. Iteration -- for loop, while loop and do-while loop

  4. none of the above


Correct Option: A

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Sequential - This option is correct. Sequential is a programming construct that represents a sequence of instructions executed in order, one after another.

Option B) Selection - This option is incorrect. Selection is a programming construct that allows the execution of different sets of instructions based on a condition. It includes if and switch statements.

Option C) Iteration - This option is incorrect. Iteration is a programming construct that allows the repeated execution of a set of instructions. It includes for loop, while loop, and do-while loop.

Option D) none of the above - This option is incorrect because the correct answer is option A - Sequential.

The correct answer is option A. This option is correct because sequential execution is a fundamental programming construct that represents the order in which instructions are executed.

Find more quizzes: