WGU D684 OBJECTIVE ASSESSMENT AND PRE -
ASSESSMENT LATEST 2026/ 2027 | D684
INTRODUCTION TO COMPUTER SCIENCE OA AND PA
EXAM AND CORRECT VERIFIED ANSWERS/ ALREADY
GRADED A+
Which type of variable represents a whole number in computer
programming?
A. Integer
B. Array
C. Float
D. String
Integer
What describes a named storage location that can hold values that can
change?
A. Operand
B. Identifier
C. Variable
D. Constant
Variable
pg. 1
,2|Page
What is one standard rule for a variable name?
A. The name must use hyphens between words.
B. The name must start with a lowercase letter.
C. The name must start with the type designation.
D. The name should have an appropriate meaning.
The name should have an appropriate meaning.
Which coding construct allows a choice between performing an action
and skipping it?
A. Input/output
B. Assignment
C. Selection
D. Iteration
Selection
What is the value of the expression a + (b / c) * d - e
if a = 19,
b = 6,
c = 2,
d = 20,
pg. 2
,3|Page
and e = 14?
A. 65
B. 132
C. 226
D. 426
65
What is a list?
A. A group in which individual elements are accessed from the same
end that is called the top
B. A group of related attributes stored as individual fields under a single
name and treated as a single concept
C. A fixed-length collection of homogeneous items that can each be
accessed by its position
D. A varying-length, ordered collection of homogeneous items that
allows for easy access, insertion, and removal
A varying-length, ordered collection of homogeneous items that
allows for easy access, insertion, and removal
How are items added to and removed from a stack?
A. All items can be added to or removed from any location.
pg. 3
, 4|Page
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.
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
C. Stack
D. List
List
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
pg. 4