Python Ifs, Lists, and Loops
Quiz
•
Computers
•
7th - 8th Grade
•
Practice Problem
•
Medium
Mark Christensen
Used 26+ times
FREE Resource
Enhance your content in a minute
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
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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
Lesson 9 - The internet
Quiz
•
8th Grade
10 questions
Creating Database Tables
Quiz
•
8th - 10th Grade
10 questions
US Teens and Digital Habits
Quiz
•
6th - 8th Grade
10 questions
Informatika
Quiz
•
6th - 8th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
แบบทดสอบ พื้นฐาน Word
Quiz
•
6th - 8th Grade
15 questions
Review Komputer Mid SMP (1)
Quiz
•
8th Grade
10 questions
Scratch Introduction
Quiz
•
5th - 8th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
