Menu

Condition-Controlled Iteration - Code Quiz

1. What is printed?

count = 1 while count <= 4: print(count * 2) count = count + 1
1 2 3 4
2 4 6 8
2 4 6
2 4 6 8 10

2. What value is printed?

x = 1 while x < 20: x = x * 2 print(x)
32
64
16
20

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic