WGU E010 Objective Assessment Final Exam
Practice Questions & Answers | 2026
Update
Which symbol begins a single-line comment in
Python?
A) // (double forward slash)
B) # (pound symbol)
C) * (asterisk)
D) % (percent symbol)
Answer: B) # (pound symbol)
Rationale: In Python, the # symbol is used to
indicate a single-line comment. Everything after
the # on that line is ignored by the interpreter .
Which data type is the value 3.14 in Python?
,
A) Integer
B) Float
C) String
D) Boolean
Answer: B) Float
Rationale: Any number with a decimal point is a
floating-point number (float) in Python. Integers
(int) are whole numbers without a decimal point .
What is the correct way to create a variable
named age with the value 25 in Python?
A) age == 25
B) age := 25
,
C) age = 25
D) int age = 25
Answer: C) age = 25
Rationale: Python uses the assignment operator
= to assign values to variables. No type
declaration is needed. == is a comparison
operator, and := is the walrus operator used in
expressions .
Which of the following is a valid Boolean value
in Python?
A) "True"
B) true
C) True
,
D) 1
Answer: C) True
Rationale: Python's Boolean values are True and
False (capitalized). "True" is a string, true is not a
valid keyword (Python is case-sensitive), and 1 is
an integer that evaluates to True in a Boolean
context but is not itself a Boolean .
What is the output of bool(0) in Python?
A) True
B) False
C) None
D) Error
Answer: B) False
Rationale: The integer 0 is considered falsy in
Practice Questions & Answers | 2026
Update
Which symbol begins a single-line comment in
Python?
A) // (double forward slash)
B) # (pound symbol)
C) * (asterisk)
D) % (percent symbol)
Answer: B) # (pound symbol)
Rationale: In Python, the # symbol is used to
indicate a single-line comment. Everything after
the # on that line is ignored by the interpreter .
Which data type is the value 3.14 in Python?
,
A) Integer
B) Float
C) String
D) Boolean
Answer: B) Float
Rationale: Any number with a decimal point is a
floating-point number (float) in Python. Integers
(int) are whole numbers without a decimal point .
What is the correct way to create a variable
named age with the value 25 in Python?
A) age == 25
B) age := 25
,
C) age = 25
D) int age = 25
Answer: C) age = 25
Rationale: Python uses the assignment operator
= to assign values to variables. No type
declaration is needed. == is a comparison
operator, and := is the walrus operator used in
expressions .
Which of the following is a valid Boolean value
in Python?
A) "True"
B) true
C) True
,
D) 1
Answer: C) True
Rationale: Python's Boolean values are True and
False (capitalized). "True" is a string, true is not a
valid keyword (Python is case-sensitive), and 1 is
an integer that evaluates to True in a Boolean
context but is not itself a Boolean .
What is the output of bool(0) in Python?
A) True
B) False
C) None
D) Error
Answer: B) False
Rationale: The integer 0 is considered falsy in