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
Which line of Python code is valid?
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 Wayground
9 questions
Intro to Python & Variables

Quiz
•
5th Grade
6 questions
Цикли (частина 1)

Quiz
•
1st - 5th Grade
10 questions
Shortcut keys

Quiz
•
1st - 2nd Grade
10 questions
การประเมินการเขียนโปรแกรมภาษาไพทอน

Quiz
•
1st Grade
10 questions
Python

Quiz
•
5th - 8th Grade
10 questions
Introduction to Python - If and Else

Quiz
•
1st - 6th Grade
10 questions
TIK Kelas 4 Ikon Dokumen Part 2 3 Sept

Quiz
•
4th Grade
11 questions
Super Puper Test

Quiz
•
5th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade