• 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 Final Exam Prep Questions With Verified Answers 2026/2027

Document preview thumbnail
Preview 3 out of 24 pages

Wgu D278 Scripting And Programming - Foundations Final Exam Prep Questions With Verified Answers 2026/2027

Content preview

WGU D278 SCRIPTING AND
PROGRAMMING - FOUNDATIONS
FINAL EXAM PREP QUESTIONS WITH
VERIFIED ANSWERS 2026/2027


1. Which of the following describes a key difference between a compiler and an interpreter?

A. Compilers are generally slower during execution than interpreters.


B. An interpreter produces a standalone executable file, whereas a compiler requires the

source code to run.


C. A compiler translates the entire program into machine code before execution, while an

interpreter translates and executes line by line.


D. Interpreters are only used for low-level languages like Assembly.


Answer: C


Conceptual Explanation: A compiler converts the whole source code into an executable

machine code file at once. An interpreter processes the code statement by statement at

runtime.


2. In Big O notation, what is the time complexity of an algorithm that uses a nested loop to

iterate through a list of size N?

A. O(N)

,B. O(log N)


C. O(N^2)


D. O(1)


Answer: C


Conceptual Explanation: A nested loop where both loops iterate up to N results in N * N

operations, which is quadratic time complexity, represented as O(N^2).


3. Which phase of the Software Development Life Cycle (SDLC) involves defining the

hardware and software architecture of the system?

A. Analysis


B. Design


C. Implementation


D. Testing


Answer: B


Conceptual Explanation: The Design phase focuses on how the system will be built,

including technical specifications, architecture, and data structures.


4. Which logical operator returns true only if exactly one of the two operands is true?

A. AND


B. XOR

, C. NOT


D. OR


Answer: B


Conceptual Explanation: XOR (Exclusive OR) evaluates to true if the inputs are different

(one true, one false) and false if they are the same.


5. What is the main advantage of using a ‘Binary Search’ over a ‘Linear Search’?

A. Binary search is much faster for large, sorted datasets.


B. Binary search works on unsorted lists.


C. Binary search is easier to implement.


D. Binary search uses more memory to improve speed.


Answer: A


Conceptual Explanation: Binary search has a time complexity of O(log N), making it

significantly more efficient than the O(N) linear search for large sorted arrays.


6. In Object-Oriented Programming, what is ‘Encapsulation’?

A. The ability of a function to take many forms.


B. Creating a new class from an existing class.


C. Bundling data and methods that work on that data within a single unit and restricting

access to some components.

Document information

Uploaded on
October 15, 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.
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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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