
Python If Statements - and or not
Authored by Alexander Anderson
Computers
11th Grade
Used 17+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements will execute the block of code if the variable `a` is equal to 10?
if a = 10:
if a == 10:
if a != 10:
if a > 10:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character must be at the end of the line for if?
:
;
.
{
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code snippet print:
equal
equal
not equal
not equal
syntax error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code snippet print:
Yes
indentation error
yes
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax to check if two values are not equal in Python?
!==
!=
==
<>
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write an if statement to check if `x` is greater than 10?
if x > 10:
if x is > 10:
if x >> 10:
if x gt 10:
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
not ( 7 == 8 )
True
False
Error
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
Python Function
Quiz
•
11th - 12th Grade
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
12 questions
Windows 10 Installation
Quiz
•
11th - 12th Grade
12 questions
Microsoft Office Word
Quiz
•
4th Grade - University
15 questions
Excel
Quiz
•
10th - 12th Grade
14 questions
Pre-test: On Online searching by Innovative Teaching Ideas)
Quiz
•
6th - 12th Grade
10 questions
Soal Kelas XI TKJ (Paket Dasar Routing)
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade