
For vs While
Authored by Josh Mitchell
Computers
8th - 10th Grade
Used 26+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Leo wants to write a program that will print out any times-table (up to 10 places) at the users request. Should he use:
A FOR loop
A WHILE loop
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Leah is writing a program that will ask the user to enter 10 numbers, and will then print the total. Should she use:
A FOR loop
A WHILE loop
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
To make sure that the user can only enter A, B or C for the answer to a question, which loop should be used?
a FOR loop
a WHILE loop
4.
MULTIPLE CHOICE QUESTION
1 min • 12 pts
In programming, what is iteration?
5.
MULTIPLE CHOICE QUESTION
1 min • 12 pts
The condition for a while loop to continue could include which of the following?
6.
MULTIPLE CHOICE QUESTION
1 min • 12 pts
Which of the following symbols is used in Python to mean "Equal to"?
7.
MULTIPLE CHOICE QUESTION
1 min • 12 pts
Which of the following symbols is used in Python to mean "Not equal to"?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?