WGU E010 OA EXAM /ACTUAL WGU E010
OBJECTIVE ASSESSMENT FINAL
SECTION 1: PYTHON PROGRAMMING & DATA TYPES (Questions 1-30)
Q1. What is the output of print(type())?
• A) ``
• B) ``
• C) ``
• D) ``
Correct Answer: B
Rationale: In Python, the / operator always returns a float, even when the two
numbers divide evenly. evaluates to 5.0, which is a float .
Q2. Which of the following data types is immutable?
• A) list
• B) dict
• C) set
• D) tuple
Correct Answer: D
Rationale: Tuples cannot be changed after creation (immutable). Lists,
dictionaries, and sets are mutable and can be modified after creation .
Q3. What is the result of print(10 // 3)?
, • A) 3.333…
• B) 3
• C) 4
• D) 3.0
Correct Answer: B
Rationale: The // operator performs floor division (integer division). It returns the
quotient without the remainder, so 10 // 3 evaluates to 3 .
Q4. What is the output of print(2 ** 3)?
• A) 6
• B) 8
• C) 9
• D) 5
Correct Answer: B
Rationale: The ** operator is the exponentiation operator. 2 ** 3 means 2 raised
to the power of 3, which is 2 * 2 * 2 = 8 .
Q5. What does the input() function return?
• A) An integer
• B) A float
• C) A string
• D) A boolean
Correct Answer: C
Rationale: The built-in input() function reads a line from standard input and
returns it as a string .
Q6. Which of the following variable names is invalid?
, • A) _myVar
• B) 2ndValue
• C) myVar
• D) my_var
Correct Answer: B
Rationale: Variable names cannot start with a digit. 2ndValue begins with 2,
making it invalid. Underscores and letters are allowed as first characters .
Q7. What is the output of print("a" + "b" * 2)?
• A) ab
• B) abb
• C) bab
• D) Error
Correct Answer: B
Rationale: Multiplication (*) has higher precedence than addition (+). First, "b" is
repeated twice ("bb"), then concatenated with "a" .
Q8. Given x = "Hello", what does print(x[1]) output?
• A) H
• B) e
• C) l
• D) o
Correct Answer: B
Rationale: Strings are zero-indexed. Index 0 → 'H', index 1 → 'e' .
Q9. What is the output of print("Python"[2:5])?
• A) Pyt
, • B) tho
• C) yth
• D) hon
Correct Answer: B
Rationale: Slicing [2:5] takes characters from index 2 up to (but not including)
index 5. Indices: P0 y1 t2 h3 o4 n5 → slice "tho" .
Q10. What does print(x[-1]) output if x = [1, 2, 3]?
• A) 1
• B) 2
• C) 3
• D) Error
Correct Answer: C
Rationale: Negative indexing starts from the end of the sequence. -1 refers to the
last element, which is 3 .
Q11. What is the value of 10 % 3?
• A) 1
• B) 2
• C) 3
• D) 0
Correct Answer: A
Rationale: The % operator is the modulo operator, which returns the remainder of
division. 10 ÷ 3 = 3 with a remainder of 1 .
Q12. Which operator is used for exponentiation in Python?
• A) ^
OBJECTIVE ASSESSMENT FINAL
SECTION 1: PYTHON PROGRAMMING & DATA TYPES (Questions 1-30)
Q1. What is the output of print(type())?
• A) ``
• B) ``
• C) ``
• D) ``
Correct Answer: B
Rationale: In Python, the / operator always returns a float, even when the two
numbers divide evenly. evaluates to 5.0, which is a float .
Q2. Which of the following data types is immutable?
• A) list
• B) dict
• C) set
• D) tuple
Correct Answer: D
Rationale: Tuples cannot be changed after creation (immutable). Lists,
dictionaries, and sets are mutable and can be modified after creation .
Q3. What is the result of print(10 // 3)?
, • A) 3.333…
• B) 3
• C) 4
• D) 3.0
Correct Answer: B
Rationale: The // operator performs floor division (integer division). It returns the
quotient without the remainder, so 10 // 3 evaluates to 3 .
Q4. What is the output of print(2 ** 3)?
• A) 6
• B) 8
• C) 9
• D) 5
Correct Answer: B
Rationale: The ** operator is the exponentiation operator. 2 ** 3 means 2 raised
to the power of 3, which is 2 * 2 * 2 = 8 .
Q5. What does the input() function return?
• A) An integer
• B) A float
• C) A string
• D) A boolean
Correct Answer: C
Rationale: The built-in input() function reads a line from standard input and
returns it as a string .
Q6. Which of the following variable names is invalid?
, • A) _myVar
• B) 2ndValue
• C) myVar
• D) my_var
Correct Answer: B
Rationale: Variable names cannot start with a digit. 2ndValue begins with 2,
making it invalid. Underscores and letters are allowed as first characters .
Q7. What is the output of print("a" + "b" * 2)?
• A) ab
• B) abb
• C) bab
• D) Error
Correct Answer: B
Rationale: Multiplication (*) has higher precedence than addition (+). First, "b" is
repeated twice ("bb"), then concatenated with "a" .
Q8. Given x = "Hello", what does print(x[1]) output?
• A) H
• B) e
• C) l
• D) o
Correct Answer: B
Rationale: Strings are zero-indexed. Index 0 → 'H', index 1 → 'e' .
Q9. What is the output of print("Python"[2:5])?
• A) Pyt
, • B) tho
• C) yth
• D) hon
Correct Answer: B
Rationale: Slicing [2:5] takes characters from index 2 up to (but not including)
index 5. Indices: P0 y1 t2 h3 o4 n5 → slice "tho" .
Q10. What does print(x[-1]) output if x = [1, 2, 3]?
• A) 1
• B) 2
• C) 3
• D) Error
Correct Answer: C
Rationale: Negative indexing starts from the end of the sequence. -1 refers to the
last element, which is 3 .
Q11. What is the value of 10 % 3?
• A) 1
• B) 2
• C) 3
• D) 0
Correct Answer: A
Rationale: The % operator is the modulo operator, which returns the remainder of
division. 10 ÷ 3 = 3 with a remainder of 1 .
Q12. Which operator is used for exponentiation in Python?
• A) ^