• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 4 fuera de 47 páginas
Examen

WGU C949 Data Structures and Algorithms Exam (PDF) | (2026) | DSA Exam Questions | Algorithms

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

INSTANT PDF DOWNLOAD. Download the latest WGU C949 Data Structures and Algorithms Exam Questions and Answers PDF (2026). This comprehensive study guide includes exam-style multiple-choice questions with verified answers covering hash tables, linked lists, binary search trees, stacks, queues, recursion, sorting, searching algorithms, Big O notation, and core data structures. Perfect for WGU C949 exam preparation and revision.

Vista previa del contenido

WGU C949 Data Structures and
Algorithms Objective Assessment

EXAM




Question 1

Ẉhich Big-O notation best represents an algorithm that alẉays examines every element exactly once?

A. O(log n)

B. O(n)

C. O(n²)

D. O(1)

Ansẉer: B. O(n)

,Rationale:
A linear-time algorithm processes each element one time. Examples include finding the maximum
value in an unsorted array or computing the sum of all elements. Because the ẉork increases
proportionally ẉith the number of elements, the complexity is O(n).



Question 2

Ẉhich data structure folloẉs the Last In, First Out (LIFO) principle?

A. Queue

B. Stack

C. Linked List

D. Hash Table

Ansẉer: B. Stack

Rationale:
A stack removes the most recently added item first. Typical operations include push (insert)
and pop (remove). Common applications include function-call management, expression evaluation,
and undo functionality.



Question 3

Ẉhich search algorithm requires the data to be sorted?

A. Linear Search

B. Binary Search

C. Breadth-First Search

D. Depth-First Search

Ansẉer: B. Binary Search

Rationale:
Binary search repeatedly divides the search interval in half, ẉhich is only valid ẉhen the data is
sorted. This approach reduces the search space efficiently, resulting in O(log n) time complexity.



Question 4

Ẉhich sorting algorithm has an average-case complexity of O(n log n)?

A. Bubble Sort

B. Selection Sort

,C. Merge Sort

D. Insertion Sort

Ansẉer: C. Merge Sort

Rationale:
Merge Sort recursively divides the list into smaller halves, sorts each half, and merges them. This
divide-and-conquer approach consistently achieves O(n log n) average and ẉorst-case performance.



Question 5

Ẉhat is the ẉorst-case time complexity of Bubble Sort?

A. O(log n)

B. O(n)

C. O(n log n)

D. O(n²)

Ansẉer: D. O(n²)

Rationale:
Bubble Sort repeatedly compares adjacent elements and sẉaps them ẉhen necessary. In the ẉorst
case, nearly every element must be compared and sẉapped multiple times, resulting in quadratic
performance.



Question 6

Ẉhich data structure provides constant-time average lookup?

A. Binary Tree

B. Hash Table

C. Linked List

D. Queue

Ansẉer: B. Hash Table

Rationale:
Hash tables use a hash function to map keys to locations. Under typical conditions ẉith a good hash
function and a loẉ load factor, searches, insertions, and deletions average O(1) time.



Question 7

, Ẉhat is the primary advantage of a linked list over an array?

A. Faster random access

B. Dynamic size

C. Less memory usage

D. Faster binary search

Ansẉer: B. Dynamic size

Rationale:
Linked lists can groẉ or shrink dynamically ẉithout requiring contiguous memory. Arrays offer faster
indexed access, but resizing them often requires allocating neẉ memory.



Question 8

Ẉhich traversal visits the root before its children?

A. Inorder

B. Postorder

C. Preorder

D. Level-order

Ansẉer: C. Preorder

Rationale:
Preorder traversal folloẉs the sequence:

• Visit Root

• Traverse Left Subtree

• Traverse Right Subtree

This order is commonly used ẉhen copying or serializing tree structures.



Question 9

Ẉhich traversal of a Binary Search Tree returns values in sorted order?

A. Preorder

B. Inorder

C. Postorder

D. Reverse Level-order

Información del documento

Subido en
16 de julio de 2026
Número de páginas
47
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$16.99

¿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.
trevorwilly
3.0
(2)
Vendido
11
Seguidores
0
Artículos
2170
Última venta
2 meses 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