Python Loop Practice

Python Loop Practice

9th - 12th Grade

19 Qs

quiz-placeholder

Similar activities

CMU quiz

CMU quiz

7th - 9th Grade

20 Qs

Ktra 15ph Tin 10

Ktra 15ph Tin 10

10th Grade

15 Qs

Remidi UTS AIJ

Remidi UTS AIJ

12th Grade

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Python List

Python List

4th Grade - University

15 Qs

QUIZ BAB 4: SISTEM OPERASI

QUIZ BAB 4: SISTEM OPERASI

8th Grade - University

20 Qs

UH 1 Ms. Excel

UH 1 Ms. Excel

7th - 9th Grade

21 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Python Loop Practice

Python Loop Practice

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Kirsten Poland

Used 54+ times

FREE Resource

AI

Enhance your content in a minute

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

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is another way of writing the following code? 
Score = Score + 1 

Score.add(1)
score + 1
Score + Score
Score += 1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following lines of code print?

A
B
C
A
C
Nothing, it will return an error.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will check to see if a is equal to b?

if a == b
if a = b:
if a != b:
if a == b:

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What are the two main types of loops that we have learned about in Python?

IF Function & Variables
FOR and WHILE Loops
Forever and Fixed Loop
Data Types and Numbers

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of loop is used when you know how many times you want to repeat something?

A WHILE Loop
An IF function
A FOR Loop
A Variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of loop is used when you DO NOT know how many times you want to repeat something?

A WHILE Loop
A Counter
A FOR Loop
A Forever Loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would amount equal in this piece of code:

amount = 2 + 5 * 2

12
9
14
5

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

Already have an account?