WGU D684 Introduction To Computer Science
Objective Assessment Final Verified Exam VERSION 2
Newest Actual Exam With Complete Questions And
Correct Detailed Answers (Verified Answers) |Already
Graded A+||Newest Exam!!!
What is a linked list? - Answers-A collection of elements,
each containing a reference to the next element.
Which description best describes a stack? - Answers-Last-
in, first-out (LIFO) structure
What is the primary characteristic of a queue? - Answers-
There is FIFO access.
What is a subprogram? - Answers-A sequence of program
instructions that perform a specific task
In pseudocode, how would you call a function named
CalculateSum with two parameters a and b? - Answers-
CalculateSum(a, b)
,2|Page
What is the primary purpose of using subprograms in a
program? - Answers-To allow for code reuse and better
organization
Which operation is used to add an element to the top of a
stack? - Answers-Push
Which scenario is a stack most suitable for? - Answers-
Managing tasks in a printer queue
Which is an example of an integer data type? - Answers-
42
Which data type is used to represent textual data? -
Answers-String
Which variable name is valid in most programming
languages? - Answers-variable_123
Which statement correctly assigns the value 10 to the
variable x? - Answers-x = 10
, 3|Page
Which is used for iteration in programming? - Answers-
While loop
What is the result of the expression 2 + 3 x 4? - Answers-
14
Which operator has the highest precedence? - Answers-x
Which value is a floating-point number? - Answers-3.14
What is the result of the expression (2 + 3) x 4? - Answers-
20
What is the main purpose of object-oriented programming
(OOP)? - Answers-To organize code into reusable
components called objects
Which statement describes a class in OOP? - Answers-A
blueprint for creating objects