Understanding Python Variable Syntax
Quiz
•
Computers
•
7th Grade
•
Practice Problem
•
Hard
Quentin Deen
Used 2+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
2nd_place
second_place
second-place
second place
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What value will the variable `color` have after the following code? `color = "red"`
red
"red"
color
'color'
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid variable name in Python?
book_shelf
bookShelf
book-shelf
book_shelf2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of `points` after this code? `points = 44`
"44"
44
points
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following variable names follows Python's naming rules?
1st_place
firstPlace
first-place
first place
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of value is stored in the variable below? `animal = "cat"`
Integer
String
Boolean
Float
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to assign the value 10 to a variable named `score`?
score == 10
score = 10
10 = score
score := 10
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
25 questions
Microsoft Word Test
Quiz
•
6th - 12th Grade
26 questions
Entrepreneurship
Quiz
•
4th Grade - Professio...
32 questions
HISTORY OF COMPUTERS AND COMPUTER BASICS
Quiz
•
3rd Grade - Professio...
25 questions
HTML
Quiz
•
5th Grade - Professio...
25 questions
GDocs2: Using MLA in Reports
Quiz
•
6th - 8th Grade
25 questions
Simple Machines
Quiz
•
KG - University
25 questions
Computer/ Financial Literacy Rev
Quiz
•
1st - 12th Grade
25 questions
Software
Quiz
•
7th 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
