Python Variable Quiz
Quiz
•
Computers
•
12th Grade
•
Medium
Amy Austin
Used 4+ times
FREE Resource
Enhance your content in a minute
34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a rule for naming variables in Python?
A variable name must start with a number.
A variable name can include special characters like @, #, $.
Variable names are not case-sensitive.
A variable name must start with a letter or the underscore character.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a legal variable name in Python?
2myvar = "John"
my-var = "John"
my@var = "John"
my_var = "John"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why can't the variable name 'Age' and 'age' be used interchangeably in Python?
Because variable names in Python can start with a capital letter only.
Because variable names in Python are not case-sensitive.
Because variable names in Python are case-sensitive.
Because 'Age' is a Python keyword.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not allowed in Python variable names?
Using alpha-numeric characters and underscores.
Starting the variable name with an underscore.
Using Python keywords as variable names.
Mixing uppercase and lowercase letters in variable names.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term used to describe a variable naming convention where each word, except the first, starts with a capital letter?
Snake Case
Kebab Case
Camel Case
Pascal Case
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Camel Case, how is the variable 'myVariableName' formatted?
Each word, including the first, starts with a capital letter.
Only the first word starts with a capital letter.
Each word, except the first, starts with a capital letter.
All letters are lowercase.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term used to describe a variable naming convention where each word starts with a capital letter?
Camel Case
Snake Case
Kebab Case
Pascal Case
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
31 questions
Robotics 9 and 10
Quiz
•
9th - 12th Grade
30 questions
Tecnologia
Quiz
•
12th Grade - University
30 questions
City and Guilds Award in Mobile and Operating System
Quiz
•
12th Grade - Professi...
30 questions
BASIS DATA 1
Quiz
•
1st Grade - University
30 questions
KIỂM TRA GIỮA KÌ 1 TIN 12
Quiz
•
12th Grade
30 questions
Aplicar formato al texto de una tabla
Quiz
•
10th - 12th Grade
36 questions
PARTS OF COMPUTER TEST
Quiz
•
12th Grade
33 questions
Ôn tập Thi Phần 2
Quiz
•
10th 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
