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
invalid
valid
age = 3.14
valid
2 = x
valid
invalid
John = "name"
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Google Classroom

Quiz
•
KG - 12th Grade
15 questions
Python Lists

Quiz
•
10th - 12th Grade
10 questions
TLEQ3Module 1-5

Quiz
•
10th Grade
15 questions
Algorithms

Quiz
•
7th - 10th Grade
10 questions
Arrays and Lists

Quiz
•
6th - 12th Grade
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
12 questions
Q3 M3 SetB

Quiz
•
10th Grade
10 questions
Programming Quiz

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

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

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Chaffey

Quiz
•
9th - 12th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
18 questions
Characteristics of Living Things

Quiz
•
9th - 10th Grade
12 questions
Macromolecules

Lesson
•
9th - 12th Grade