2026 Actual WGU Scripting-and-Programming-Foundations Dumps, Updated Exam Questions for Guaranteed Pass

WGU Scripting and Programming Foundations - Free Practice Questions with Explanations, Exam Dumps, and Complete Practice Pack from DumpsProvider.

Exam Information

VendorWGU
Exam codeScripting-and-Programming-Foundations
Exam nameWGU Scripting and Programming Foundations
Questions in pack138
Last updatedNovember 22, 2026
VersionD278
Related certificationsWGU Courses and Certifications

Free practice questions with explanations

WGU Scripting-and-Programming-Foundations Practice Questions

Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.

Questions
12
Answered
0
Correct
0
Score
-
  1. 1 Question 1 Single choice Explaining Logic and Outcomes of Simple Algorithms

    A junior developer at a regional utility company reviews a script that processes daily meter readings. The script starts with total = 0 and count = 0, then loops through a list of readings. Inside the loop, it adds each reading to total and increments count only when the reading is greater than zero. After the loop, it prints total / count. The readings list is [0, 12, 0, 8, 10]. A colleague claims the printed value will be 6.67 because the average is taken over all five readings. The company's billing audit requires that only positive readings count toward the average. What will the script print, and why?

  2. 2 Question 2 Order list Identifying Scripts for Computer Program Requirements

    A small logistics firm needs a script that runs nightly on a Linux server, reads a CSV file of shipment records, removes duplicate tracking numbers, and writes a cleaned file for the warehouse system. The team wants to choose and verify the right scripting approach before deployment, with no third-party libraries allowed because of change-control restrictions. Arrange the steps in the order they must be performed.

    Drag the steps into the correct order, or use the arrows.

    1. Run the script against a copy of the previous night's file and compare row counts
    2. Schedule the verified script with cron to run after the nightly export completes
    3. Write the deduplication logic that keys each record on its tracking number
    4. Confirm that a standard-library reader or built-in CSV module meets the no-third-party-library rule
    5. Document the chosen language, module and runtime version in the change request
  3. 3 Question 3 Single choice Scripting and Programming Foundations

    A retail analytics team has two programs: a Python script that analyses sales figures and is run directly by analysts each morning from a terminal, and a C# service that processes order events and must run with strict memory limits and fast startup on a production server. The team lead asks a junior developer to classify each program and explain the difference in how it gets executed. Which statement correctly classifies the two programs?

  4. 4 Question 4 Multiple choice Using Fundamental Programming Elements

    A junior developer is building a Python script for a hospital pharmacy that reads a list of medication doses and must flag any dose outside a safe range of 5 to 500 milligrams, then stop processing immediately if a dose is negative because that indicates corrupted input. Each dose is read as a string from a file and must be converted before comparison. The script must process all valid entries and report flagged doses without crashing on a malformed entry. Which TWO implementation choices correctly use fundamental programming elements to meet these requirements? (Choose two.)

  5. 5 Question 5 Drag and drop Explaining Logic and Outcomes of Simple Algorithms

    A warehouse supervisor wants a short routine that tracks how many pallets are staged on a dock. It starts at zero, adds arriving pallets, subtracts pallets loaded onto trucks, and reports whether the dock is over its capacity of 40 pallets at the end of each shift. Match each element of the routine to its role in the algorithm.

    Drag each item onto its matching target. On a phone: tap an item, then tap a target.

    Checking whether the staged count is greater than 40
    Reading each arrival or departure event in turn
    Adding arriving pallets to the running staged count
    Assigning zero to the staged count before the first event is read
    Initialization
    Sorting
    Recursion
    Accumulation
    Iteration
    Conditional test
  6. 6 Question 6 Single choice Identifying Scripts for Computer Program Requirements

    A regional bank needs a script to validate a daily export of 80,000 transaction records against a reference table, flagging any record whose account number is missing from the reference. The data is already stored in a relational database on the bank's private network, and the compliance team forbids copying customer data to any external service. The developer is choosing between a Python script that uses a database driver to run a single join query, a script that loads both sets into memory and loops over one set for each record of the other, and a shell script that pipes the export through grep for every account number. Which approach best meets the requirements?

  7. 7 Question 7 Order list Scripting and Programming Foundations

    A junior developer maintains a Python script that calculates monthly interest for a credit union. A recent change introduced a rounding error, and the team must fix it safely without disrupting the Friday batch run that depends on the script. Arrange the steps in the order they must be performed.

    Drag the steps into the correct order, or use the arrows.

    1. Run the full test suite to check that existing interest calculations are unaffected
    2. Merge the fix into the main branch and deploy it before the Friday batch window
    3. Correct the rounding logic and confirm the new test passes
    4. Write a unit test that reproduces the rounding error using a known account balance
    5. Compare batch output from a staging run against the previous month's approved results
  8. 8 Question 8 Drag and drop Scripting and Programming Foundations

    A junior developer on a logistics team is comparing the design of three small programs before choosing which to extend. Match each program characteristic to the programming principle it best illustrates.

    Drag each item onto its matching target. On a phone: tap an item, then tap a target.

    A program that tests the shipment weight before choosing between two rate calculations
    A loop that runs once for every package in a manifest and stops when the manifest is exhausted
    A script that stores the shipping rate in a single named variable used throughout the program
    A function that receives a warehouse ID as a parameter and returns its capacity without reading global state
    Conditional flow control
    Repetition with a defined end condition
    Interpreter-only execution
    Single point of definition for data
    Reusable, self-contained design
    Compiled native distribution
  9. 9 Question 9 Single choice Using Fundamental Programming Elements

    A junior developer at a city transit authority is writing a script that reads a file of fare card transactions and totals the fares for each route. The script must handle routes that appear with inconsistent capitalization in the source file, such as Route 12, ROUTE 12, and route 12, so they are counted together. The team also requires that the original route label not be altered in the stored output file. Which approach best uses fundamental programming elements to meet these requirements?

  10. 10 Question 10 Single choice Identifying Scripts for Computer Program Requirements

    A healthcare startup needs a small background job that runs every hour on a managed Linux host, reads new appointment records from a message queue, and posts each one to an internal scheduling API. The host has no internet route apart from the internal API, the job must restart automatically after a crash, and the company wants to avoid writing its own service supervision logic. The developer is choosing between a long-running Python script started by a systemd service unit, a Python script started manually in a terminal session with nohup, and a cron entry that runs the script every minute with no state kept between runs. Which option best meets the requirements?

  11. 11 Question 11 Multiple choice Scripting and Programming Foundations

    A junior developer is preparing a Python project for a public health agency. The team wants the code to be easy to modify later and to behave predictably when the same input is supplied twice. Which TWO practices best support these goals? (Choose two.)

  12. 12 Question 12 Single choice Explaining Logic and Outcomes of Simple Algorithms

    A junior developer at a regional utility company is reviewing a short script that processes meter readings. The script starts with total = 0 and count = 0, then loops over a list of readings. For each reading it adds the value to total, but only increments count when the reading is greater than zero. After the loop it computes average = total / count. The readings list is [4, 0, 7, -2, 5]. The team lead needs to predict the output before the script is deployed to a billing environment that has no interactive debugging. Which outcome does the script produce?

These are 12 of the 138 questions in the full Scripting-and-Programming-Foundations pack.

Get All 138 Questions

Get all 138 questions & answers

722 Satisfied customers
93.3% Pass rate feedback
82.7% Said questions matched
94% Found material helpful

Full access options for WGU Scripting-and-Programming-Foundations

Self-study

PDF Version

$40.00 $20.00
  • 138 actual exam questions
  • Compatible with all devices
  • Printable PDF format
  • No download limits
  • 90 days free updates
  • 24/7 customer support

Exam simulation

Online Practice Test

$50.00 $25.00
  • 138 actual exam questions
  • Actual exam environment
  • 90 days free updates
  • Browser-based software
  • 24/7 customer support

100% Money Back Guarantee

Your success comes first

At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the Scripting-and-Programming-Foundations Exam (WGU Scripting and Programming Foundations) on your very first attempt.

In a rare case, if you fail your exam, we will refund your amount without asking a single question.

100%

Security & Privacy

10000+

Satisfied Customers

24/7

Committed Service

100%

Money Back Guranteed