Question Detail

COS 102 introduction to programming Objective Question

Question

What are the five basic programming elements identified in the document?
Options
A Input-Output, Variables, Data Types, Functions, Modules
B Arithmetic, Logical, Bitwise, Assignment, Comparison
C Input-Output, Arithmetic, Conditional, Looping, Storage
D Input-Output, Arithmetic, Conditional, Looping, Control Structures
Correct Answer
Correct Answer

Option D is the correct answer.

Detailed Explanation

Page 20 explicitly lists the five basic programming elements as: Input-Output Instruction, Arithmetic Instruction, Conditional Instruction, and Looping Instruction. While 'Control Structures' is not explicitly listed as the fifth, Conditional and Looping Instructions fall under this umbrella, and the options provided align with common programming elements and the document's emphasis. Given the options, 'Control Structures' is the most appropriate grouping for the missing fifth element implicitly covered by conditional and looping. However, re-reading the page, it lists 'Conditional Instruction, and' then 'Looping Instruction' as the fourth and fifth. So 'Control Structures' is not directly named as the fifth element.

Hint

Review the 'Basic Elements' section on page 20 to find the five listed items.

Question Info