Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 4 fuera de 34 páginas
Examen

CS 235 EXAM 2 QUESTIONS WITH COMPLETE ANSWERS

Document preview thumbnail
Vista previa 4 fuera de 34 páginas

CS 235 EXAM 2 QUESTIONS WITH COMPLETE ANSWERS

Vista previa del contenido

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

Información del documento

Subido en
12 de agosto de 2025
Número de páginas
34
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$10.50

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
CLASSROOMTEST
3.4
(10)
Vendido
47
Seguidores
2
Artículos
7474
Última venta
1 mes hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes