WorksheetsPython Review
Total questions: 20
Worksheet time: 20mins
what is the variable name in this code?
if
secret
password
What operation is correct for the given condition?
7 __ 5
<
>
<=
>=
==
What operation is correct for the given condition?
5 __ 5
Select all that apply.
<
>
<=
>=
==
Which statement is correct?
If the water level is reached, then turn off the motor. If the water level is not reached, then measure the level and repeat the sequence.
If the water level is reached, then measure the level. If the water level is not reached, then turn off the motor.
If the water level is reached, then turn off the motor. If the water level is not reached, then turn off the motor.
If the water level is reached, then measure the level. If the water level is not reached, then measure the level and repeat the sequence.
If the water level is reached, then turn off the motor. If the water level is not reached, then measure the level.
What will the monitor display?
The is the if body.
This is outside the if block.
The is the if body.
This is outside the if block.
error
The clock reads 11 PM.
What will be the result?
I am going to sleep.
I am going to do my math homework.
I am going to get started.
error
What are the variables? Check all that apply.
Number
Name
B
What name goes with the value 25?
Number
Name
B
What name goes with the value 3.5?
Number
Name
B
Which reassignment of variables is correct?
Name = "Henry"
print (num)
Name = "Henry"
print ("Henry")
Name = "Stephanie"
print (Name)
Name = "Stephanie"
print (name)
What is the value for the name x?
x
y
z
SoftwareTestingHelp
What is the value for the name x?
x
y
z
SoftwareTestingHelp
What is the value for the name y?
x
y
z
SoftwareTestingHelp
Code for Hello, World!
print Hello, World!
print("Hello, World!)
print("Hello, World!")
Python has a simple syntax similar to the
coding language
english language
spanish language
