Which loop will print the numbers 2, 5, 8, ..., 23?
CS Python Fundamentals Unit 4 Review

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

12 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
2.
FLASHCARD QUESTION
Front
Ask the user to input a number less than 10. Print all the numbers from 1 to that number. Which loop correctly does this?
Back
3.
FLASHCARD QUESTION
Front
Write a program to ask the user for a number between 1 and 5, then ask for that many of their favorite movies, counting down to their #1 favorite. A sample output is as follows: Enter a number between 1 and 5: 3 What is your #3 favorite movie? Saving Private Ryan What is your #2 favorite movie? Raiders of the Lost Ark What is your #1 favorite movie? The Empire Strikes Back
Back
4.
FLASHCARD QUESTION
Front
What will the following code print? Options: The numbers 0 through 5, The numbers 1 through 6, The numbers 2 through 6, The numbers 2 through 7
Back
The numbers 2 through 7
5.
FLASHCARD QUESTION
Front
What is the bug in this code? Options: There is no bug, The loop will never run, print (x) causes an error because x is an integer, The loop will never stop
Back
The loop will never stop
6.
FLASHCARD QUESTION
Front
Which statement is true concerning a loop control variable? Options: must be declared as a boolean value, must decrease in value inside the loop, must be a certain value to stop the loop, must receive its value from user input
Back
must be a certain value to stop the loop
7.
FLASHCARD QUESTION
Front
In what type of loop do you know in advance how many times it will repeat? Options: infinite loop, for loop, while loop, user input loop
Back
for loop
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
Python Loops

Flashcard
•
9th - 11th Grade
10 questions
CODEHS Looping Unit 5 Review

Flashcard
•
9th - 12th Grade
11 questions
Intro to Python Unit 6: Test Review

Flashcard
•
9th - 12th Grade
10 questions
Domain and Range Review

Flashcard
•
9th - 12th Grade
12 questions
CSP-A114 Flashcard

Flashcard
•
9th - 12th Grade
15 questions
CodeHS Python Unit 7 Looping Flashcard Review

Flashcard
•
9th - 12th Grade
12 questions
BJC AP CSP Unit 3 Exam Review (In-Class)

Flashcard
•
9th - 12th Grade
8 questions
Warm Up- EduBlocks- Terms and Concepts

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University