Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

looping

Total questions: 15

Worksheet time: 30mins

Name
Class
Date
1.

What is the output of this code?

a)

hi

b)

hi

hi

c)

hi

hi

hi

d)

hi hi hi

2.

What is the output of this code?

a)

hi

b)

hi

hi

c)

hi

hi

hi

d)

hi hi

3.

What is the output of this code?

a)

hi

b)

hi

hi

c)

hi

hi

hi

d)

hi hi hi

4.

What is the output of this code?

a)

i is: 0

i is: 1

i is: 2

b)

i is: 1

i is: 2

i is: 3

c)

i is: 1

i is: 2

d)

i is: 0

i is: 1

i is: 2

i is: 3

5.

What is the output of this code?

a)

1

2

b)

0

1

c)

0

1

2

d)

1

2

3

6.

What is the output of this code?

a)

1

2

3

b)

1

2

c)

0

1

2

d)

0

1

2

3

7.

What is the output of this code?

a)

2

3

b)

2

c)

1

2

3

d)

0

1

2

8.

What is the output of this code?

a)

0

1

2

b)

0

2

c)

0

2

3

d)

0

1

2

3

9.

What is the output of this code?

a)

3

2

1

0

b)

3

2

1

c)

3

2

1

0

-1

d)

-1

0

1

2

10.

What is the output of this code?

a)

0

1

2

b)

0

2

c)

0

1

d)

0

1

2

3

11.

What is the output of this code?

a)

0

1

2

b)

0

2

c)

0

d)

0

1

2

3

12.

What is the output of this code?

a)

0

1

2

3

b)

0

2

3

c)

0

1

2

3

4

d)

0

2

3

4

13.

What is the output of this code?

a)

0

1

2

3

b)

0

2

3

c)

0

d)

0

4

14.

What is the output of this code?

a)

3

2

1

0

b)

3

2

1

c)

3

2

d)

3

15.

What is the output of this code?

a)

3

2

1

0

b)

3

2

1

c)

3

2

d)

3