NEW
Font size
WorksheetsWEB UNICORN FINAL
Total questions: 10
Worksheet time: 2mins
Which data type includes decimal numbers?
int
float
str
boolean
Characteristics of type conversion:
automatic
loop
semi
manual
A dictionary is:
non-mutable
mutable
set of elements
tuple
input accepts input in the form of:
int
str
float
none
Which of the following data types is mutable?
string
tuple
int
list
Logical operators are:
and, or
and, or, not
and, or, not, if
if, elif
What is the data type of the variable X in the following code?
X = [1, 2, 3, 4, 5]
tuple
list
dict
set
Which of the following data types is mutable in Python?
str
tuple
list
int
What is the output of this:
print(5 > 3 or 2 > 4)
true
false
none
error
What is the purpose of the (and) operator in Python:
To check if at least one condition is true
To check if both conditions are true
To check if a condition is false
To check if both conditions are false
