Scripting and Programming
Foundations | 114 Questions &
Answers | Grade A | 100% Correct
(2026/2027)
This WGU's D278 Scripting and Programming Foundations
course provides a fundamental introduction to programming logic,
variables, data types, flow control, and software design principles.
It focuses on pseudocode rather than specific languages, aiming
to build foundational skills in algorithms and troubleshooting. The
course prepares students for the Objective Assessment (OA)
through modules covering loops, arrays, and object-oriented
programming concepts.
Key Course Topics & Concepts
Foundational Logic: Understanding variables, data types,
and expressions.
Control Structures: Implementing branches (if/else) and
loops (while/for).
Data Structures: Introduction to arrays and their indexing.
Functions & Algorithms: Creating modular code, user-
defined functions, and exploring searching techniques.
Software Development Basics: Exploring Software
Development Life Cycle (SDLC), Agile vs. Waterfall, and
compiled vs. interpreted languages.
Preparation and Assessment Advice
Focus on Pseudocode: The exam is not focused on a
specific language like Python or C++, but rather on
understanding programming concepts in a pseudo-language.
1
, Pre-Assessment (PA): The PA is considered highly
representative of the Objective Assessment (OA).
Study Focus: Reviewing the zyBooks material, particularly
the Participation and Challenge Activities, is key to success.
Key Areas to Review: Ensure you can read pseudo-code
flowcharts, understand logic errors, and identify variable
types.
Key Terminology
Algorithm: A set of instructions designed to solve a
problem.
Pseudocode: A language-agnostic way of writing
programming logic.
Debug Output: A technique used to troubleshoot code by
observing output.
Compiled vs. Interpreted: Understanding how different
languages run.
Quiz_________________?
Which operator should be used to determine if a number is evenly
divisible by 5? -
Answer✅
%
Quiz_________________?
A car drove 200 miles using 10 gallons of fuel.
Which operation should be used to compute the miles per gallon,
which is 20? -
2
, Answer✅
Division
Quiz_________________?
A variable should hold a person's height in meters.
Which data type should the variable be? -
Answer✅
Float
Quiz_________________?
A variable should hold the names of all past U.S. presidents.
Which data type should the variable be? -
Answer✅
String array
Quiz_________________?
A program uses the number of seconds in a minute in various
calculations.
How should the item that holds the number of seconds in a
minute be declared? -
Answer✅
Constant integer secondsPerMinute
3
, Quiz_________________?
A program determines if a user's age is high enough to run for
U.S. president. The minimum age requirement is 35.
How should the item that holds the minimum age be declared? -
Answer✅
Constant integer minAge
Quiz_________________?
Given integer x = 3 and integer y = 5.
What is the value of the expression ( x / 2.0) + y? -
Answer✅
6.5
Quiz_________________?
Given float x = 10.2 and float y = 1.0.
What is the value of the expression x / y ? -
Answer✅
10.2
Quiz_________________?
What kind of operator is the == in the expression i == 20? -
4