
Python if statement
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which character must be at the end of the line for if?
Back
:
2.
FLASHCARD QUESTION
Front
Pieces of code that only run "under certain conditions":
Back
conditional statements
3.
FLASHCARD QUESTION
Front
Which statement will check to see if a is equal to b? Options: if a == b, if a = b:, if a != b:, if a == b:
Back
if a == b
4.
FLASHCARD QUESTION
Front
This operator means that one value is the same as the other value: ==, !=, >, <
Back
== is the operator that indicates equality between two values.
5.
FLASHCARD QUESTION
Front
What is the output? Options: more than 7, more than 23, spam, 7
Back
more than 7
6.
FLASHCARD QUESTION
Front
In what situation it will display the butterfly image? Options: When i is less than 5, When i is greater than 5, When i is greater and equal to 5, Any situation
Back
When i is greater and equal to 5
7.
FLASHCARD QUESTION
Front
Else if (elif) is used in which situation?
Back
If the previous conditions were not true
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?