
Python Variables
Computers
7th - 12th Grade
Used 100+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Looking at the following code, what are the names of the variables:
firstName, lastName, fullName
Hyperion, Hub
firstName, lastName, fullName, space
FIRSTNAME, LASTNAME, FULLNAME, SPACE
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What rule is the following variable name BREAKING:
1st_Name
No special characters other than underscore
Only use text for the start of the variable name - no numbers at start
Keep names meaningful
There is nothing wrong with this variable name
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What rule is the following variable name BREAKING?
StudentNo.
Only use text for the starting letter of a variable name - not numbers at the start
No special symbols other than the underscore
There is nothing wrong with this variable name
Keep variable names meaningful for the task they are being used for
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the variable name in the following script?
name
hello, your name is
There is no variable in this script
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which name would be meaningful in keeping a record of someone's high score?
s
hs
score
highScore
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?