
Python If ... Else
Quiz
•
Other
•
12th Grade
•
Practice Problem
•
Medium
Amy Austin
Used 8+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'if' keyword in Python signify?
Start of a loop
A function declaration
Start of a conditional statement
Definition of a variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used in Python to check if two values are equal?
===
!=
=
==
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used in Python to define an alternative condition if the initial 'if' condition is not met?
except
otherwise
elif
else
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the conditional statement if 'a = 33' and 'b = 200' and the condition is 'if b > a'?
No output
'b is greater than a'
'b equals a'
'b is less than a'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does Python use to define the scope of a block of code?
Curly brackets
Parentheses
Indentation
Quotation marks
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to reverse the result of a conditional statement in Python?
invert
opposite
not
reverse
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what does the 'and' keyword do?
Creates a list
Combines two conditional statements
Adds two numbers
Combines two strings
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
10 questions
Culture Workshop
Quiz
•
KG - Professional Dev...
11 questions
Presentación
Quiz
•
9th - 12th Grade
10 questions
Quiz 11 (Media Content - Random)
Quiz
•
12th Grade
15 questions
PR2: RRL, Conceptual Framework and Methodology
Quiz
•
12th Grade
15 questions
Basic First Aid Quiz
Quiz
•
12th Grade - University
15 questions
Adopt Me
Quiz
•
1st - 12th Grade
12 questions
Prueba_1er parcial
Quiz
•
9th Grade - University
15 questions
Quiz sobre Manejo Nutricional de Suínos
Quiz
•
12th 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
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade
