For vs While

For vs While

8th - 10th Grade

20 Qs

quiz-placeholder

Similar activities

[RB3-Ch4] Problem Solving

[RB3-Ch4] Problem Solving

6th - 8th Grade

20 Qs

ÔN TẬP HỌC KỲ 2 - TIN HỌC 8

ÔN TẬP HỌC KỲ 2 - TIN HỌC 8

8th Grade

20 Qs

Ethical and Social Issues in ICT

Ethical and Social Issues in ICT

10th Grade

15 Qs

G8_Ch2_Windows Movie Maker

G8_Ch2_Windows Movie Maker

8th Grade

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Kiểm tra giữa kỳ 1 Tin 8

Kiểm tra giữa kỳ 1 Tin 8

8th Grade

15 Qs

ÔN TẬP CUỐI KỲ II TIN 8

ÔN TẬP CUỐI KỲ II TIN 8

8th - 11th Grade

17 Qs

حاسب 2

حاسب 2

10th Grade

15 Qs

For vs While

For vs While

Assessment

Quiz

Computers

8th - 10th Grade

Practice Problem

Medium

Created by

Josh Mitchell

Used 25+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?