Data Structures & Operations
Abstract Data Types (ADT)
Algorithm & Complexity
ARRAYS
Linked List, Stack, Queue
100

Name two basic operations performed on data structures.

Insertion and deletion

100

Give one example of an ADT.

Stack   

100

What is an algorithm?

A finite set of steps used to solve a problem.  

100

What is an array?

An array is a collection of elements stored in contiguous memory locations.

100

What is a linked list?

A collection of nodes where each node contains data and a link.

200

What operation is used to locate an element in a data structure?

Searching.

200

What are the two main components of an ADT?

Data & Operations

200

What does algorithm complexity measure?

The efficiency of an algorithm.  

200

How are array elements accessed?

Using an index value

200

What is stack overflow?

Attempting to push an element into a full stack.

300

What operation arranges data in a specific order?

sorting

300

Which ADT follows the LIFO principle?

Stack

300

What is time complexity?

The amount of time an algorithm takes to run as input size increases.

300

What is the index of the first element in an array?

0

300

What is the operation used to insert an element in a queue?

Enqueue.

400

What operation combines two data structures into one? structure.

Merging

400

Which ADT follows the FIFO principle?

Queue

400

What is space complexity?

The amount of memory an algorithm uses.

400

What is the main limitation of arrays?

Fixed size

400

What is queue overflow?

Inserting an element into a full queue.

500

Which operation removes an element from a data structure?

Deletion

500

How is an ADT different from a data structure?

ADT defines what operations are performed, while data structure defines how they are implemented.

500

What is time–space trade-off?

Using more memory to reduce execution time or vice versa.

500

Why is insertion in the middle of an array inefficient?

Because elements must be shifted.

500

List any 2 examples of Data Structure

Arrays,tree,graph,stack,queue