Python Variables and Assignment

Quiz
•
Computers
•
10th Grade
•
Hard

J Joel Thomas
Used 7+ times
FREE Resource
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
valid
invalid
age = 3.14
invalid
John = "name"
valid
2 = x
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Making Selections

Quiz
•
10th Grade
10 questions
COM 211

Quiz
•
1st - 10th Grade
12 questions
Compound Operators in Java

Quiz
•
9th - 12th Grade
10 questions
AQA GCSE Computer Science - 3.4.4 Main/Secondary Storage

Quiz
•
8th - 10th Grade
10 questions
AP CSP Review

Quiz
•
9th - 12th Grade
15 questions
AP CSP Exam Review: Big Idea 3

Quiz
•
8th - 10th Grade
12 questions
AP CS A- Recursion and 2D Arrays

Quiz
•
9th - 12th Grade
14 questions
For Loops (Java)

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade