• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 44 pages
Exam (elaborations)

Wgu E010 Foundations Of Programming (Python) Objective Assessment (Oa V1 & V2) Questions And Correct Answers (Verified Answers) Plus Rationales 2026 Q&A | Instant Download Pdf

Document preview thumbnail
Preview 4 out of 44 pages

Wgu E010 Foundations Of Programming (Python) Objective Assessment (Oa V1 & V2) Questions And Correct Answers (Verified Answers) Plus Rationales 2026 Q&A | Instant Download Pdf

Content preview

WGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON)
OBJECTIVE ASSESSMENT (OA V1 & V2) QUESTIONS AND
CORRECT ANSWERS (VERIFIED ANSWERS) PLUS
RATIONALES 2026 Q&A | INSTANT DOWNLOAD PDF
Core Domains
Python Syntax, Variables, and Data Types
Operators, Expressions, and Precedence
Control Flow: Conditionals and Branching
Loops and Iteration Patterns
Functions, Scope, and Return Values
Data Structures: Lists, Tuples, Dictionaries, Sets
String Manipulation and Slicing
Debugging, Exceptions, and Problem-Solving
Introduction
The WGU E010 Foundations of Programming (Python) Objective
Assessment evaluates competency in writing, tracing, and debugging
foundational Python programs. The exam assesses syntax fluency, data
type manipulation, control structure implementation, and functional
code design. Questions utilize multiple-choice and code-tracing formats
requiring accurate prediction of program output and identification of
valid Python constructs. Emphasis is placed on applying core
programming concepts to practical coding scenarios and developing
logical problem-solving skills essential for entry-level software
development and automation tasks.


SECTION ONE: QUESTIONS 1–100


Question 1

,Which of the following is the correct way to output the string "Hello,
World!" to the console in Python?
A. printf("Hello, World!")
B. console.log("Hello, World!")
C. print("Hello, World!")
D. echo "Hello, World!"
RATIONALE: The built-in print() function is Python's standard
method for displaying output to the console. The other options represent
syntax from C, JavaScript, and shell scripting, respectively.


Question 2
Which of the following is a valid variable name in Python?
A. 2nd_place
B. my-name
C. my_var
D. class
RATIONALE: Python variable names must begin with a letter or
underscore, cannot contain hyphens, and cannot be reserved keywords
such as class. The name my_var satisfies all naming rules.


Question 3
What is the data type of the value 3.14 in Python?
A. int
B. float
C. string
D. boolean

, RATIONALE: Numbers containing a decimal point are classified as
float (floating-point) type in Python, regardless of whether they
represent whole numbers.


Question 4
What is the output of print(type(10))?
A. <class 'int'>
B. int
C. 'int'
D. <class 'float'>
RATIONALE: The type() function returns the type object of its
argument. When printed, an integer returns <class 'int'>, including the
angle brackets and quotes.


Question 5
What is the output of print(type())?
A. <class 'int'>
B. <class 'float'>
C. <class 'double'>
D. <class 'str'>
RATIONALE: In Python 3, the division operator / always performs
true division and returns a float, even when the result is a whole number.
Thus, yields 5.0.


Question 6
What will the following code output? print(3 + 2 * 4)

, A. 20
B. 14
C. 11
D. 9
RATIONALE: Python follows standard mathematical operator
precedence. Multiplication (*) is evaluated before addition (+).
Therefore, 2 * 4 equals 8, and 3 + 8 equals 11.


Question 7
What is the result of bool([]) in Python?
A. True
B. False
C. None
D. Error
RATIONALE: Empty containers, including empty lists, dictionaries,
sets, tuples, and strings, evaluate to False in a boolean context. Non-
empty containers evaluate to True.


Question 8
Which of the following is NOT a valid way to create a string in Python?
A. "hello"
B. 'hello'
C. hello
D. """hello"""
RATIONALE: Unquoted text is not a valid string literal in Python;
it would be interpreted as a variable name. Single quotes, double quotes,
and triple quotes are all valid string delimiters.

Document information

Uploaded on
October 7, 2026
Number of pages
44
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$22.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
5
Followers
0
Items
1202
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions