For and While Loops in Python

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

28 questions
Show all answers
1.
FLASHCARD QUESTION
Front
The program above
Back
prints all the odd numbers between 1 and 20
2.
FLASHCARD QUESTION
Front
The equivalent of the above for loop using the while syntax would be
Back
3.
FLASHCARD QUESTION
Front
The above program prints
Back
Numbers 1 to 10 in reverse order
4.
FLASHCARD QUESTION
Front
Look at the following code, what will it generate? Options: 1,2,3,4,5,6,7,8,9,10,11,12, 0,1,2,3,4,5,6,7,8,9,10,11,12, 1,2,3,4,5,6,7,8,9,10,11,12,13, 0,1,2,3,4,5,6,7,8,9,10,11,12,13
Back
0,1,2,3,4,5,6,7,8,9,10,11,12
5.
FLASHCARD QUESTION
Front
Back
6.
FLASHCARD QUESTION
Front
What best describes what is printed by the following code? Options: Prints the numbers 0 through 6, Prints h e l l o w, Prints the phrase "hello world!" 7 times, Prints "hello w" 7 times
Back
Prints the numbers 0 through 6
7.
FLASHCARD QUESTION
Front
What best describes what is printed by the following code? Options: Prints the numbers 0 through 6, Prints h e l l o w, Prints the phrase "hello world!" 7 times, Prints "hello w" 7 times
Back
Prints the phrase "hello world!" 7 times
Create a free account and access millions of resources
Similar Resources on Wayground
22 questions
Unit 9 Flashcard 1

Flashcard
•
9th - 12th Grade
22 questions
Unit 9 Flashcard 1

Flashcard
•
9th - 12th Grade
22 questions
CodeHS AP CSP Unit 3 Review

Flashcard
•
11th - 12th Grade
20 questions
CSP Unit 4 Review

Flashcard
•
9th - 12th Grade
20 questions
Lists & Tuples

Flashcard
•
9th - 12th Grade
19 questions
AP CSP Unit 5 Review: Lists, Loops and Traversals

Flashcard
•
9th - 12th Grade
26 questions
Python Functions Review Flashcard

Flashcard
•
9th - 12th Grade
25 questions
Python Data Types

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade