Python Ifs, Lists, and Loops

Python Ifs, Lists, and Loops

7th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

Programming Constructs

Programming Constructs

5th - 11th Grade

10 Qs

Cyber Quiz

Cyber Quiz

6th - 8th Grade

13 Qs

درس التقارير- Ms Access

درس التقارير- Ms Access

8th Grade

11 Qs

Recuperação - 8º anos - Prova PR + Quizizz

Recuperação - 8º anos - Prova PR + Quizizz

8th Grade

12 Qs

Review for Midterm Test ICT 3

Review for Midterm Test ICT 3

1st - 11th Grade

15 Qs

Wireless micro:bit

Wireless micro:bit

8th Grade

10 Qs

LEVEL 2. BÀI 4. SÁNG TẠO NỘI DUNG

LEVEL 2. BÀI 4. SÁNG TẠO NỘI DUNG

6th - 8th Grade

12 Qs

Python

Python

8th - 9th Grade

15 Qs

Python Ifs, Lists, and Loops

Python Ifs, Lists, and Loops

Assessment

Quiz

Computers

7th - 8th Grade

Practice Problem

Medium

Created by

Mark Christensen

Used 26+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following lines of code is considered a list? SELECT ALL THAT APPLY.

num=input('Please enter your list')

num=[1, 2, 3]

var=['apple,' banana', 'grape']

print('Is this a list?')

letters=['a' , 'b' , 'c']

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

In order to be considered a List, the code needs what? SELECT ALL THAT APPLY.

Brackets

Variable

Commas

Print Command

Input Command

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many iterations will the loop have?

1 iteration

2 iterations

3 iterations

6 iterations

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between For Loops and While Loops?

For Loops don't use numbers

While Loops aren't considered loops

While Loops can't go infinite

Typically, For Loops are based on lists and While Loops are based on equations

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What number will this loop start at?

1

3

5

20

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you write out "while x is less than twenty"?

while x != 20:

while x > 20:

while x < 20:

while x <= 20:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A loop that is inside of another loop is known as a what?

Infinite loop

Loop to loop

While Loop

Nested Loop

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?