GUIDE SOLVED MCQS FOR
SCRIPTING & PROGRAMMING
Master the WGU D278 objective assessment on your very first
attempt with this comprehensive bank of premium multiple-choice
questions. Each problem features a clear correct answer highlight
alongside an in-depth, verified rationale explaining core
programming syntax, SDLC frameworks, and logic architectures.
Perfect for quick retrieval and final night revision, this guide is
meticulously optimized to convert study stress into a guaranteed
passing score.
Section 1: Programming Fundamentals &
Instructions (Questions 1–15)
Q1. Which of the following is a step-by-step set
of instructions used to solve a specific problem
or complete a task?
A) Variable
B) Algorithm
C) Compiler
D) Library
Correct Answer: B) Algorithm
Rationale: An algorithm is a precise, sequential
set of instructions designed to resolve a
problem. It must be conceptualized before
writing code.
,Q2. What are the three foundational instruction
types executed by a computer program?
A) Compile, Link, Execute
B) Input, Process, Output
C) Loop, Branch, Assign
D) Debug, Implement, Test
Correct Answer: B) Input, Process, Output
Rationale: All computer software functions by
accepting data (Input), manipulating or
calculating that data (Process), and returning a
result to the user or system (Output).
Q3. Which text representation represents a
proper algorithm for a everyday physical action?
A) Open door
→right arrow
→
Close door
→right arrow
→
Lock door
B) Insert key
,→right arrow
→
Turn key
→right arrow
→
Open door
C) Walk forward
→right arrow
→
Jump up
→right arrow
→
Look around
D) Drive car
→right arrow
, →
Stop car
→right arrow
→
Park car
Correct Answer: B) Insert key
→right arrow
→
Turn key
→right arrow
→
Open door
Rationale: This sequence demonstrates a clear,
logical, step-by-step causal chain required to
achieve a specific outcome (opening a locked
door).
Q4. What is a named storage location in memory
whose value can change during program