Python Conditionals and If Statements

Quiz
•
Computers
•
8th Grade
•
Medium

Samuel Markham
Used 3+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
TEST FINAL - Algoritmia de Programación

Quiz
•
University
10 questions
Python Basics Test

Quiz
•
12th Grade
20 questions
Квиз по Python: Условия и Циклы

Quiz
•
12th Grade
17 questions
Python Conditionals

Quiz
•
9th - 11th Grade
15 questions
Python Basics

Quiz
•
University
10 questions
Python Plus : Rock, Paper, Scissors

Quiz
•
6th - 8th Grade
15 questions
Python бағдарламалау тілі

Quiz
•
11th Grade
10 questions
Python Programming Essentials Quiz

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade