WGU E010 OBJECTIVE
ASSESSMENT FINAL AND
PRACTICE QUESTIONS AND
SOLUTIONS
WGU E010 – Complete 100-Question Sample Assessment (with Rationales)
Section 1: Python Basics (Q1–Q15)
Q1. What is the output of print("Hello" + " " + "World")?
A) HelloWorld
B) Hello World
C) Hello+World
D) Error
Rationale: The + operator concatenates strings. "Hello" + " " + "World" produces "Hello World".
Answer: B
Q2. Which data type is 3.14?
A) int
B) float
C) str
D) bool
Rationale: Any number with a decimal point is a float (floating-point number).
Answer: B
Q3. What is the output of type()?
A) <class 'int'>
B) <class 'float'>
C) <class 'double'>
D) <class 'number'>
Rationale: The / operator always returns a float, even when the result is a whole number. =
5.0 (float).
Answer: B
,Q4. Which is a valid variable name?
A) 2cool
B) cool-variable
C) _coolVariable
D) cool variable
Rationale: Variables must start with a letter or underscore, cannot start with a digit, and cannot contain
spaces or hyphens. _coolVariable is valid.
Answer: C
Q5. What is the output of print("Python"[2])?
A) P
B) y
C) t
D) h
Rationale: Strings are zero-indexed. Index 2 is the third character: "P"(0), "y"(1), "t"(2).
Answer: C
Q6. What does len("Programming") return?
A) 10
B) 11
C) 12
D) 9
Rationale: len() counts characters including letters. "Programming" has 11 characters.
Answer: B
Q7. What is the output of print(3 ** 3)?
A) 9
B) 27
C) 6
D) 12
Rationale: ** is exponentiation. 3 ** 3 = 3 × 3 × 3 = 27.
Answer: B
Q8. What is the result of 15 % 4?
A) 3
B) 3.75
, C) 4
D) 1
Rationale: Modulo returns remainder. 15 ÷ 4 = 3 remainder 3 (since 4×3=12, 15-12=3).
Answer: A
Q9. What does 17 // 5 return?
A) 3.4
B) 3
C) 4
D) 3.0
Rationale: Floor division (//) returns the integer quotient, discarding remainder. 17 ÷ 5 = 3.4, floor is 3.
Answer: B
Q10. What is the output of print(2 + 3 * 4)?
A) 20
B) 14
C) 24
D) 18
Rationale: Multiplication before addition: 3 * 4 = 12, then 2 + 12 = 14.
Answer: B
Q11. What does 10 != 10 return?
A) True
B) False
C) None
D) Error
Rationale: != means "not equal". 10 equals 10, so it returns False.
Answer: B
Q12. What is the Boolean value of bool(1)?
A) True
B) False
C) None
D) 1
Rationale: In Python, any non-zero number is True in a Boolean context. 1 is True.
Answer: A
ASSESSMENT FINAL AND
PRACTICE QUESTIONS AND
SOLUTIONS
WGU E010 – Complete 100-Question Sample Assessment (with Rationales)
Section 1: Python Basics (Q1–Q15)
Q1. What is the output of print("Hello" + " " + "World")?
A) HelloWorld
B) Hello World
C) Hello+World
D) Error
Rationale: The + operator concatenates strings. "Hello" + " " + "World" produces "Hello World".
Answer: B
Q2. Which data type is 3.14?
A) int
B) float
C) str
D) bool
Rationale: Any number with a decimal point is a float (floating-point number).
Answer: B
Q3. What is the output of type()?
A) <class 'int'>
B) <class 'float'>
C) <class 'double'>
D) <class 'number'>
Rationale: The / operator always returns a float, even when the result is a whole number. =
5.0 (float).
Answer: B
,Q4. Which is a valid variable name?
A) 2cool
B) cool-variable
C) _coolVariable
D) cool variable
Rationale: Variables must start with a letter or underscore, cannot start with a digit, and cannot contain
spaces or hyphens. _coolVariable is valid.
Answer: C
Q5. What is the output of print("Python"[2])?
A) P
B) y
C) t
D) h
Rationale: Strings are zero-indexed. Index 2 is the third character: "P"(0), "y"(1), "t"(2).
Answer: C
Q6. What does len("Programming") return?
A) 10
B) 11
C) 12
D) 9
Rationale: len() counts characters including letters. "Programming" has 11 characters.
Answer: B
Q7. What is the output of print(3 ** 3)?
A) 9
B) 27
C) 6
D) 12
Rationale: ** is exponentiation. 3 ** 3 = 3 × 3 × 3 = 27.
Answer: B
Q8. What is the result of 15 % 4?
A) 3
B) 3.75
, C) 4
D) 1
Rationale: Modulo returns remainder. 15 ÷ 4 = 3 remainder 3 (since 4×3=12, 15-12=3).
Answer: A
Q9. What does 17 // 5 return?
A) 3.4
B) 3
C) 4
D) 3.0
Rationale: Floor division (//) returns the integer quotient, discarding remainder. 17 ÷ 5 = 3.4, floor is 3.
Answer: B
Q10. What is the output of print(2 + 3 * 4)?
A) 20
B) 14
C) 24
D) 18
Rationale: Multiplication before addition: 3 * 4 = 12, then 2 + 12 = 14.
Answer: B
Q11. What does 10 != 10 return?
A) True
B) False
C) None
D) Error
Rationale: != means "not equal". 10 equals 10, so it returns False.
Answer: B
Q12. What is the Boolean value of bool(1)?
A) True
B) False
C) None
D) 1
Rationale: In Python, any non-zero number is True in a Boolean context. 1 is True.
Answer: A