Introduction to Python - If and Else

Quiz
•
Computers
•
1st - 6th Grade
•
Easy
Khadeeja Haji
Used 23+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does this print?
if 5 > 7:
print("Hello!")
else:
print("Bye")
Hello
Bye
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is this true or false?
6 > 8
True
False
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does this print?
if 5 == 5:
print("Right")
else:
print("Wrong")
Right
Wrong
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this print?
if 6 != 6:
print("hi")
else:
print("hello")
hello
hi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False?
7 <= 8
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code output?
x = True
print(not x)
False
True
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does this output?
x = True
y = False
print(x and y)
False
True
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Python Quiz 1

Quiz
•
2nd Grade
10 questions
PYTHON (Functions)

Quiz
•
6th Grade
10 questions
Computer -Its Working-Grade-3

Quiz
•
3rd Grade
10 questions
Python

Quiz
•
5th - 10th Grade
12 questions
Grade 3 ICT Parts of computer and Hardware &Software

Quiz
•
3rd Grade
12 questions
Previous set Capgemini

Quiz
•
1st - 3rd Grade
15 questions
Computer Quiz

Quiz
•
5th - 6th Grade
10 questions
Q&A – Predicting Outcomes of Repetition (Primary 4 – 4CT.05)

Quiz
•
4th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade