Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question: 2 which of the below are examples of control structures? (i) …

Question

question: 2 which of the below are examples of control structures? (i) if (ii) if/else (iii) while (iv) for i only i and ii only iii and i only i, ii, iii, and iv

Explanation:

Brief Explanations

In programming, 'if' is a conditional statement, 'if/else' is an extended conditional, 'while' is a loop for repeated execution based on a condition, and 'for' is also a loop structure. All are control - structures that determine the flow of a program.

Answer:

D. I, II, III, and IV