Variables in Python
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
Mr. So
Used 353+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = "John"
age = 23
What type of data is stored in the variable name?
str
int
float
nothing
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = "John"
age = 23
What type of data is stored in the variable age?
str
int
float
nothing
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = "John"
age = "23"
What type of data is stored in the variable age?
str
int
float
nothing
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I want to store my height in a variable, which of the following would be a good variable name in best practice?
abcdefg
inches
number
height
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I want to store my name in a variable, which of the following would be a good variable name in best practice?
name
teacher
mister
abcdef
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I want to store multiple names in variables, which of the following would be good variable names in best practice?
a
b
c
name1
name2
name3
Audrey
Ben
John
blah1
blah2
blah3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
age = "23"
age = int(age)
What does the int() function do to the data in my variable?
does nothing
changes the string to a float
changes the number to a string
changes the string to an integer
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
C# lesson10
Quiz
•
1st - 10th Grade
13 questions
Quiz 3: Internet safety, cyber security and encryption
Quiz
•
7th - 8th Grade
10 questions
Year 8 - Progress Check 1 (Python Turtle Shapes)
Quiz
•
8th - 9th Grade
10 questions
Social media influencers
Quiz
•
6th - 12th Grade
12 questions
Revision quiz on Access
Quiz
•
8th Grade
10 questions
Kuiz Senang
Quiz
•
7th - 9th Grade
10 questions
Computer Education Grade 3 Volume 4 Quiz
Quiz
•
3rd Grade - University
13 questions
CODING QUIZZ
Quiz
•
8th Grade
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
