Web
Site
SYW
HOME
SYWs
A to Z
SYWs by
CATEGORY
How Tos
Questions
& Answers
THE PARTS OF A PROGRAM
What Control Statements Do
Loops and Conditional Statements
Program with Variables and Constants
Quiz 2
If you roll a die 10 times and record the number that comes up in array of integers, which type of loop would you use to look at all those numbers in the array?
for loop
do-until loop
while loop
fruit loop
True or False: You would use an if-then-else statement if you were flipping a coin once and printing one message for heads, or another for tails.
True
False
Move books from a box to a shelf, print the title of each one. You have no advance knowledge how many books are in the box, it may even be empty. What type of loop is this?
for loop
while-end while loop
do-until loop
constant loop
1
2
3
4
printer-friendly