
If conditional statement
Flashcard
•
Mathematics
•
University
•
Hard
Ariel LU
Used 1+ times
FREE Resource
Student preview

4 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Fill in the if condition to check whether a number is odd or even.
number = int(input("Enter a number: "))
if ____________: # Fill in the condition
print("This is an even number")
else:
print("This is an odd number")
Back
number % 2 == 0
2.
FLASHCARD QUESTION
Front
Fill in the if condition to check whether the user is eligible to vote (18 years or older).
age = int(input("Enter your age: "))
if ____________: # Fill in the condition
print("You are eligible to vote")
else:
print("You are not eligible to vote yet")
Back
age>=18
3.
FLASHCARD QUESTION
Front
Fill in the if condition to check whether a number is positive or negative.
number = int(input("Enter a number: "))
if ____________: # Fill in the condition
print("The number is positive")
else:
print("The number is negative")
Back
number >= 0
4.
FLASHCARD QUESTION
Front
Fill in the if condition to check whether a student has passed (score ≥ 60) or failed.
score = int(input("Enter your score: "))
if ____________: # Fill in the condition
print("You passed!")
else:
print("You failed")
Back
score>=60
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
3 questions
Adaptability in the Workplace
Flashcard
•
Professional Development
3 questions
W4.1
Flashcard
•
KG - University
2 questions
W6.1
Flashcard
•
KG - University
8 questions
Improving Doctor-Patient Communication
Flashcard
•
University
4 questions
Z Transform of a Signal
Flashcard
•
KG
10 questions
stats vocab 5.1 - 5.2
Flashcard
•
12th Grade
10 questions
examen de anatomia dental
Flashcard
•
University
6 questions
Telephone Number Questions
Flashcard
•
KG
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