Which of the following is a valid variable name in Python?

Python Basics Quiz for Year 9

Quiz
•
Information Technology (IT)
•
9th Grade
•
Hard
peter allsop
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
2number
number_2
number-2
number 2
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What data type will the variable `age` have after this code runs? ```python age = 15 ```
str
float
int
bool
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is used to get input from the user in Python?
print()
input()
scan()
read()
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code? ```python print("Hello, World!") ```
Hello, World!
"Hello, World!"
print("Hello, World!")
Hello World
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is NOT a built-in data type in Python?
int
float
string
list
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the value of `result` after this code runs? ```python result = 3.5 + 2 ```
5.5
7
3.5
2
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How do you display the value of a variable called `score` in Python?
display(score)
print(score)
show(score)
output(score)
Create a free account and access millions of resources
Similar Resources on Quizizz
22 questions
Unit-8 (QB64) Year-6

Quiz
•
6th Grade - University
21 questions
Unit 3: Basic Python & Console Interaction

Quiz
•
9th - 12th Grade
20 questions
Тест по основам Python(intro1)

Quiz
•
9th - 12th Grade
16 questions
9 Weeks Test

Quiz
•
9th - 12th Grade
15 questions
Python Programming Quiz

Quiz
•
9th - 12th Grade
15 questions
Python programming language Quiz

Quiz
•
9th Grade
15 questions
Python for loop/lists

Quiz
•
9th Grade - University
20 questions
Pemrograman Blokly

Quiz
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Information Technology (IT)
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
24 questions
LSO - Virus, Bacteria, Classification - sol review 2025

Quiz
•
9th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade
10 questions
Exponential Growth and Decay Word Problems

Quiz
•
9th Grade