
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
Similar Resources on Wayground
17 questions
Philippine History
Flashcard
•
University
15 questions
Unit 8 Flashcard B
Flashcard
•
11th Grade
15 questions
21st 3
Flashcard
•
12th Grade
7 questions
Technical Drawings and Specifications
Flashcard
•
KG - University
10 questions
Pemrograman C# Tingkat Dasar
Flashcard
•
12th Grade
7 questions
Word Suffixes and Their Meanings
Flashcard
•
11th Grade
5 questions
Flashcard on Atomic Structure
Flashcard
•
10th Grade
15 questions
Relative Clauses
Flashcard
•
12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade