MCQ Hive stays free thanks to ads. Please disable your ad blocker for this site so content and features keep working.
Fundamental Programming
Programming Paradigms
Beginner
Q
According to the structured program theorem (Böhm–Jacopini), which three control structures are sufficient for any algorithm?
ASequence, selection, iteration
BSelection, recursion, exceptions
CIteration, inheritance, selection
DSequence, goto, recursion
Correct Answer:
A. Sequence, selection, iteration
Explanation:
Any computable function can be expressed using only these three structures. goto is unnecessary.
ALSO KNOW (related points):
• Which language is primarily declarative? → SQL
• In Visual Basic, code runs in response to user actions such as button clicks. Which paradigm is this? → Event-driven programming
• What best describes Python's type system? → Dynamically and strongly typed