wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Loops Review

Total questions: 13

Worksheet time: 1hrs 14mins

Name
Class
Date
1.

What is the value of mystery after the execution of the loop?

a)

mystery = 0

b)

mystery = 6

c)

mystery = 5

d)

mystery = 10

e)

myster = 15

2.

What is the value of mystery after the execution of the loop?

a)

mystery = 0

b)

mystery = 10

c)

mystery = 11

d)

mystery = 45

e)

myster = 55

3.

After the execution of the code what will the value of mystery be?

a)

mystery = 16

b)

mystery = 4

c)

mystery = 8

d)

mystery = 32

e)

mystery = 2

4.

Write what the value of mystery will be after the execution of the program.

a)

mystery = 180

b)

mystery = 0

c)

mystery = 3

d)

mystery = 36

e)

mystery = 360

5.

Write what the value of mystery will be after the execution of the program.

a)

mystery = 10

b)

mystery = 0

c)

mystery = 2

d)

mystery = 20

e)

mystery = -20

6.

What will be printed to the screen after the execution of the program.

a)

0

b)

25

c)

34567

d)

01234

e)

45678

7.

Trace what is printing to the screen

8.

What prints to the screen?

9.

What prints to the screen?

10.

Describe what prints to the screen from this program code? Where does it start? Where does it end? What will the print out look like?

4 lines
11.

What prints to the screen?

12.

Write a FOR LOOP that prints the multiples of 10 between 10 and 100.

You can type your response, or write the Code in BlueJ and attach a picture of your code.

4 lines
13.

Write a WHILE LOOP that uses prompts to accept user input, and prints their input to the screen until the user types "stop copying me".

You can type your response, or write the Code in BlueJ and attach a picture of your code.

4 lines