Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 34 pages
Exam (elaborations)

CS 235 EXAM 2 QUESTIONS WITH COMPLETE ANSWERS

Document preview thumbnail
Preview 4 out of 34 pages

CS 235 EXAM 2 QUESTIONS WITH COMPLETE ANSWERS

Content preview

1 of 53

Term Definition



Which of the following would b
not be a good application for a
binary tree?
a. a family tree
b. a Huffman tree
c. a search tree
d. an expression tree

Give this one a try later!

, True False



Correct definition



a




2 of 53

Term Definition



With recursive binary search c
algorithm, how many items
need to be checked in the list?
a. all items
b. half the items
c. log(n) of the n items
d. none of the items

Give this one a try later!



True False




3 of 53

Term Definition



What makes backtracking b
different from random trial and
error?
a. it is always faster than random
trial and error

,b. it is systematic and won't try
the same path more than once
c. random trail and error cannot
be made in a program
d. there is no real difference

Give this one a try later!



True False




4 of 53

Term Definition



What is the behavior of a stack? c
a. FIFO
b. LILO
c. LIFO
d. none of the above




Give this one a try later!



True False




5 of 53

Term Definition



A priority queue... b
a. is a container
b. is a container adapter that

, uses a specific underlying
container, e.g. vector or deque
c. is implemented with a stack
d. sometimes uses a LIFO to
implement a waiting line

Give this one a try later!



True False




6 of 53

Term Definition



(___) traversal doesn't exist d
a. preorder
b. postorder
c. inorder
d. outorder




Give this one a try later!



True False




7 of 53

Term Definition



Writing "towers of Hanoi" code d
for 64 disks is
a. virtually the same as for 3

Document information

Uploaded on
August 12, 2025
Number of pages
34
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$10.50

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.
CLASSROOMTEST
3.4
(10)
Sold
47
Followers
2
Items
7474
Last sold
1 month 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