For vs While

For vs While

8th - 10th Grade

20 Qs

quiz-placeholder

Similar activities

Revision

Revision

9th Grade

17 Qs

Programming Quiz for year 10

Programming Quiz for year 10

9th - 10th Grade

18 Qs

Python Next Steps Homework Quiz

Python Next Steps Homework Quiz

8th - 10th Grade

20 Qs

Python Basics 3

Python Basics 3

9th - 12th Grade

25 Qs

Foundations of Programming

Foundations of Programming

9th - 10th Grade

18 Qs

Python : Codeathon Competition

Python : Codeathon Competition

5th - 8th Grade

15 Qs

Python

Python

9th Grade

15 Qs

Procedures and Functions

Procedures and Functions

10th 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?