PRE-ASSESSMENT EXAM QUESTIONS &
UPDATED COMPLETE SOLUTIONS
1. Integer Which type of variable represents a whole number in computer
programming?
Integer
Array
Float
String
2. Variable What describes a named storage location that can hold values that can
change?
Operan
d
Identifie
r
Variabl
e
Constan
t
3. The name What is one standard rule for a variable name?
should have an
appropri- ate The name must use hyphens between
meaning. words. The name must start with a
lowercase letter. The name must start
with the type designation.
The name should have an appropriate meaning.
4. Selection Which coding construct allows a choice between performing an action
and skip- ping it?
,WGU INTRODUCTION TO COMPUTER SCIENCE
PRE-ASSESSMENT EXAM QUESTIONS &
UPDATED COMPLETE SOLUTIONS
Input/output
Assignment
Selection
Iteration
5. 65 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
,WGU INTRODUCTION TO COMPUTER SCIENCE
PRE-ASSESSMENT EXAM QUESTIONS &
UPDATED COMPLETE SOLUTIONS
132
226
426
6. A varying- What is a list?
length,
ordered A group in which individual elements are accessed from the same end that is
collec- tion of called the top
homoge- A group of related attributes stored as individual fields under a single
neous items name and treated as a single concept
that allows for A fixed-length collection of homogeneous items that can each be
easy access, accessed by its position
insertion, and A varying-length, ordered collection of homogeneous items that allows for
removal easy access, insertion, and removal
How are items added to and removed from a stack?
All items can be added to or removed from any location.
7. The item re-
moved is the
one that has
been in
the shortest time. All items can be accessed or changed but not easily inserted or
removed.
The item removed is the one that has been in the shortest
time. The first item to be added becomes the first item
removed.
8. List The collection of customers for a small business is stored in such a
way that a customer can be easily accessed, deleted, or added.
, WGU INTRODUCTION TO COMPUTER SCIENCE
PRE-ASSESSMENT EXAM QUESTIONS &
UPDATED COMPLETE SOLUTIONS
What is the data structure called for in this programming
situation? Queue
Record
Stack
List
9. What describes a reference parameter?