Question : What is the result of the following Python expression?
Python Quiz #1

Quiz
•
Other
•
8th Grade
•
Hard
Julio Hernandez Saca
Used 5+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A) 11
B) 16
C) 10
D) 26
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : Which of the following data types is used to store whole numbers in Python?
A) Float
B) String
C) Integer
D) Boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : Which loop is typically used when you know in advance how many times you want to repeat a piece of code?
A) For loop
B) While loop
C) Do-While loop
D) Repeat-Until loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : What will the following code print?
A) 0 1 2 3 4
B) 1 2 3 4 5
C) 0 1 2 3
D) 1 2 3 4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : In Python, what keyword is used to start an if-else statement?
A) elif
B) else
C) then
D) case
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : Which of the following is not a valid variable name in Python?
A) my_variable
B) 123variable
C) _underscore
D) myVariable
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the random.randint(1, 10) function do in Python?
A) Generates a random float between 1 and 10
B) Generates a random integer between 1 and 9
C) Generates a random integer between 1 and 10
D) Generates a random integer between 2 and 10
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
AVID 10-Step Tutorial Process

Quiz
•
6th - 8th Grade
17 questions
Job Interview Test

Quiz
•
6th - 12th Grade
22 questions
Basics of App Coding

Quiz
•
8th - 12th Grade
22 questions
Programming with Karel

Quiz
•
3rd - 8th Grade
20 questions
Malay Vocabulary Quizs

Quiz
•
7th Grade - University
20 questions
Ocean Animals

Quiz
•
KG - 12th Grade
20 questions
General Knowledge - Sports

Quiz
•
1st Grade - Professio...
20 questions
Metric Measure (and Scientific Method)

Quiz
•
6th - 8th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Other
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres

Quiz
•
8th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
25 questions
Argumentative Writing & Informational Text Vocabulary Review

Quiz
•
8th Grade
18 questions
Informational Text Vocabulary

Quiz
•
7th - 8th Grade