Final Exam 2026 | Scripting & Programming
Foundations Study Guide & Practice Questions
RESOURCE FEATURES
➢ WGU D278 Final Exam 2026 study guide
➢ Scripting & Programming Foundations practice questions
➢ Questions and answers
➢ Detailed explanations and rationales
, WGU D278 Final Exam 2026 | Scripting &
Programming Foundations Study Guide &
Practice Questions
Question 1
What does a programmer do first to use an existing programming
library?
A) Write the functions from scratch
B) Include the library
C) Compile the library
D) Test the library
Correct Answer: B) Include the library
Rationale: Before a programmer can use any functions or resources
from an existing programming library, they must first include (or
import) the library into their program. This makes the library's functions
and resources available for use. Writing from scratch (A) defeats the
purpose of using a library. Compiling (C) and testing (D) come after
inclusion.
,Question 2
What relationship is common among a programming library's
functions?
A) They all use the same variables
B) They all relate to the same purpose
C) They all have the same number of parameters
D) They all return the same data type
Correct Answer: B) They all relate to the same purpose
Rationale: A programming library is a collection of functions organized
around a common theme or purpose (e.g., math functions, string
manipulation, graphics). This cohesion is what makes a library useful
and organized. The other options are not requirements for library
functions.
Question 3
What is an advantage of using a programming library?
A) The code runs faster
B) The code has already been tested
, C) The code uses less memory
D) The code is always open source
Correct Answer: B) The code has already been tested
Rationale: One of the primary advantages of using existing libraries is
that the code has typically been thoroughly tested and debugged by
many users over time, reducing the likelihood of bugs. While
performance and memory benefits may sometimes occur, they are not
guaranteed advantages.
Question 4
Which language is dynamically typed?
A) Java
B) C++
C) Python
D) C
Correct Answer: C) Python
Rationale: Python is a dynamically typed language, meaning variable
types are determined at runtime and don't need to be explicitly