Python Variable Quiz
Quiz
•
Computers
•
12th Grade
•
Medium
Amy Austin
Used 3+ 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
Create a free account and access millions of resources
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
39 questions
EV.SII-VIRUS INFORMATICOS
Quiz
•
1st - 12th Grade
30 questions
HOSTING
Quiz
•
12th Grade
29 questions
Conectores de Computador
Quiz
•
12th Grade
29 questions
BTEC IT L3 U1 LA-D Methods of Protecting Data
Quiz
•
12th Grade
35 questions
Teknik Pengolahan Audio Vidio
Quiz
•
12th Grade
30 questions
OXFORD - A LEVEL - NETWORKS
Quiz
•
12th Grade
36 questions
Câu hỏi trắc nghiệm về thông tin
Quiz
•
4th Grade - University
30 questions
UH KE 1 KLS 9
Quiz
•
12th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
