WorksheetsIntroduction to Programming
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
What is Selection?
a)
Repeating a number of steps
b)
A decision point in a program
c)
The order in which instructions are carried out
2.
In programming, how is selection implemented?
a)
IF-OTHERWISE
b)
IF-ELSE
c)
DO-ELSE
d)
DO-FOR
3.
Why is selection important?
a)
Selection allows a number of steps to be repeated
b)
Selection allows multiple paths through a program
c)
Selection determines the order in which instructions are carried out
4.
What three building blocks are used when designing algorithms?
a)
Sequencing, Programming, Iteration
b)
Sequencing, Selection, Iteration
c)
Sequencing, Selection, Programming
d)
Programming, Selection, Iteration
5.
Which of the following contains an INCORRECT sequence when getting dressed to go out?
a)
Put on socks, put on shoes, put on coat
b)
Put on coat, put on shoes, put on socks
c)
Put on socks, put on coat, put on shoes
6.
What is sequencing?
a)
The order in which steps are carried out in an algorithm
b)
The order in which we think computationally
c)
The process of repeating a number of steps in an algorithm
7.
What is Iteration?
a)
Repeating steps in an algorithm
b)
A decision in an algorithm
c)
An error in an algorithm
8.
Why is iteration so important?
a)
It allows us to choose one of several paths through an algorithm
b)
It allows us to simplify an algorithm by removing unnecessary steps
c)
It allows more steps to be included in an algorithm
9.
What is another name for iteration?
a)
Loop
b)
Sequence
c)
Selection
d)
Algorithm
10.
What is meant by testing a condition?
a)
Checking to see if a condition has been met
b)
Checking which path to take through the solution
c)
Checking how many steps to repeat
100 %
