Font size
Worksheets[Python] Variables, Data Types, and Operators
Total questions: 11
Worksheet time: 6mins
What is the best data type for:
"THE NUMBER OF CUPS"
String
Integer
Float
Boolean
What is the best data type for:
"THE NUMBER OF STUDENTS"
String
Integer
Float
Boolean
What is the best data type for:
"THE TEMPERATURE IN CELSIUS"
String
Boolean
Float
Integer
What is the best data type for:
"IS THE LIGHT ON?"
String
Boolean
Integer
Float
Pick the correct variable name
your_address
your_phone#
your address
your phone
Pick the correct variable name
BIRTH YEAR1
BIRTH1YEAR
1BIRTHYEAR
1_BIRTHYEAR
What operation to be executed first in the Python expression below?
5 - 2 / 2 - -2 * 3
/
-(unary)
-
*
What operation is to be executed LAST in the Python expression below?
2 ** 4 / -3 // 4 * 5
**
//
/
*
Give the output of the code below:
print(2+4/2-1)
2
2.0
3
3.0
Give the output of the code below:
print(30-2**3*3)
21
24
8
6
What is the correct Python expression based on this formula for finding the area of a trapezoid?
A = B + b / 2 * h
A = (B + b) / (2 * h)
A = B + b / (2 * h)
A = (B + b) / 2 * h
