NEW
Font size
WorksheetsConditions
Total questions: 16
Worksheet time: 8mins
Which is NOT a data type in Python?
integer
boolean
Word
float
What is the name of the variable in this program?
personName
input
Enter your name
Which of the following will allow the user to input a decimal number?
str(input())
float(input())
int(input())
What would the output be for this
code?
17
20
25
13
The "If" Statement is an example of a _________________
Correctional Statement
Competitive Statement
Conditional Statement
Inquisitive Statement
What is a Condition?
Something a User Enters into the Program
A Statement that is either True or False
A Calculation
A Programming Language
What does the following symbol mean?
==
Less than
Greater than
Not Equal to
Equal to
What does the following symbol mean?
<
Less than
Greater than
Not Equal to
Equal to
What does the following symbol mean?
>=
Equal to
Less than or Equal to
Greater than or Equal to
Not Equal to
Is the following statement True or False?
15 > 12
True
False
Is the following statement True or False?
15 == 12
True
False
Which is correct?
A
B
What is the output of this condition?
You have blue eyes
blue
green
You do not have Blue eyes
Fill in the blank to display the output:
"You have more than 1 dog"
number_of_dogs < 1
number_of_dogs == 1
number_of_dogs > 1
What is the difference between
"=" and "=="
in Python
They are the same
"=" allows us to compare two values
"==" allows us to assign values to variables
"==" allows us to compare two values
"=" allows us to assign values to variables
How well have you understood Conditional statements?
Very well
well
Almost
Not well
Help
