Python Conditional statements

Quiz
•
Computers
•
KG
•
Hard
Batyr Zharkyn
Used 23+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1.How many possible values are there for a boolean variable?
0
1
2
3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.Which of the following is not a comparison operator?
<=
?
!=
>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.What does this Python expression evaluate to?
1000 != 1000
"False"
"True"
False
True
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.Which of the following is not a logical operator in Python?
or
and
not
because
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.What will print to the screen when the following program is run?
number = 20
greater_than_zero = number >10
print(type(number))
<class ‘bool’>
<class ‘int’>
20
10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.What will be the output of this program?
number = 10
greater_than_zero = number > 5
if greater_than_zero:
print(number)
10
5
Nothing will print
True
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.What will be the output of this program?
number = 10
less_than_zero = number < 0
if less_than_zero:
print(number)
number = number-2
less_than_zero = number > 0
if less_than_zero:
print(number)
8
10
8
10
10
8
Similar Resources on Wayground
8 questions
CSE 15L Lab 8

Quiz
•
University
10 questions
Datentypen, Variablen & Eingabe in Python

Quiz
•
University
10 questions
Lặp lại cấu trúc cho trong Python

Quiz
•
11th Grade
12 questions
Ch-8 Iterative statements in Python

Quiz
•
8th Grade
10 questions
QUIZ PHP

Quiz
•
10th Grade
12 questions
Basic Python and Console Interaction - Mod3

Quiz
•
10th Grade
10 questions
Câu lệnh rẽ nhánh

Quiz
•
10th Grade
10 questions
Class-XI_IP_Python

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
20 questions
Disney Characters

Quiz
•
KG
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
All About Empathy (for kids!)

Quiz
•
KG - 6th Grade
20 questions
Logos

Quiz
•
KG
20 questions
Capitalization in sentences

Quiz
•
KG - 4th Grade
14 questions
States of Matter

Lesson
•
KG - 3rd Grade
10 questions
Rainbow Fish Comprehension

Quiz
•
KG - 6th Grade
20 questions
Cartoon Characters!

Quiz
•
KG - 5th Grade