• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 85 pages
Exam (elaborations)

WGU D684 INTRODUCTION TO COMPUTER SCIENCE EXAM QUESTIONS AND CORRECT ANSWERS PLUS RATIONALES| INSTANT DOWNLOAD PDF

Document preview thumbnail
Preview 4 out of 85 pages

This study guide covers key computer science topics including hash tables, pipelining, TCP handshakes, relational algebra, processes and threads, functional programming, software engineering principles, the halting problem, database normalization, public-key cryptography, switching techniques, and BCNF decomposition. Each question includes a correct answer and a rationale explaining the concept, helping you understand the reasoning and prepare for the WGU D684 exam.

Content preview

, Question 1
A hash table uses open addressing with linear probing and a load factor of
0.75. If the hash function is uniform and the table size is a prime number,
which of the following best describes the expected average number of probes
for an unsuccessful search?
A. O(1)
B. O(log n)
C. O(1/(1-)) where is the load factor
D. O()
Correct Answer: C - O(1/(1-)) where is the load factor


RATIONALE
For linear probing, the expected number of probes for an unsuccessful
search is approximately 0.5*(1 + 1/(1-)^2), which is O(1/(1-)) for < 1.
This is a known result from Knuth's analysis. Options A and D are
incorrect because they ignore the clustering effect; B is incorrect
because hash tables do not have logarithmic search time under linear
probing.

Question 2
In a 5-stage pipeline (IF, ID, EX, MEM, WB), a program has 20% branch
instructions. If branches are resolved in the ID stage and the pipeline uses a
predict-not-taken strategy with a 2-cycle penalty for misprediction, what is the
approximate CPI if the branch misprediction rate is 30%?
A. 1.0
B. 1.06
C. 1.12
D. 1.20
Correct Answer: C - 1.12




Page 2

, RATIONALE
CPI = base CPI + branch frequency * misprediction rate * penalty = 1
+ 0.20 * 0.30 * 2 = 1.12. Option A ignores penalties; B underestimates
by using 1 cycle penalty; D overestimates by using 5 cycles or wrong
frequency.

Question 3
Which of the following is the primary reason that TCP uses a three-way
handshake rather than a two-way handshake?
A. To ensure reliable data transfer by acknowledging every segment.
B. To prevent old duplicate connection requests from causing confusion.
C. To negotiate the maximum segment size (MSS).
D. To establish a secure encrypted channel.
Correct Answer: B - To prevent old duplicate connection requests
from causing confusion.


RATIONALE
The three-way handshake prevents old duplicate SYN segments from
causing a half-open connection, as described in RFC 793. Option A is
about reliability, not connection setup; C is a separate option
negotiation; D is handled by TLS, not TCP.

Question 4
In relational algebra, which of the following expressions is equivalent to the
natural join of relations R(A,B) and S(B,C)?
A. _{A,B,C}(_{R.B=S.B}(R × S))
B. _{A,B,C}(R × S)
C. _{R.B=S.B}(R × S)
D. _{A,C}(R × S)
Correct Answer: A - _{A,B,C}(_{R.B=S.B}(R × S))




Page 3

, RATIONALE
Natural join is a Cartesian product followed by selection on equal
attributes and projection to remove duplicate attributes. Option A
correctly performs selection on B and projects A,B,C. B lacks
selection; C lacks projection; D drops B.

Question 5
Which of the following best describes the difference between a process and a
thread in a modern operating system?
A. A process has its own address space, while threads share the address
space of their parent process.
B. A thread has its own address space, while processes share a global
address space.
C. Processes are scheduled by the kernel, while threads are scheduled by
the user-level library.
D. Processes can communicate via shared memory, while threads cannot.
Correct Answer: A - A process has its own address space, while
threads share the address space of their parent process.


RATIONALE
Threads within the same process share the same address space,
including code, data, and heap, but have separate stacks and registers.
Processes have independent address spaces. Option B reverses the
relationship; C is not universally true (kernel-level threads exist); D is
false because threads share memory by default.

Question 6
Which of the following is a key characteristic of a functional programming
language?
A. It relies heavily on mutable state and side effects.
B. It treats computation as the evaluation of mathematical functions and
avoids changing state.


Page 4

Document information

Uploaded on
September 24, 2026
Number of pages
85
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$30.00

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
CaseHero
3.8
(4)
Sold
19
Followers
0
Items
5428
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions