• ¿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 1 fuera de 3 páginas
Examen

Data Structures Exam With Correct Answers (Graded A)

Document preview thumbnail
Vista previa 1 fuera de 3 páginas

DATA STRUCTURES EXAM WITH CORRECT ANSWERS (GRADED A)

Vista previa del contenido

DATA STRUCTURES EXAM WITH
CORRECT ANSWERS



The following code: Print(Animal(4,1)) outputs the string, 'Dog'. However, the code:
Animal(4,1)='Cat' produces an error. Why could this be? - Correct Answers -Animal is a
tuple

The data structure used to store return addresses and local variables when a function is
executing is a: - Correct Answers -Stack

Before data is removed (popped) from a stack, what should be checked first? - Correct
Answers -Stack underflow

A buffer is used in data transfer between two devices operating at different speeds. For
example between a server and client in video transfer over the internet. Which data
structure should data be held in before being shown to the user? - Correct Answers -
Queue

A circular queue is implemented using an array of 6 elements, 0-5. The front pointer is
2, the back pointer is 5. What is the value of the back pointer when a new item is
enqueued? - Correct Answers -0

Sarah is making a version of a board game called Othello which is played on an 8x8
grid. Which data structure should Sarah use to store the colour of the counters in each
space to make her algorithms for the game most efficient? - Correct Answers -Arrays

(Arrays are an ideal data structure when the number of elements is known in advance
and does not change at run-time. An 8x8 grid for a board game is therefore best stored
as an array.)

The data structure used to store process blocks in a round robin scheduling algorithm is
a: - Correct Answers -Queue

A hash table is used when you want - Correct Answers -Immediate access to data

**A network printer uses spooling to hold print jobs waiting to print from many users.
Which data structure would be most suitable for storing the print jobs? - Correct
Answers -• Printers make use of queues to hold print jobs as they arrive.

Información del documento

Subido en
28 de julio de 2025
Número de páginas
3
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$10.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.
millyphilip
3.7
(563)
Vendido
3020
Seguidores
1965
Artículos
48061
Última venta
2 días 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