No student devices needed. Know more
12 questions
When a piece of code runs unintentionally forever it is known as
An infinite loop
A long loop
A broken loop
A for loop
A condition is
a statement that is either True or False
a string
an integer
a list
What does the code output?
0
1
2
3
1
2
3
0
1
2
What does the code output?
hi
It won't output anything
It will output an error!
It will output "hi" infinitely
What does the code output?
hi
bye
hi
bye
hi
bye
hi
bye
hi
hi
hi
bye
What does the code output?
3
6
7
4
What does the code output?
hi
hi
hi
hi
hi
hi
hi
hi
hi
hi
What does the code output?
3
4
5
1
2
3
3
4
5
6
3
4
4
What is the value of i after this loop runs?
i = 20
i = 19
i = 10
i = 0
x is 0
x is 1
x is 3
x is 4
What will be displayed when the following code is executed?
6 3 0
6 3
3 0
0
Explore all questions with a free account