Free WGU Foundations-of-Programming-Python Exam Actual Questions & Explanations

Last updated on: Jun 19, 2026
Author: Nathan Cook (Senior Curriculum Developer, WGU College of IT)

The Foundations of Programming (Python) - E010 JIV1 exam, part of WGU Courses and Certifications, validates your ability to write, debug, and reason about Python code. This assessment is designed for learners entering programming or transitioning to Python as their primary language. This page maps the exam syllabus, explains question formats, and guides your study strategy so you can approach the test with confidence.

Foundations-of-Programming-Python Exam Syllabus & Core Topics

Use this topic map to guide your study for WGU Foundations-of-Programming-Python (Foundations of Programming (Python) - E010 JIV1) within the WGU Courses and Certifications path.

  • Variables, Data Types, and Basic Operations: Declare and assign variables, understand primitive types (int, float, string, bool), and perform arithmetic and string operations. You must recognize type conversion scenarios and predict output from mixed-type expressions.
  • Control Flow and Decision Making: Write and interpret if, elif, and else statements to handle conditional logic. Apply comparison and logical operators correctly, and trace code execution through branching paths in real-world validation scenarios.
  • Loops and Iteration: Construct for and while loops, use range() effectively, and implement loop control with break and continue. Recognize when to use each loop type and debug off-by-one errors in iteration patterns.
  • Functions and Modular Programming: Define functions with parameters and return values, understand scope and variable lifetime, and apply functions to reduce code duplication. Write functions that accept multiple arguments and return meaningful results for reuse across projects.
  • Data Structures and Input/Output: Work with lists, tuples, and dictionaries; perform indexing, slicing, and common methods. Read from and write to files, handle user input, and structure data for practical applications like logging and reporting.

Question Formats & What They Test

The exam combines multiple-choice and scenario-based items to assess both conceptual knowledge and practical reasoning. Questions progress in difficulty and reflect real coding decisions you'll encounter in development work.

  • Multiple choice: Test recall of syntax, data type behavior, operator precedence, and built-in function behavior. These items verify you know core definitions and can predict code output.
  • Scenario-based items: Present incomplete code or a problem statement; you choose the correct implementation or identify the bug. These items require you to apply logic across multiple topics, for example, combining loops with functions to process a list of records.
  • Code tracing: Follow execution through variables, loops, and conditionals to predict final values or output. This format reinforces deep understanding of control flow and state changes.

Questions emphasize practical application, so expect scenarios that mirror common programming tasks such as data validation, list processing, and file handling.

Preparation Guidance

An effective study plan maps each topic to weekly milestones and includes active practice with code review. Dedicate time to hands-on coding, reading about syntax is less effective than writing, running, and debugging small programs.

  • Assign Variables, Data Types, and Basic Operations to week one; write short scripts that declare variables, perform calculations, and print results.
  • Week two: focus on Control Flow and Decision Making; build mini programs that validate user input and branch based on conditions.
  • Week three: cover Loops and Iteration; practice nested loops, range variations, and loop control statements through coding exercises.
  • Week four: study Functions and Modular Programming; refactor earlier scripts into reusable functions and test parameter passing.
  • Week five: master Data Structures and Input/Output; work with lists and dictionaries, read/write files, and combine all topics in a small project.
  • Practice question sets aligned to each topic; review explanations to understand not just the answer but the reasoning behind it.
  • In the final week, take a timed practice test under exam conditions to build pacing confidence and identify remaining weak areas.

Explore other WGU certifications: view all WGU exams.

Get the PDF & Practice Test

Strengthen your preparation with up-to-date resources from validexamdumps.com. These materials align to Foundations-of-Programming-Python and cover practical scenarios with clear explanations.

  • Q&A PDF with explanations: topic-mapped questions that clarify why correct options are right and others aren't.
  • Practice Test: realistic items, timed and untimed modes, progress tracking, and detailed review.
  • Focused coverage: aligned to Variables, Data Types, and Basic Operations; Control Flow and Decision Making; Loops and Iteration; Functions and Modular Programming; and Data Structures and Input/Output so you study what matters most.
  • Regular updates: content refreshes that reflect syllabus and product changes.

Visit the exam page to download the PDF, Online Practice Test, or get a Bundle Discount offer for both formats: Foundations of Programming (Python) - E010 JIV1.

Frequently Asked Questions

Which topics carry the most weight on the Foundations of Programming (Python) - E010 JIV1 exam?

