• 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 51 pages
Exam (elaborations)

WGU D278 Scripting & Programming PA | Questions, Answers & Detailed Rationales 2026

Document preview thumbnail
Preview 4 out of 51 pages

Preparing for the WGU D278 Scripting and Programming Foundations Performance Assessment (PA)? This WGU D278 PA Q&A Study Guide 2026 provides practice questions, answers, and detailed rationales to support focused review of key scripting and programming concepts. Use this resource to reinforce your understanding, practice applying concepts, and identify areas that need additional study before completing your D278 Performance Assessment. Ideal for WGU D278 students searching for PA preparation, practice questions, answer explanations, and Scripting & Programming Foundations review.

Content preview

WGU D278
Scripting & Programming PA | Questions,
Answers & Detailed Rationales 2026


RESOURCE FEATURES
➢ WGU D278 Final Exam 2026 study guide

➢ Scripting & Programming Foundations practice questions

➢ Questions and answers

➢ Detailed explanations and rationales

,WGU D278 Scripting & Programming PA
| Questions, Answers & Detailed
Rationales 2026

Question 1

A car drove 200 miles using 10 gallons of fuel. Which operation should
be used to compute the miles per gallon, which is 20?

A) Addition
B) Subtraction
C) Division
D) Multiplication

Answer: C) Division

Rationale: Miles per gallon is calculated by dividing the total miles
driven by the total gallons of fuel used. 200 miles ÷ 10 gallons = 20
miles per gallon.


Question 2

,Which operator should be used to determine if a number is evenly
divisible by 5?

A) /
B) %
C) *
D) //

Answer: B) %

Rationale: The modulo operator (%) returns the remainder of a
division. If a number % 5 equals 0, the number is evenly divisible by 5.


Question 3

A variable should hold a person's height in meters. Which data type
should the variable be?

A) Integer
B) String
C) Float
D) Boolean

Answer: C) Float

, Rationale: Height in meters can include decimal values (e.g., 1.75
meters), so a floating-point data type is appropriate.


Question 4

A variable should hold the names of all past U.S. presidents. Which data
type should the variable be?

A) String
B) String array
C) Integer array
D) Float

Answer: B) String array

Rationale: Multiple names need to be stored, and each name is a
string. A string array allows storage of multiple string values.


Question 5

A program uses the number of seconds in a minute in various
calculations. How should the item that holds the number of seconds in
a minute be declared?

Document information

Uploaded on
September 29, 2026
Number of pages
51
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$16.99

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

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
WickyAplus
4.6
(187)
Sold
198
Followers
11
Items
1623
Last sold
8 hours 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