
Python- Variables
Authored by Aram M
Computers
3rd Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A type of function in Python
A special character used in Python coding
A type of snake in the Amazon rainforest
A reserved memory location to store values
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Python?
variable = value_name
value = variable_name
variable_name = value
name = variable_value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the rules for naming a variable in Python?
Variables cannot contain numbers
Variables can start with any special character
Variables must start with a letter or underscore, followed by letters, digits, or underscores. They are case-sensitive and cannot be a keyword.
Variables are not case-sensitive
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between local and global variables in Python?
Local variables are defined within a function and can only be accessed within that function, while global variables are defined outside of any function and can be accessed throughout the entire program.
Local variables are defined within a function and can be accessed throughout the entire program, while global variables are defined within a function and can only be accessed within that function
Local variables can be accessed throughout the entire program, while global variables are defined within a function
Local variables are defined outside of any function and can be accessed throughout the entire program, while global variables are defined within a function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Give an example of a variable assignment in Python.
x = 5
z = True
y = 3.14
x = 'hello'
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different data types in Python?
red, blue, green, yellow, purple
integer, float, string, list, tuple, dictionary, boolean
apple, banana, orange, grape, watermelon
dog, cat, bird, fish, rabbit
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between int and float data types in Python?
int represents letters and float represents special characters
int represents even numbers and float represents odd numbers
int represents whole numbers and float represents numbers with decimal points
int represents negative numbers and float represents positive numbers
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
10 questions
Computer Languages
Quiz
•
KG - University
12 questions
Previous set Capgemini
Quiz
•
1st - 3rd Grade
10 questions
Let's Play with scratch Blocks
Quiz
•
3rd - 4th Grade
13 questions
Practice Computer Test 1
Quiz
•
3rd - 5th Grade
10 questions
Comenzando a programar
Quiz
•
3rd - 8th Grade
10 questions
[CSB ISMS] ISMS Awareness
Quiz
•
3rd Grade
10 questions
JS_scope_Function_If
Quiz
•
1st - 5th Grade
15 questions
6th Grade Media Quiz
Quiz
•
KG - 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