7/2/26, 3:09 AM
WGU D684 – Computer Science Practice Test | Question and Answers |
2026/27 Updates | 100% Pass Guarantee
1. In most programming languages, before you can use any variable, you must
include a __ for it.
Definition
Declaration
Header
Proclamation
2. Describe the significance of floating-point representation in computer science.
Floating point representation is only used for integer values.
Floating point representation is significant because it allows for the
representation of a wide range of real numbers, including very small
and very large values.
Floating point representation is primarily used for text processing.
Floating point representation simplifies data storage by using less
memory.
3. Describe how a stack data structure functions in the context of a web browser's
Understand
back button.
the
answers
A stack stores all websites in alphabetical order for easy access.
Get in-depth
explanations
A stack prevents the browser from storing duplicate websites.
for any
A stack organizes websites based on the time spent on each p aq g e.
u e s t i o n on
your practice
test.
A stack allows the browser to keep track of the most recent websites
visited, enabling the back button to access the last site quickly.
1/48
,7/2/26, 3:09 AM
4. What is the purpose of a declaration in programming?
Got it
2/48
,7/2/26, 3:09 AM
To create a loop structure.
To define a variable's name and type.
To execute a block of code.
To import libraries.
5. In a programming scenario where you need to calculate the average of a list of
real numbers, which variable type would you choose to store the average and
why?
Boolean
Integer
Float
String
6. All the fields used to describe the attributes of an entity are grouped to form a(n)
_______________.
database
record
field
file
7. Describe how lossy data compression affects the quality of the original data.
Lossy data compression decreases the quality of the original data by
discarding some information.
Lossy data compression only affects metadata, not the actual data.
Lossy data compression enhances the quality of the original data.
Lossy data compression preserves the quality of the original data
completely.
3/48
, 7/2/26, 3:09 AM
8. A Boolean expression is one that is either:
x or y
None of these
Positive or negative
true or false
9. Describe how nested structures can be beneficial in programming.
Nested structures allow for organizing complex data in a hierarchical
manner, making it easier to manage and access.
Nested structures are used to create user interfaces in programming.
Nested structures enhance the performance of algorithms by minimizing
execution time.
Nested structures simplify the process of debugging code by reducing
the number of variables.
10. What is the basic structure of pseudocode for a subtraction operation?
d-f
f/d
f+d
f-d
11. What is the definition of pseudocode?
Pseudocode is a simplified, informal way of describing a computer
program's logic using plain language.
Pseudocode is a type of algorithm that can be executed by a computer.
Pseudocode is a programming language used to write software
applications.
4/48
WGU D684 – Computer Science Practice Test | Question and Answers |
2026/27 Updates | 100% Pass Guarantee
1. In most programming languages, before you can use any variable, you must
include a __ for it.
Definition
Declaration
Header
Proclamation
2. Describe the significance of floating-point representation in computer science.
Floating point representation is only used for integer values.
Floating point representation is significant because it allows for the
representation of a wide range of real numbers, including very small
and very large values.
Floating point representation is primarily used for text processing.
Floating point representation simplifies data storage by using less
memory.
3. Describe how a stack data structure functions in the context of a web browser's
Understand
back button.
the
answers
A stack stores all websites in alphabetical order for easy access.
Get in-depth
explanations
A stack prevents the browser from storing duplicate websites.
for any
A stack organizes websites based on the time spent on each p aq g e.
u e s t i o n on
your practice
test.
A stack allows the browser to keep track of the most recent websites
visited, enabling the back button to access the last site quickly.
1/48
,7/2/26, 3:09 AM
4. What is the purpose of a declaration in programming?
Got it
2/48
,7/2/26, 3:09 AM
To create a loop structure.
To define a variable's name and type.
To execute a block of code.
To import libraries.
5. In a programming scenario where you need to calculate the average of a list of
real numbers, which variable type would you choose to store the average and
why?
Boolean
Integer
Float
String
6. All the fields used to describe the attributes of an entity are grouped to form a(n)
_______________.
database
record
field
file
7. Describe how lossy data compression affects the quality of the original data.
Lossy data compression decreases the quality of the original data by
discarding some information.
Lossy data compression only affects metadata, not the actual data.
Lossy data compression enhances the quality of the original data.
Lossy data compression preserves the quality of the original data
completely.
3/48
, 7/2/26, 3:09 AM
8. A Boolean expression is one that is either:
x or y
None of these
Positive or negative
true or false
9. Describe how nested structures can be beneficial in programming.
Nested structures allow for organizing complex data in a hierarchical
manner, making it easier to manage and access.
Nested structures are used to create user interfaces in programming.
Nested structures enhance the performance of algorithms by minimizing
execution time.
Nested structures simplify the process of debugging code by reducing
the number of variables.
10. What is the basic structure of pseudocode for a subtraction operation?
d-f
f/d
f+d
f-d
11. What is the definition of pseudocode?
Pseudocode is a simplified, informal way of describing a computer
program's logic using plain language.
Pseudocode is a type of algorithm that can be executed by a computer.
Pseudocode is a programming language used to write software
applications.
4/48