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

Wgu D278 Scripting And Programming Foundations Practice Exam Questions With Verified Answers And Detailed Explanations. 2026/2027

Document preview thumbnail
Preview 3 out of 24 pages

Wgu D278 Scripting And Programming Foundations Practice Exam Questions With Verified Answers And Detailed Explanations. 2026/2027

Content preview

WGU D278 SCRIPTING AND
PROGRAMMING FOUNDATIONS
PRACTICE EXAM QUESTIONS WITH
VERIFIED ANSWERS AND DETAILED
EXPLANATIONS. 2026/2027


1. Which phase of the Software Development Life Cycle (SDLC) involves creating flowcharts

and pseudocode to plan the logic of a program?

A. Design


B. Analysis


C. Implementation


D. Testing


Answer: A


Conceptual Explanation: The Design phase is where the logical structure, algorithms, and

flow of the program are planned before writing code.


2. What is the primary difference between a compiled language and an interpreted language?

A. Interpreted languages run faster than compiled languages because they don’t need a

build step.

,B. Compiled languages are translated into machine code once before execution, while

interpreted languages are translated line-by-line during execution.


C. Compiled languages do not require a compiler.


D. Only interpreted languages can use variables.


Answer: B


Conceptual Explanation: Compilation converts the entire source code into machine code

ahead of time, whereas interpretation happens at runtime, line by line.


3. In programming, what is the result of the logical expression: (True AND False) OR (NOT

False)?

A. False


B. True


C. Null


D. Error


Answer: B


Conceptual Explanation: (True AND False) is False. (NOT False) is True. False OR True

results in True.


4. Which data structure is best suited for storing a collection of unique elements where order

does not matter?

A. Array

, B. Set


C. List


D. Stack


Answer: B


Conceptual Explanation: A Set is a collection that specifically stores unique elements and

typically does not guarantee a specific order.


5. What occurs when a loop’s terminating condition is never met?

A. Syntax error


B. Infinite loop


C. Compiler warning


D. Recursive call


Answer: B


Conceptual Explanation: An infinite loop occurs when the loop continues to execute

indefinitely because the condition to stop it is never satisfied.


6. Which of the following is a characteristic of a ‘statically typed’ programming language?

A. Variable types are determined at runtime.


B. Variable types are checked at compile-time.


C. Variables can change types freely during execution.

Document information

Uploaded on
October 14, 2026
Number of pages
24
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.
TheStar
3.7
(140)
Sold
736
Followers
178
Items
28662
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