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

D278 Scripting and Programming Foundations Study Guide Bundle – Complete Exam Prep

Document preview thumbnail
Preview 4 out of 78 pages

Master your upcoming assessment with this comprehensive D278 Scripting and Programming Foundations Study Guide Bundle, designed to simplify core coding logic and foundational concepts. This all-in-one preparation resource features detailed breakdowns of pseudo-code, algorithms, control structures, and essential programming terminology. Gain the confidence and critical problem-solving skills required to ace your exam on the first attempt.

Content preview

WGU D278 Scripting and Programming
Foundations Ultimate Study Guide Bundle
| Comprehensive Exam Prep, Practice
Questions, & Core Concepts Master Class


1. What is a script in the context of programming?
A) A compiled executable file
B) A set of instructions for a runtime environment to automate tasks
C) A hardware description language
D) A type of database query

Answer: B) A set of instructions for a runtime environment to
automate tasks
Rationale: A script is typically an interpreted program, a series of commands
that a runtime environment (like a shell or a browser) executes to automate
tasks, rather than being compiled into a standalone executable.

2. Which of the following is a key characteristic of a scripting
language?
A) It requires a separate compilation step before execution.
B) It is primarily used for writing operating system kernels.
C) It is often interpreted, allowing for rapid prototyping.
D) It is directly executed by the CPU without an interpreter.

Answer: C) It is often interpreted, allowing for rapid prototyping.
Rationale: Scripting languages are generally interpreted, meaning an

,interpreter reads and executes the code line by line. This allows for a faster
development cycle as there is no need for a separate compilation step,
making them ideal for rapid prototyping.

3. Which of these is an example of a high-level programming
language?
A) Assembly Language
B) Machine Code
C) Python
D) Microcode

Answer: C) Python
Rationale: High-level languages like Python, Java, and C++ are designed to
be human-readable and are abstracted from the computer's hardware.
Assembly, machine code, and microcode are all considered low-level.

4. What is the primary role of an interpreter in a scripting language?
A) To convert high-level code into machine code and save it as an
executable file.
B) To read and execute code line by line at runtime.
C) To link libraries together to create a final program.
D) To analyze code for syntax errors and produce an object file.

Answer: B) To read and execute code line by line at runtime.
Rationale: An interpreter translates and executes source code one statement
at a time, without creating a permanent machine-code file. This is in contrast
to a compiler, which translates the entire program at once.

5. Which of the following best describes the difference between a
compiled language and a scripting language?
A) Compiled languages are always more secure.
B) Scripting languages do not require a compiler.

,C) Compiled languages are interpreted at runtime.
D) Scripting languages are always object-oriented.

Answer: B) Scripting languages do not require a compiler.
Rationale: While not a perfect distinction, a defining characteristic is that
compiled languages (like C++) require a compilation step to create an
executable, whereas scripting languages (like Python or JavaScript) are
typically executed directly by an interpreter without a separate compilation
step.

6. What is the purpose of a 'shebang' line (e.g., #!/bin/bash) at the
top of a script?
A) To declare variables
B) To specify the script's author
C) To tell the operating system which interpreter to use to execute the
script
D) To import external libraries

Answer: C) To tell the operating system which interpreter to use to
execute the script
Rationale: The shebang is a special line that begins with #!. When a script is
executed directly on a Unix-like system, the shebang tells the OS which
interpreter (e.g., /bin/bash, /usr/bin/python) should be used to run the
file's contents.

7. In programming, what does the term "abstraction" refer to?
A) The process of converting code to a different language.
B) The delay in program execution.
C) Hiding complex implementation details and showing only essential
features.
D) The physical components of a computer.

, Answer: C) Hiding complex implementation details and showing only
essential features.
Rationale: Abstraction is a fundamental concept in computer science where
complex, low-level details are hidden behind a simpler, higher-level interface.
This allows programmers to work with concepts like functions or objects
without needing to know their internal workings.

8. Which of the following is NOT a typical use case for a scripting
language?
A) Automating system administration tasks.
B) Developing a high-performance 3D game engine.
C) Building interactive front-end web applications.
D) Performing data analysis and visualization.

Answer: B) Developing a high-performance 3D game engine.
Rationale: While possible, scripting languages are generally not used for
performance-critical applications like 3D game engines, which are typically
built with lower-level languages like C++ for maximum efficiency and control
over hardware resources.

9. What is source code?
A) The binary executable file of a program.
B) The original, human-readable text of a program written in a
programming language.
C) The output of a program.
D) The memory dump of a running program.

Answer: B) The original, human-readable text of a program written in
a programming language.
Rationale: Source code is the collection of instructions written by a
programmer in a high-level language. It is the "source" from which the final
executable program is created by a compiler or interpreter.

Document information

Uploaded on
November 8, 2026
Number of pages
78
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$24.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.
DocOlivetarah
3.8
(4)
Sold
20
Followers
0
Items
1581
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