Back to marketplace

1.4.2 Data Structures

No description yet. This curated deck is ready for daily study.

Total cards: 20•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (20)

#1
Front (Question)

Which of the following data structures are ordered? • List • Record • Tuple • Array

Back (Answer)

List Array Tuple

#2
Front (Question)

Which of the following data structures can store multiple data types? • List • Record • Tuple • Array

Back (Answer)

List Record Tuple

#3
Front (Question)

Which of the following data structures are immutable (read-only)? • List • Record • Tuple • Array

Back (Answer)

Tuple Contents cannot be modified at run-time

#4
Front (Question)

Which of the following data structures have no predefined scope (dynamic)? • List • Record • Tuple • Array

Back (Answer)

List

#5
Front (Question)

Which of the following data structures can store multiple values under one identifier? • List • Record • Tuple • Array

Back (Answer)

All of them List Record Tuple Array

#6
Front (Question)

Which of the following data structures are accessed using an index? • List • Record • Tuple • Array

Back (Answer)

List Tuple Array

#7
Front (Question)

What is the purpose of the pointers in a queue?

Back (Answer)

• Front/Head - Used to identify the first item in the queue i.e the one to dequeue next • Rear/Tail- Used to identify the next free space in the queue i.e. the next element to be enqueued

#8
Front (Question)

How many pointers are used in a stack?

Back (Answer)

1 - Top

#9
Front (Question)

What pointer is impacted when you enqueue an item in a queue

Back (Answer)

Rear/Tail - Incremented by one

#10
Front (Question)

What pointer is impacted when you dequeue an item from a queue?

Back (Answer)

Front/Head - incremented by one

#11
Front (Question)

Which data structure operates on a FIFO basis?

Back (Answer)

Queue First in first out

#12
Front (Question)

Which data structure operates on a LIFO basis?

Back (Answer)

Stack Last in first out

#13
Front (Question)

Where might a queue be used?

Back (Answer)

Printer Queue Keyboard Buffer

#14
Front (Question)

Where might a stack be used?

Back (Answer)

Web Browser History Undo button in a word processor

#15
Front (Question)

What type of error could occur if an item is added to a full stack or queue?

Back (Answer)

Overflow Error

#16
Front (Question)

What type of error could occur if an item is removed from to an empty stack or queue?

Back (Answer)

Underflow Error

#17
Front (Question)

What is the process for enqueuing an item to a queue?

Back (Answer)

• Check if the queue is full, If it is then output message reporting an error. • If not full, then increment tail pointer by 1 • Add item to tail index (Assuming that the pointer is set to point at last item, and not the space after)

Card back image
#18
Front (Question)

What is the process for dequeuing an item from a queue?

Back (Answer)

• Check if the queue is empty, If it is then output message reporting an error. • If it is not empty, then output the element located at the head pointer • Increment head pointer by 1

Card back image
#19
Front (Question)

What is the process for popping an item from a stack?

Back (Answer)

• Check if the stack is empty, If it is then output message reporting an error. • If it is not empty, then output the element located at the top pointer • decrement the top pointer by one. The last two bullet points could happen in the opposite order depending on the stack implementation

Card back image
#20
Front (Question)

What is the process for pushing an item to a stack?

Back (Answer)

• Check if the stack is full, If it is then output message reporting an error. • Increment the top pointer by one. • Add data item at top pointer The last two bullet points could happen in the opposite order depending on the stack implementation