Which line of Python code is valid?
Python Quiz 01

Quiz
•
Computers
•
1st - 5th Grade
•
Hard
LIAN Xu
Used 3+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
var a = 12
a = 12
a : 12
12 = a
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the best variable name for Player 1's username?
p1 user name = "tom"
1_player_username = "tom"
player1_username = "tom"
p1u = "tom"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement below is incorrect?
456 is an Integer
"True" is a Boolean
123.4 is a Float
"123" is a String
Answer explanation
"True" has the double quotes so it is a String instead of Boolean.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the mystery variable?
mystery = 734_529.678
Integer
String
Boolean
Float
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
I've put a spell on you. You are now a computer. If I give you the following code, what will you print out?
eR
en
yo
ya
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which block of code will produce an error?
num_hours = "5"
print("There are " + num_hours + " hours until midnight.")
time_until_midnight = "5"
print("There are " + time_until_midnight + " hours until midnight.")
time_until_midnight = "5"
print("There are " + time_until_Midnight + " hours until midnight.")
time_until_midnight = "5"
print("There are", time_until_midnight + " hours until midnight.")
Similar Resources on Quizizz
7 questions
Python Basics CAIE 4

Quiz
•
4th Grade
7 questions
-Internet: Electronic Mail

Quiz
•
5th Grade - Professio...
10 questions
Python-Partie4

Quiz
•
1st Grade
11 questions
Grade5-Week12

Quiz
•
5th Grade - University
8 questions
Roblox Lua Scripting Quiz

Quiz
•
1st - 12th Grade
10 questions
Python Math

Quiz
•
1st - 12th Grade
11 questions
Roblox Piggy

Quiz
•
1st Grade - University
8 questions
Roblox Programming 1

Quiz
•
3rd - 5th Grade
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 Computers
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
10 questions
Comparing Decimals

Quiz
•
5th Grade
10 questions
Identifying equations

Quiz
•
KG - University
15 questions
Multiplication Facts

Quiz
•
4th Grade
46 questions
Math Review EOG

Quiz
•
4th Grade
20 questions
Soil and Erosion Review

Quiz
•
3rd Grade