Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which option is the best example of a control structure? a. a loop b. h…

Question

which option is the best example of a control structure?
a. a loop
b. hardware
c. an event
d. a function

Explanation:

Brief Explanations

Control structures in programming (a subfield of Computer Science, which is under Natural Science) are used to control the flow of execution. Loops (like for, while loops) are classic control structures that repeat a block of code. Hardware refers to physical components, an event is a trigger, and a function is a reusable code block (not a control structure for flow, though it can be used within them). So a loop is the best example of a control structure.

Answer:

A. A loop