
Python Variables Quiz

Quiz
•
Computers
•
11th Grade
•
Hard
Rakesh Kumar
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
An ordered set of instructions
An identifier whose value can change
A fixed numeric value
A built-in function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an invalid identifier name for a variable in Python?
total_Marks
_Percentage
1st_Room
marksMaths
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How are new variables created and assigned specific values in Python?
By using a define keyword
By using an assignment statement
By declaring them with a specific data type beforehand
Variables are automatically created when first mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a variable is used in a Python program before it has been assigned a value?
It defaults to a value of 0.
It automatically assigns the value None.
The program skips the statement.
It leads to an error.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following types of values can a variable hold in Python?
Strings
Numbers
Alphanumeric combinations
All of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the expression 10 + num, what does the + sign represent?
An operand
A variable
An operator
A constant
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the Python expression 13 // 5?
2.6
3
2
0
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
C++ SHS B1-B2

Quiz
•
11th Grade
18 questions
Python continuation

Quiz
•
11th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
15 questions
Python Programming

Quiz
•
5th Grade - University
16 questions
Python basics

Quiz
•
9th - 12th Grade
25 questions
Python Basic Programming Quiz

Quiz
•
11th Grade
21 questions
Python Test 1.0 - 2.0

Quiz
•
9th - 12th Grade
20 questions
Q3-1 Quiz Review

Quiz
•
11th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade