What is a variable in Python?
Python Basics Quiz for KS3

Quiz
•
Computers
•
11th Grade
•
Hard

Savannah Graziano
Used 12+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A type of Python snake
A reserved word that cannot be used for anything other than its pre-defined purpose
A name that is used to denote something or store a value is called a variable
A data type that stores integers
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a data type in Python?
String
Integer
Float
Perform
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the numeric value 5?
int x = 5
x = 5
x == 5
var x = 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to assign the string "Hello, World!" to a variable in Python?
print("Hello, World!")
print= ("Hello, World!")
Print("Hello, World!")
x := "Hello, World!"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python x = 10 y = 20 print(x + y) ```
True
False
30
x + y
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to perform a conditional operation in Python?
Hint: which statement word allows the code to make a decision?
for
while
if
def
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print? ```python if 5 > 2: print("Five is greater than two!") ```
Error
Nothing
"Five is greater than two!"
True
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type would you use to store a person's age?
String
Integer
Float
Character
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python age = 18 if age >= 18: print("Adult") else: print("Minor") ```
Minor
Adult
18
Error
Similar Resources on Quizizz
13 questions
Fundamentals of Python

Quiz
•
9th - 12th Grade
11 questions
Programming Quiz 1

Quiz
•
11th Grade
10 questions
PSP Week3

Quiz
•
University
9 questions
Python Programming Basics

Quiz
•
6th - 12th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
Python-1st

Quiz
•
University
10 questions
Unit 1 Post Test: Basic Python

Quiz
•
9th - 12th Grade
11 questions
Python Quiz

Quiz
•
12th 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
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University