Python Variables and Assignment
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
J Joel Thomas
Used 10+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Variables
store values
change during the lifetime of a program
can be imagined to be storage boxes
Can be created using create command
Answer explanation
Variables store values, change during the lifetime of a program, and can be imagined to be storage boxes.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assignments are always denoted by
= (equals symbol)
> symbol
assign command
print()
Answer explanation
Assignments are always denoted by the = (equals symbol), making it the correct choice.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assignments are executed from
Left to right
Right to left
Middle to right
Not executed
Answer explanation
Assignments are executed from right to left, meaning the rightmost assignment is performed first followed by the assignment to the left of it.
4.
MULTIPLE CHOICE QUESTION
30 sec • Ungraded
Assignments are instructions to be executed
No
Yes
May be
Not at all
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following is/are valid assignment(s)
a = 15
b = 10.2
x = y
10 = a
Answer explanation
The valid assignments are a = 15, b = 10.2, and x = y. Assigning a value to a variable with a number as the variable name like '10 = a' is not valid.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable can store
Only one value at a time
Multiple values at a time
Atmost two values at a time
Atmost three values at a time
7.
MATCH QUESTION
1 min • 1 pt
Match the assignments
valid
John = "name"
valid
2 = x
invalid
invalid
valid
age = 3.14
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
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
