
Quiz 2: Conditionals (CodeHS)
Authored by Bryan Campbell
Computers
11th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The __ keyword in Python is used for identity comparison. It checks if two variables refer to the same object in memory. In other words, it checks if the memory address of both variables is the same.
is
in
if
as
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will print to the console for the following code?
True
False
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will print to the console for the following code?
True
False
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will print to the console for the following code?
True
False
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will print to the console for the following code?
True
False
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In Python, the __ keyword is primarily used for membership testing. It checks whether a specified value exists within a sequence (such as a string, list, tuple, or dictionary).
is
in
if
as
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will print to the console for the following code?
True
False
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?