1|Page
WGU D684 OBJECTIVE ASSESSMENT AND PRE -
ASSESSMENT LATEST 2026/ 2027 TEST BANK| D684
INTRODUCTION TO COMPUTER SCIENCE OA AND PA
EXAM WITH 550 REAL EXAM QUESTIONS AND CORRECT
VERIFIED ANSWERS/ ALREADY GRADED A+ (BRAND
NEW!!)
How are items added to and removed from a stack?
A. All items can be added to or removed from any location.
B. All items can be accessed or changed but not easily inserted or
removed.
C. The item removed is the one that has been in the shortest time.
D. The first item to be added becomes the first item removed.
......ANSWER......C. The item removed is the one that has been in the
shortest time.
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?
A. Queue
B. Record
,2|Page
C. Stack
D. List ......ANSWER......D. List
Which coding construct allows a choice between performing an action
and skipping it?
A. Input/output
B. Assignment
C. Selection
D. Iteration ......ANSWER......C. Selection
What describes a reference parameter?
A. Stops the content of the argument from changing anywhere in the
program
B. Passes the address, rather than the content, of the argument to the
function
C. Allows the user to type in the content of an argument at runtime
D. Passes a copy of the content in an argument to the function
......ANSWER......B. Passes the address, rather than the content, of the
argument to the function
The code shows a subprogram and a call to that subprogram.
,3|Page
my_function(num_a)
num_c = process(num_a)
store(num_c)
num_b = my_function(num_d)
Which variable name represents an argument?
A. num_a
B. num_b
C. num_c
D. num_d ......ANSWER......D. num_d
What does the object-oriented programming paradigm do to solve a
programming problem?
A. Enforces a specific type on each variable and strict rules about how
types are used
B. Organizes a program into smaller components that bundle together
fields and methods
C. Uses the structures of logic to deduce the answer from the facts and
rules
, 4|Page
D. Solves a problem by breaking it down into procedures or functions
......ANSWER......B. Organizes a program into smaller components that
bundle together fields and methods
Which programming paradigm is a subset of the declarative paradigm?
A. Logic
B. Imperative
C. Object-oriented
D. Procedural ......ANSWER......A. Logic
A computer scientist is working to optimize an algorithm that finds the
shortest driving distance between cities and wants to utilize the
computer problem-solving process for this project.
Which phase is the computer scientist in when translating a planned
sequence of steps into a programming language?
A. Algorithm development
B. Implementation
C. Analysis and specification
D. Maintenance ......ANSWER......B. Implementation
WGU D684 OBJECTIVE ASSESSMENT AND PRE -
ASSESSMENT LATEST 2026/ 2027 TEST BANK| D684
INTRODUCTION TO COMPUTER SCIENCE OA AND PA
EXAM WITH 550 REAL EXAM QUESTIONS AND CORRECT
VERIFIED ANSWERS/ ALREADY GRADED A+ (BRAND
NEW!!)
How are items added to and removed from a stack?
A. All items can be added to or removed from any location.
B. All items can be accessed or changed but not easily inserted or
removed.
C. The item removed is the one that has been in the shortest time.
D. The first item to be added becomes the first item removed.
......ANSWER......C. The item removed is the one that has been in the
shortest time.
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?
A. Queue
B. Record
,2|Page
C. Stack
D. List ......ANSWER......D. List
Which coding construct allows a choice between performing an action
and skipping it?
A. Input/output
B. Assignment
C. Selection
D. Iteration ......ANSWER......C. Selection
What describes a reference parameter?
A. Stops the content of the argument from changing anywhere in the
program
B. Passes the address, rather than the content, of the argument to the
function
C. Allows the user to type in the content of an argument at runtime
D. Passes a copy of the content in an argument to the function
......ANSWER......B. Passes the address, rather than the content, of the
argument to the function
The code shows a subprogram and a call to that subprogram.
,3|Page
my_function(num_a)
num_c = process(num_a)
store(num_c)
num_b = my_function(num_d)
Which variable name represents an argument?
A. num_a
B. num_b
C. num_c
D. num_d ......ANSWER......D. num_d
What does the object-oriented programming paradigm do to solve a
programming problem?
A. Enforces a specific type on each variable and strict rules about how
types are used
B. Organizes a program into smaller components that bundle together
fields and methods
C. Uses the structures of logic to deduce the answer from the facts and
rules
, 4|Page
D. Solves a problem by breaking it down into procedures or functions
......ANSWER......B. Organizes a program into smaller components that
bundle together fields and methods
Which programming paradigm is a subset of the declarative paradigm?
A. Logic
B. Imperative
C. Object-oriented
D. Procedural ......ANSWER......A. Logic
A computer scientist is working to optimize an algorithm that finds the
shortest driving distance between cities and wants to utilize the
computer problem-solving process for this project.
Which phase is the computer scientist in when translating a planned
sequence of steps into a programming language?
A. Algorithm development
B. Implementation
C. Analysis and specification
D. Maintenance ......ANSWER......B. Implementation