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
35 questions
TLE-ICT Quarter 1
Quiz
•
9th - 12th Grade
29 questions
Computer Parts
Quiz
•
9th - 12th Grade
35 questions
Ôn Tập Học Kì I Lớp 4
Quiz
•
4th Grade - University
30 questions
PHOTOSHOP
Quiz
•
12th Grade
30 questions
Pengenalan Informatika
Quiz
•
10th - 12th Grade
35 questions
MIL_1ST_QUIZ
Quiz
•
12th Grade
29 questions
ICT-Department-Grade5-November
Quiz
•
5th Grade - University
30 questions
Flareup CSI
Quiz
•
12th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
