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
8 questions
ICT Application

Quiz
•
5th - 7th Grade
7 questions
Python Basics CAIE 4

Quiz
•
4th Grade
10 questions
Python-Partie4

Quiz
•
1st Grade
8 questions
Roblox Lua Scripting Quiz

Quiz
•
1st - 12th Grade
11 questions
Grade5-Week12

Quiz
•
5th Grade - University
10 questions
Gmail Login

Quiz
•
KG - 12th Grade
10 questions
Internet - Blogging and Podcasting

Quiz
•
5th - 6th Grade
9 questions
Private and Personal Information Online

Quiz
•
2nd - 5th 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
15 questions
Character Analysis

Quiz
•
4th Grade
10 questions
American Flag

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

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

Quiz
•
5th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
14 questions
IREAD-3 Practice Test

Quiz
•
3rd Grade
15 questions
Multiplication Facts

Quiz
•
4th Grade