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
Examen

CMPT-280 FINAL EXAM PREPERATION CORRECT 100%

Puntuación
-
Vendido
-
Páginas
6
Grado
A+
Subido en
06-12-2025
Escrito en
2025/2026

What are the operations of a List ADT? - ANSWER- Create a new, empty list - Insert a new data item at the front of the list - Insert a new item at the end of the list - Delete the first item in the list - Delete the last item in the list - Obtain the i-th item in the list Give a brief description of the Linked List class. - ANSWERA java class with attributes head and numEl. This class stores LinkedNodeI items, where LinkedNode has attributes: item and nextNode. What is Black Box Testing? - ANSWERWe cannot see the code, we simply look at the inputs and outputs and build test cases around that.

Mostrar más Leer menos
Institución
CMPT-280
Grado
CMPT-280

Vista previa del contenido

CMPT-280 FINAL EXAM
PREPERATION CORRECT 100%
What are the operations of a List ADT? - ANSWER- Create a new, empty list
- Insert a new data item at the front of the list
- Insert a new item at the end of the list
- Delete the first item in the list
- Delete the last item in the list
- Obtain the i-th item in the list

Give a brief description of the Linked List class. - ANSWERA java class with attributes
head and numEl. This class stores LinkedNode<I> items, where LinkedNode has
attributes: item and nextNode.

What is Black Box Testing? - ANSWERWe cannot see the code, we simply look at the
inputs and outputs and build test cases around that.

What is White Box Testing? - ANSWERWe get to look at the code and consider all of
the different paths through the program. Test for 0, 1, 2 and many loops, items etc.

What is the Active Operation Approach? - ANSWERFinding the statement that runs the
most in the code and using that to get the Big-Oh-Notation of the code.

What are the methods of Cursors? - ANSWER- itemExists
- item
- goFirst
- goForth
- goLast
- goBefore
- goAfter
- before
- after

(A cursor doesn't have to provide all of the methods for example a cursor in a Stack
would only need the item and itemExists methods since you aren't allowed to
manipulate the cursor)

What is the difference between iterators and cursors? - ANSWERA cursor is a property
of the collection. Where an iterator is a different distinct object.

What is the Timing Analysis of Insertion and Deletion from a Doubly-Linked List? -
ANSWERYou can insert from the beginning in O(1) time middle in (O(n) time however,
O(1) in some cases) and the end in O(1) time.

, You can delete from the beginning in O(1) time and from the end in O(n) time.

What is the difference between mutable and immutable? What are examples of each? -
ANSWERImmutable - Cannot be changed, [Integer Double Float Character]

Mutable - Can be changed, [LinkedNode280 LinkedList280]

Shallow Clone - ANSWEROnly one new object instance is created. If the Object has
instance variables those are copied as well. If the object contains any references to
other objects those are copied as well but that is as deep as it goes.

Deep Clone - ANSWERClones all of the other objects reference either directly on
indirectly by the object being cloned.

What is a data structure? - ANSWERA collection of data elements and a set of
associations between those elements.

What is an abstract data type (ADT)? - ANSWERIs an abstraction that permits
programmers to makes use of a data structure without knowing the internal
implementation.

These are used to allow for reduced coupling (the degree to which two modules of code
depend on each other) and increased cohesion (the degree to which components of a
modules of code are related or belong together).

ADT Specification - ANSWERReview Assignment 2

Define the term parent, child, ancestor, descendant, sibling, level and height in terms of
trees. - ANSWERParent - The node above the current node

Child - The node/nodes below the current node

Ancestor - Any node above the current node that is still in the same subtree

Descendant - Any node below the current node that is still in the same subtree

Height - The amount of the rows in the current tree.

Level - The current row that you are on (at the root node level = 0)

Arrayed Binary Trees - ANSWERItems in the array are offset by 1 (the starting index is
1). The left child is stored at 2i and the right child is stored at 2i+1. The parent is stored
at offset i/2.

Breadth First Search - ANSWERStarts at the root and always visits all the nodes on the
current level of the tree before visiting nodes on the next level of the tree.

Escuela, estudio y materia

Institución
CMPT-280
Grado
CMPT-280

Información del documento

Subido en
6 de diciembre de 2025
Número de páginas
6
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$12.49
Accede al documento completo:

¿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

Conoce al vendedor

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.
shantelleG West Virgina University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
646
Miembro desde
3 año
Número de seguidores
369
Documentos
18298
Última venta
1 día hace
GOLD PREMIUM

HELLO? welcome to my store thanks for visiting this page here you are guaranteed of well revised and assured EXAMS ALL GRADED A+ thus making your education journey easy and seamless . DO NOT HESITATE TO CONTACT ME IF YOU ARE IN NEED OF ANY EXAM .I AM READY 24/7 TO ASSIST YOU ALSO REFER YOUR FRIENDS.

4.0

118 reseñas

5
69
4
11
3
24
2
2
1
12

Recientemente visto por ti

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