WGU D684 INTRODUCTION TO COMPUTER SCIENCE
COURSE SECTION 1 AND 2 OBJECTIVE
ASSESSMENT ||VERIFIED EXAM 2026/2027
CURRENTLY TESTING WITH COMPLETE 500 EXAM
QUESTIONS WITH DETAILED VERIFIED
ANSWERS||ALREADY GRADED A+|
Which data type is used to represent textual data? -
Answer-String
Which variable name is valid in most programming
languages? - Answer-variable_123
Which statement correctly assigns the value 10 to the
variable x? - Answer-x = 10
Which is used for iteration in programming? - Answer-
While loop
What is the result of the expression 2 + 3 x 4? - Answer-14
Which operator has the highest precedence? - Answer-x
,2|Page
Which value is a floating-point number? - Answer-3.14
What is the result of the expression (2 + 3) x 4? - Answer-
20
What is the main purpose of object-oriented programming
(OOP)? - Answer-To organize code into reusable
components called objects
Which statement describes a class in OOP? - Answer-A
blueprint for creating objects
What is encapsulation in OOP? - Answer-The practice of
keeping data and methods that manipulate the data in a
single unit
Which feature of OOP allows programmers to create new
classes based on existing classes? - Answer-Inheritance
, 3|Page
What is polymorphism in OOP? - Answer-The ability of
different objects to respond to the same method in
different ways
What is a linked list? - Answer-A collection of elements,
each containing a reference to the next element.
Which description best describes a stack? - Answer-Last-
in, first-out (LIFO) structure
What is the primary characteristic of a queue? - Answer-
There is FIFO access.
What is a subprogram? - Answer-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? - Answer-
CalculateSum(a, b)
What is the primary purpose of using subprograms in a
program? - Answer-To allow for code reuse and better
organization