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
20 questions
Metric Measure (and Scientific Method)

Quiz
•
6th - 8th Grade
17 questions
AVID 10-Step Tutorial Process

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

Quiz
•
6th - 12th Grade
25 questions
Unit 3: Computer Programming

Quiz
•
6th - 8th Grade
19 questions
Review for Final Exam in App Creators L. 1&2

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

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

Quiz
•
7th Grade - University
20 questions
General Knowledge - Sports

Quiz
•
1st Grade - Professio...
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Other
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
10 questions
Identifying equations

Quiz
•
KG - University
17 questions
guess the logo

Quiz
•
8th Grade
20 questions
Punctuation

Quiz
•
6th - 8th Grade
10 questions
Candy

Quiz
•
4th - 8th Grade
60 questions
FLACS Checkpoint A Review

Quiz
•
7th - 9th Grade
16 questions
Chapter 8 - Getting Along with your Supervisor

Quiz
•
3rd Grade - Professio...