WGU D684 INTRODUCTION TO COMPUTER SCIENCE OA
EXAM 2026-2027 COMPLETE 300 QUESTIONS AND
VERIFIED SOLUTIONS LATEST UPDATE THIS YEAR
QUESTION: Which coding construct allows a choice between performing an action and skipping
it?
Assignment
Input/output
Selection
Iteration - ANSWER-Selection
QUESTION: What is the value of the expression a + (b / c) * d - e if a = 19, b = 6, c = 2, d = 20,
and e = 14?
65
132
226
426 - ANSWER-65
,Page 2 of 56
QUESTION: What is a list?
A varying-length, ordered collection of homogeneous items that allows for easy access,
insertion, and removal
A group of related attributes stored as individual fields under a single name and treated as a
single concept
A fixed-length collection of homogeneous items that can each be accessed by its position
A group in which individual elements are accessed from the same end that is called the top -
ANSWER-A varying-length, ordered collection of homogeneous items that allows for easy
access, insertion, and removal
QUESTION: How are items added to and removed from a stack?
All items can be added to or removed from any location.
All items can be accessed or changed but not easily inserted or removed.
The first item to be added becomes the first item removed.
The item removed is the one that has been in the shortest time. - ANSWER-The item removed is
the one that has been in the shortest time.
,Page 3 of 56
QUESTION: The collection of customers for a small business is stored in such a way that a
customer can be easily accessed, deleted, or added. What is the data structure called for in this
programming situation?
Queue
Record
Stack
List - ANSWER-List
QUESTION: What describes a reference parameter?
Stops the content of the argument from changing anywhere in the program
Passes a copy of the content in an argument to the function
Allows the user to type in the content of an argument at runtime
Passes the address, rather than the content, of the argument to the function - ANSWER-Passes
the address, rather than the content, of the argument to the function
QUESTION: The code shows a subprogram and a call to that subprogram.
my_function(num_a)
, Page 4 of 56
num_c = process(num_a)
store(num_c)num_b = my_function(num_d)
Which variable name represents an argument?
num_a
num_b
num_c
num_d - ANSWER-num_d
QUESTION: What does the object-oriented programming paradigm do to solve a programming
problem?
Uses the structures of logic to deduce the answer from the facts and rules
Enforces a specific type on each variable and strict rules about how types are used
Organizes a program into smaller components that bundle together fields and methods
Solves a problem by breaking it down into procedures or functions - ANSWER-Organizes a
program into smaller components that bundle together fields and methods
Q; Which type of variable represents a whole number in computer programming?