OBJECTIVE ASSESSMENT FINAL EXAM REVIEW 2026/2027
PRACTICE QUESTIONS AND STUDY GUIDE ACCURATE EXAM
COMPLETE APPROVED QUESTIONS AND CORRECT VERIFIED
SOLUTIONS WITH DETAILED RATIONALES (100% RELIABLE
ANSWERS) NEWEST UPDATED VERSION 2026 EDITION
|GUARANTEED SUCCESS A+ |FULL REVISED WGU E010
FOUNDATIONS OF PROGRAMMING (PYTHON) OBJECTIVE
ASSESSMENT ACTUAL EXAM |INSTANT DOWNLOAD PDF |JUST
RELEASED
1. Which of the following is a valid variable name in Python?
A) 2ndName
B) my-name
C) my_name
D) class
Correct Answer: C
Rationale: Python variable names cannot start with a digit,
eliminating option A. They cannot contain hyphens, eliminating
option B. They cannot be reserved keywords like class, eliminating
option D. Underscores are allowed and commonly used,
making my_name the only valid option .
2. What is the output of print(type())?
,A) <class 'int'>
B) <class 'float'>
C) <class 'double'>
D) <class 'str'>
Correct Answer: B
Rationale: In Python, the division operator / always returns a float,
even when the numbers divide evenly. evaluates to 5.0,
and type(5.0) returns <class 'float'>. Python does not have a
separate double type .
3. What is the output of bool(0)?
A) True
B) False
C) 0
D) Error
Correct Answer: B
Rationale: In Python, 0 is considered False when converted to a
Boolean. Any non-zero number (positive or negative) is
considered True in a Boolean context .
4. 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
Correct Answer: C
Rationale: Python uses the assignment operator = to assign values to
variables. == is the equality comparison operator, := is the walrus
operator used in specific contexts, and int age = 25 is Java/C++
syntax, not Python .
5. Which data type is immutable in Python?
A) List
B) Dictionary
C) Tuple
D) Set
Correct Answer: C
Rationale: Tuples cannot be changed after creation, making them
immutable. Lists, dictionaries, and sets are all mutable data types
that can be modified after creation .
6. What is the output of the following code?
python
x = "5"
, y=3
print(x * y)
A) 15
B) "555"
C) Error
D) 53
Correct Answer: B
Rationale: Multiplying a string by an integer repeats the string. "5" *
3 produces "555". To perform numeric multiplication, the string
would need to be converted to an integer using int(x) .
7. What is the data type of the value 3.14 in Python?
A) int
B) float
C) string
D) boolean
Correct Answer: B
Rationale: Numbers with a decimal point are of type float (floating-
point). Integers have no decimal. 3.14 is a floating-point number .
8. Which symbol begins a single-line comment in Python?