
Python Variables and Assignment
Authored by J Joel Thomas
Computers
10th Grade
Used 10+ 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 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
invalid
John = "name"
valid
valid
2 = x
invalid
valid
age = 3.14
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
FUNDAMENTOS DE ESTADÍSTICA
Quiz
•
9th - 12th Grade
13 questions
Robotics - revision 1
Quiz
•
9th - 10th Grade
9 questions
9класс python
Quiz
•
9th - 10th Grade
10 questions
Computer architecture: The Fetch-Execute cycle
Quiz
•
10th - 12th Grade
10 questions
ICT in Advertising
Quiz
•
KG - University
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
14 questions
AQA GCSE Databases and SQL
Quiz
•
9th - 12th Grade
14 questions
Technology and Ethics
Quiz
•
9th - 12th Grade
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