In Python, a variable must be declared before it is assigned a value:

Session3L2Quiz

Quiz
•
Special Education
•
9th - 12th Grade
•
Hard
Mohamed Hany
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type:
True
False
3.
MULTIPLE SELECT QUESTION
30 sec • 10 pts
Which of the following are valid Python variable names:
home_address
route66
4square
ver1.3
Age
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
You are reading Python code, and these statements appear scattered in different locations throughout the code:
These statements refer to the same variable.
These statements refer to different variables.
5.
MULTIPLE CHOICE QUESTION
30 sec • 15 pts
Which of the following statements assigns the value 100 to the variable x in Python:
x == 100
x = 100
x != 100
x << 100
6.
MULTIPLE CHOICE QUESTION
30 sec • 15 pts
What is the output of this code:
var = ["Mohamed","Hany"]
print(var[0][3])
Error
a
Mohamed
h
m
7.
MULTIPLE SELECT QUESTION
30 sec • 10 pts
Which of the following are Python reserved words (keywords):
goto
and
None
default
class
Answer explanation
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
Golv

Quiz
•
10th - 12th Grade
14 questions
Olika golvtyper

Quiz
•
10th - 12th Grade
20 questions
PAT DLE 2020

Quiz
•
10th Grade
11 questions
Städningens grunder

Quiz
•
12th Grade
19 questions
Python

Quiz
•
10th Grade
10 questions
Test 03/20

Quiz
•
9th Grade - University
10 questions
Gençlik Kampı 4.Gün Bilgi Yarışması

Quiz
•
8th - 12th Grade
10 questions
Arreglos

Quiz
•
7th Grade - Professio...
Popular Resources on Quizizz
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
19 questions
Math Review

Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review

Quiz
•
7th Grade
Discover more resources for Special Education
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade
20 questions
EOC Math 1 Review

Quiz
•
9th Grade
20 questions
Insurance

Quiz
•
9th - 12th Grade
20 questions
MCAS Biology Review

Quiz
•
9th - 10th Grade
20 questions
Paying for College

Quiz
•
9th - 12th Grade
20 questions
Math 1 EOC Review

Quiz
•
9th Grade