
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
10 questions
CPH All Hands Meeting

Flashcard
•
Professional Development
10 questions
Types of Government

Flashcard
•
12th Grade
13 questions
Fall Semester Exam Review (Units 1, 2)

Flashcard
•
12th Grade
1 questions
python

Flashcard
•
University
4 questions
SAMPLE

Flashcard
•
KG - University
7 questions
Python - Flow control

Flashcard
•
11th Grade
11 questions
Financial Literacy

Flashcard
•
University
10 questions
សំណួរតេស្តICT

Flashcard
•
KG - University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade