
PYTHON -- variables
Authored by Jami Campbell
Computers, Fun
9th - 12th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 5 pts
Variable names _____________.
Check all that apply.
must not begin with a number
can only contain the characters A-Z, a-z, 0-9, and _ .
letters must be lower case
letters can be upper case, but NOT at the beginning of the variable name
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, can string variables be declared using both single and double quotes?
Yes, they are interchangeable
No, only single quotes can be used
No, only double quotes can be used
No, strings cannot be declared with quotes
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, are variable names case-sensitive?
Yes, variable names are case-sensitive
No, variable names are not case-sensitive
Only the first character in the variable name is case-sensitive
Case sensitivity depends on the version of Python
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In the following code, what value will be assigned to the variable "cat"?
mouse + cat + dog = "small" + "medium" + "large"
small, medium, large
small
medium
large
Nothing, that operation will throw an error
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
num = 90
num = 20
print(num)
90
4.5
20
1800
6.
MULTIPLE SELECT QUESTION
30 sec • 5 pts
Which of the following options are valid variable names?
Check all that apply.
1st_name
first_name
first Name
f1_name
firstName
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variables are used _________.
to store data
to print data
to produce functions
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
17 questions
Guess the Officer (Banquet 23-24)
Quiz
•
9th - 12th Grade
10 questions
Mirror, the Hong Kong Boy Band
Quiz
•
1st - 12th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
Explorando Tinkercad en Secundaria
Quiz
•
7th Grade - University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade