QUESTION IMAGE
Question
which option is the best example of a control structure?
a. a loop
b. hardware
c. an event
d. a function
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.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
A. A loop