
Session3L2Quiz
Authored by Mohamed Hany
Special Education
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
In Python, a variable must be declared before it is assigned a value:
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
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?