(Latest 2026/2027 Update) Objective-
Assessment Questions with 100% Verified
Answers| Graded A+
Question:
What built-in data type is used when you assign text to your variable??
i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,-
Answer:
str i,-
x = "Hello, World!"
i,- i,- i,-
x = str("Hello, World!")
i,- i,- i,-
Question:
What built-in data type is used when you assign a numeric value to your
i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,-
variable??
Answer:
int
x = 20
i,- i,-
x = int(20)
i,- i,-
float
,x = 20.5
i,- i,-
x = float(20.5)
i,- i,-
complex
x = 1j
i,- i,-
x = complex(1j)
i,- i,-
Question:
What built-in data type is used when you assign a sequence to your
i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,-
variable??
Answer:
list
x = ["apple", "banana", "cherry"]
i,- i,- i,- i,-
x = list(("apple", "banana", "cherry"))
i,- i,- i,- i,-
tuple
x = ("apple", "banana", "cherry")
i,- i,- i,- i,-
x = tuple(("apple", "banana", "cherry"))
i,- i,- i,- i,-
range
x = range(6)
i,- i,-
,Question:
What is the difference between a list and a tuple??
i,- i,- i,- i,- i,- i,- i,- i,- i,-
Answer:
list = collection of values
i,- i,- i,- i,-
tuple = ordered and unchangeable
i,- i,- i,- i,-
Question:
What built-in data type is used when you assign a mapping to your
i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,-
variable??
Answer:
dict
x = {"name" : "John", "age" : 36}
i,- i,- i,- i,- i,- i,- i,-
x = dict(name="John", age=36)
i,- i,- i,-
Question:
What built-in data type is used when you assign a set to your variable??
i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,-
Answer:
set
x = {"apple", "banana", "cherry"}
i,- i,- i,- i,-
x = set(("apple", "banana", "cherry"))
i,- i,- i,- i,-
, frozenset
x = frozenset({"apple", "banana", "cherry"})
i,- i,- i,- i,-
x = frozenset(("apple", "banana", "cherry"))
i,- i,- i,- i,-
Question:
What built-in data type is used when you assign a boolean to your
i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,-
variable??
Answer:
bool
x = True
i,- i,-
x = bool(5)
i,- i,-
Question:
What built-in data type is used when you assign binary to your variable??
i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,- i,-
Answer:
bytes
x = b"Hello"
i,- i,-
x = bytes(5)
i,- i,-
bytearray