For vs While

For vs While

8th - 10th Grade

20 Qs

quiz-placeholder

Similar activities

ÔN TẬP HKII-02

ÔN TẬP HKII-02

8th Grade

15 Qs

CSS 10 - QUIZ

CSS 10 - QUIZ

10th Grade

20 Qs

Robotic /coding exam

Robotic /coding exam

6th - 8th Grade

16 Qs

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

ptscod

ptscod

8th Grade

20 Qs

CSS GRADE 9 - QUIZ PECs and EM

CSS GRADE 9 - QUIZ PECs and EM

9th Grade

20 Qs

Y9 Creative iMedia RO81 Quiz Part 1

Y9 Creative iMedia RO81 Quiz Part 1

9th Grade

21 Qs

kiểm tra tin 8

kiểm tra tin 8

8th Grade

20 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"?

==
!=
<>
><

Access all questions and much more by creating a free account

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

Already have an account?