WorksheetsComputer Science 2: Control Structures
Total questions: 11
Worksheet time: 12mins
What are the three main programming structures?
Sequence, selection, iteration
Structured, object-oriented, procedural
Java, Python, Visual Basic
Machine, assembly, high-level
In programming, what is iteration?
The repetition of steps within a program
The order in which instructions are carried out
A decision point in a program
A terminating statement
Identify the control structure involved to this question.
A grocery store manager wants a program that allows the clerk to enter original price of an item and discount rate. The program then should display both the original and discounted price.
Selection
Sequence
Iteration
single-alternative ifs
A benefit of using flowcharts is:
They help you program faster
They write the program for you
They are easier
They help you to visually plan a program
Yes
19
