
Python Conditionals and If Statements
Authored by Samuel Markham
Computers
8th Grade
Used 3+ 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 • 1 pt
What will be the output of the following code snippet? ```python if 5 > 3: print("Hello") ```
Goodbye
Hello
Error
Nothing
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct if-elif-else structure in Python?
```python if x > 10: print("Greater") elif x == 10: print("Equal") else: print("Smaller") ```
```python if x > 10: print("Greater") else if x == 10: print("Equal") else: print("Smaller") ```
```python if x > 10: print("Greater") elif x == 10: print("Equal") else if: print("Smaller") ```
```python if x > 10: print("Greater") elif x == 10: print("Equal") ```
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True
False
Error
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which comparison operator is used to check if two values are not equal?
==
!=
>
<
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python x = 7 if x < 10: print("Small") else: print("Large") ```
Small
Large
Error
Nothing
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a Boolean expression?
"Hello"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python if False: print("Yes") else: print("No") ```
Yes
No
Error
Nothing
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
20 questions
Advantages and Disadvantages of Collecting Data
Quiz
•
10th Grade
12 questions
Adventure game project
Quiz
•
7th - 8th Grade
10 questions
ExamenHojasdecalculo
Quiz
•
10th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
LA1.C1: Introduction to Small Basic
Quiz
•
9th Grade
10 questions
Alapismeretek
Quiz
•
7th - 12th Grade
13 questions
WJEC GCSE ICT Unit 1 E-Mail
Quiz
•
9th - 10th 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