For vs While

For vs While

8th - 10th Grade

20 Qs

quiz-placeholder

Similar activities

Python Beginner

Python Beginner

9th - 10th Grade

16 Qs

For and While Loops in Python

For and While Loops in Python

9th - 12th Grade

16 Qs

Python - While loop

Python - While loop

9th - 10th Grade

19 Qs

Python For And While Loop

Python For And While Loop

8th - 9th Grade

20 Qs

Python тілінде циклдар

Python тілінде циклдар

9th - 12th Grade

22 Qs

HTML (basics)

HTML (basics)

10th Grade

15 Qs

Python Basics Quiz

Python Basics Quiz

9th - 12th Grade

15 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

For vs While

For vs While

Assessment

Quiz

Computers

8th - 10th Grade

Medium

Created by

Josh Mitchell

Used 25+ times

FREE Resource

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?
The repetition of steps within a program
The order in which instructions are carried out
A decision point in a program
Testing a program to make sure it works

5.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

The condition for a while loop to continue could include which of the following?
While something equals something
While something is greater than something
While something is True
All of these

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"?
==
!=
<>
><

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?