• 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 3 out of 23 pages
Exam (elaborations)

Wgu D278 Scripting And Programming Foundations - Advanced Practice Exam Questions With Verified Answers 2026/2027

Document preview thumbnail
Preview 3 out of 23 pages

Wgu D278 Scripting And Programming Foundations - Advanced Practice Exam Questions With Verified Answers 2026/2027

Content preview

WGU D278 SCRIPTING AND
PROGRAMMING FOUNDATIONS -
ADVANCED PRACTICE EXAM
QUESTIONS WITH VERIFIED ANSWERS
2026/2027


1. An algorithm is defined as a series of well-defined steps for solving a problem. Which

characteristic is essential for an algorithm to be considered robust?

A. It must produce the same output for the same input every time.


B. It must include at least one loop structure.


C. It must be written in a specific high-level programming language.


D. It must be capable of running without any hardware constraints.


Answer: A


Conceptual Explanation: Determinism is a key characteristic of algorithms; they must

provide consistent results given the same starting conditions.


2. In the Software Development Life Cycle (SDLC), which phase primarily focuses on

determining what the system should do from a user perspective?

A. Implementation


B. Design

,C. Analysis


D. Maintenance


Answer: C


Conceptual Explanation: The Analysis phase involves gathering requirements and

defining the system’s purpose and constraints.


3. Which flowchart symbol is used to represent a decision point that branches into two or

more paths?

A. Rectangle


B. Oval


C. Diamond


D. Parallelogram


Answer: C


Conceptual Explanation: A diamond shape represents a conditional or decision node in a

flowchart.


4. A developer is writing pseudocode: ‘Set x to 10; Set y to 20; Set x to x + y; Set y to x - y; Set

x to x - y;’. What are the final values of x and y?

A. x = 10, y = 20


B. x = 30, y = 30


C. x = 20, y = 10

, D. x = 10, y = 10


Answer: C


Conceptual Explanation: This is a standard swap algorithm using arithmetic: x becomes

30, then y becomes 30-20=10, then x becomes 30-10=20.


5. Which of the following describes a compiled language correctly?

A. The code is executed line-by-line by a separate program at runtime.


B. It is strictly used for web scripting like HTML.


C. It does not require any translation before running on a CPU.


D. The code is converted entirely into machine code before execution.


Answer: D


Conceptual Explanation: Compilers translate the entire source code into machine-

executable binary files before the program runs.


6. What is the primary purpose of a ‘Constant’ in programming?

A. To store data that changes frequently during execution.


B. To serve as a placeholder for user input.


C. To represent values that remain unchanged throughout the program’s life.


D. To manage memory allocation for dynamic arrays.


Answer: C

Document information

Uploaded on
October 15, 2026
Number of pages
23
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$15.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.
Fyndlay
3.6
(79)
Sold
444
Followers
82
Items
22336
Last sold
1 day 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