For vs While

For vs While

8th - 10th Grade

20 Qs

quiz-placeholder

Similar activities

Trắc nghiệm Tin học 9 (Phần mềm trình chiếu)

Trắc nghiệm Tin học 9 (Phần mềm trình chiếu)

9th Grade

20 Qs

Advantages and Disadvantages of Collecting Data

Advantages and Disadvantages of Collecting Data

10th Grade

20 Qs

Review Komputer Mid SMP (1)

Review Komputer Mid SMP (1)

8th Grade

15 Qs

Cyber Skills Quiz 1 - Y9

Cyber Skills Quiz 1 - Y9

9th Grade

19 Qs

kiểm tra 15p tin 8 ki 2

kiểm tra 15p tin 8 ki 2

6th - 8th Grade

21 Qs

History Of Computers

History Of Computers

7th - 8th Grade

15 Qs

TIN 9 BÀI 1,2

TIN 9 BÀI 1,2

1st - 12th Grade

15 Qs

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th 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"?

==
!=
<>
><

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?