Functions and Modular Programming and Data Structures and Input/Output typically account for a larger portion of the exam because they require integration of earlier concepts and reflect real-world coding tasks. However, all five topic areas are essential; weakness in Variables, Data Types, or Control Flow will make the later topics harder to master.

How do the five topic areas connect in actual project workflows?

In practice, you use Variables and Data Types to store information, Control Flow to make decisions based on that data, Loops to process multiple records, Functions to organize and reuse your logic, and Data Structures with Input/Output to read, transform, and save results. A typical project, such as processing a CSV file of user records, touches all five areas in sequence.

What hands-on experience helps most, and which labs should I prioritize?

Prioritize labs that require you to write complete, runnable programs rather than fill-in-the-blank exercises. Focus on labs involving file I/O, list processing with loops, and function definition. Working through debugging exercises, where you fix broken code, is especially valuable because the exam includes code-tracing questions.

What are the most common mistakes that cost points on this exam?

Off-by-one errors in loops, confusion between list indexing and slicing, forgetting to return values from functions, and misunderstanding variable scope are frequent pitfalls. Additionally, many candidates misread scenario questions and choose syntax that is valid but doesn't solve the stated problem. Slow down on scenario items and reread the requirement before selecting your answer.

What is an effective review strategy in the final week before the exam?

Review one topic per day, working through practice questions and tracing code by hand on paper. On day six, take a full-length timed practice test and review every question, correct and incorrect. On exam day, arrive early, read each question carefully, and flag items you're unsure about to review before submitting.

Question No. 1

Complete the function add_item(numeric_list, new_number) that takes a list of numbers and a new number, and returns a new list that appends the new number to the end of the list.

For example, add_item([1, 2, 3], 4) should return [1, 2, 3, 4].

Show Answer Hide Answer
Correct Answer: A

The correct function uses the list method append() to add new_number to the end of numeric_list.

Correct code:

def add_item(numeric_list, new_number):

numeric_list.append(new_number)

return numeric_list

Example:

add_item([1, 2, 3], 4)

Result:

[1, 2, 3, 4]

Python's data structures documentation explains that list.append(x) adds an item to the end of the list.

Therefore, the correct answer isA.


Question No. 2

SIMULATION

Write a complete function calculate_discount(price, discount_percent) that calculates and returns the final price after applying a discount percentage.

For example, calculate_discount(75, 20) should return 60.0.

def calculate_discount(price, discount_percent):

# TODO: Calculate and return the final price after discount

pass

Show Answer Hide Answer
Correct Answer: A

==========

Step 1: The function receives the original price and the discount_percent.

Step 2: Convert the discount percentage into a decimal by dividing by 100.

Step 3: Subtract the discount from 1 to find the remaining price percentage.

Step 4: Multiply the original price by the remaining percentage.

Correct code:

def calculate_discount(price, discount_percent):

return price * (1 - discount_percent / 100)

Example:

print(calculate_discount(75, 20))

Output:

60.0


Question No. 3

A program needs to display only positive, non-zero numbers from a list containing a mixture of integer and decimal values. Which conditional statement should be placed inside the loop?

Show Answer Hide Answer
Correct Answer: A

To display only positive, non-zero numbers, the condition should check whether each number is greater than 0.

Correct condition:

if number > 0:

Example:

numbers = [-2, 0, 1, 3.5, -4.2]

for number in numbers:

if number > 0:

print(number)

Output:

1

3.5

The condition number > 0 works for both integers and decimal values. The condition number >= 1 would incorrectly exclude positive decimal values such as 0.5.

Therefore, the correct answer isA. if number > 0:.


Question No. 4

What must a developer do to run Python code written in a text editor?

Show Answer Hide Answer
Correct Answer: A

When Python code is written in a text editor, the developer should save the file, usually with a .py extension, and run it using the Python interpreter.

Example terminal command:

python script.py

Python's documentation explains that a Python module is a file containing Python definitions and statements, usually saved with the .py suffix.

Therefore, the correct answer isA. Save the file and use a Python interpreter.


Question No. 5

SIMULATION

Fix the missing function call in this function that should return the uppercase version of a string.

def make_uppercase(text):

return text.upper

Show Answer Hide Answer
Correct Answer: A

==========

Step 1: In Python, upper is a string method.

Step 2: A method must be called using parentheses ().

Step 3: text.upper refers to the method itself, but it does not execute it.

Step 4: Use text.upper() to return the uppercase version of the string.

Correct code:

def make_uppercase(text):

return text.upper()

Example:

print(make_uppercase('hello'))

Output:

HELLO