wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

FINAL EXAM CC104

Total questions: 50

Worksheet time: 38mins

Name
Class
Date
1.

A student information system frequently performs insertions and deletions of student records while sequentially processing them. Random access is not required. Which data structure is the MOST efficient choice?

a)

Static Array

b)

Singly Linked List

c)

Stack

d)

Heap

2.

In choosing between an array and a linked list, which factor MOST directly affects insertion performance at the beginning of the structure?

a)

Data type consistency

b)

Contiguous memory requirement

c)

Sorting method used

d)

Time complexity notation

3.

Algorithm analysis focuses on asymptotic behavior mainly to:

a)

Measure exact execution time

b)

Account for all hardware constraints

c)

Ignore input size variation

d)

Compare growth rates independently of machine details

4.

In a worst-case scenario, Binary Search will terminate when:

a)

The target is at the first index

b)

The middle element is repeatedly selected

c)

The search space becomes empty

d)

The array becomes sorted

5.

Given an input list of n elements, what is the time complexity of Linear Search when the target is absent?

a)

O(1)

b)

O(log n)

c)

O(n)

d)

O(n²)

6.

Why is Worst-Case Analysis preferred in systems that require guaranteed response time?

a)

It reduces memory usage

b)

It reflects average performance

c)

It provides performance assurance under all conditions

d)

It simplifies algorithm implementation

7.

Which asymptotic notation provides a tight bound on algorithm performance?

a)

Big-O

b)

Omega

c)

Theta

d)

Logarithmic

8.

A data structure allows traversal in both forward and backward directions. Which additional memory requirement enables this feature?

a)

Contiguous storage

b)

Indexing

c)

Two pointers per node

d)

Recursive calls

9.

In which linked list variant does traversal never encounter a NULL reference?

a)

Singly linked list

b)

Doubly linked list

c)

Circular linked list

d)

Static linked list

10.

What is the primary limitation of linked lists compared to arrays?

a)

Fixed size

b)

Higher insertion cost

c)

No direct indexed access

d)

High memory consumption for data

11.

Attempting a POP operation on an empty stack results in:

a)

Stack overflow

b)

Stack underflow

c)

Memory leak

d)

Infinite loop

12.

Which real-world system MOST clearly demonstrates stack behavior?

a)

Customer service counter

b)

Job scheduling queue

c)

Function call execution

d)

Bank transaction ledger

13.

In which queue type are elements removed based on importance rather than arrival time?

a)

Linear queue

b)

Circular queue

c)

Priority queue

d)

Deque

14.

A circular queue is primarily used to:

a)

Eliminate overflow

b)

Reduce memory wastage

c)

Improve searching speed

d)

Maintain sorted order

15.

Binary Search is significantly more efficient than Linear Search because it:

a)

Uses recursion

b)

Requires less memory

c)

Eliminates unnecessary comparisons

d)

Divides the problem space at each step

16.

Binary Search fails on unsorted data because:

a)

The midpoint cannot be calculated

b)

The divide-and-conquer logic becomes invalid

c)

It requires additional memory

d)

It compares too many elements

17.

Despite its higher time complexity, Linear Search is preferred when:

a)

Data is large and static

b)

Data is sorted

c)

Data size is small or frequently modified

d)

Worst-case performance is critical

18.

Which sorting algorithm repeatedly selects the smallest element and places it in correct position?

a)

Bubble Sort

b)

Selection Sort

c)

Insertion Sort

d)

Heap Sort

19.

Which sorting algorithm performs best when the input list is nearly sorted?

a)

Quick Sort

b)

Heap Sort

c)

Insertion Sort

d)

Merge Sort

20.

Bubble Sort is inefficient for large datasets mainly due to:

a)

Excessive recursion

b)

High space complexity

c)

Repeated unnecessary comparisons

d)

Poor memory locality

21.

An algorithm that divides a list, recursively sorts sublists, and merges them is:

a)

Quick Sort

b)

Heap Sort

c)

Merge Sort

d)

Selection Sort

22.

The performance of Quick Sort is MOST affected by:

a)

Number of recursive calls

b)

Pivot element selection

c)

Auxiliary space

d)

Size of input

23.

Quick Sort degrades to O(n²) complexity when:

a)

Input size is small

b)

Data contains duplicates

c)

Poor pivot selection occurs repeatedly

d)

Recursion is removed

24.

Which sorting algorithm guarantees O(n log n) in best, average, and worst cases?

a)

Quick Sort

b)

Merge Sort

c)

Heap Sort

d)

Insertion Sort

25.

The main drawback of Merge Sort is:

a)

Instability

b)

High comparison count

c)

Additional memory requirement

d)

Poor performance on large data

26.

Heap Sort is considered memory-efficient because it:

a)

Is recursive

b)

Avoids comparisons

c)

Sorts in place

d)

Uses linked structures

27.

In a max-heap structure, the root node always stores the:

a)

Smallest element

b)

Median value

c)

Largest element

d)

Most recently added element

28.

Average-case analysis is important because it:

a)

Shows minimal execution time

b)

Reflects typical input behavior

c)

Guarantees execution limits

d)

Eliminates worst-case scenarios

29.

An algorithm with O(log n) complexity is considered highly scalable because:

a)

Execution time remains constant

b)

Input size has minimal effect on performance

c)

Memory usage is fixed

d)

Sorting is not required

30.

Which data structure is MOST suitable for managing recursive function calls?

a)

Queue

b)

Stack

c)

Tree

d)

Array

31.

Printer job scheduling best exemplifies which principle?

a)

LIFO

b)

FIFO

c)

Priority-based access

d)

Random access

32.

Random access is inefficient in linked lists because:

a)

Nodes are contiguous

b)

Index calculation is complex

c)

Each node must be traversed sequentially

d)

Memory is dynamically allocated

33.

Which operation is NOT directly supported by stacks?

a)

Push

b)

Pop

c)

Peek

d)

Arbitrary element access

34.

Which factor MOST influences choosing between array and linked list implementations?

a)

Data size variability

b)

Programming paradigm

c)

Sorting algorithm used

d)

Input data type

35.

In an iterative Binary Search implementation, space complexity is:

a)

O(n)

b)

O(log n)

c)

O(1)

d)

O(n log n)

36.

Binary Search is NOT recommended when:

a)

Data is sorted

b)

Dataset is large

c)

Insertions and deletions are frequent

d)

Fast search time is required

37.

Which sorting algorithm is typically the fastest on average for large datasets?

a)

Bubble Sort

b)

Insertion Sort

c)

Quick Sort

d)

Selection Sort

38.

Selection Sort remains inefficient despite fewer swaps because it:

a)

Requires extra memory

b)

Always performs O(n²) comparisons

c)

Is unstable

d)

Requires recursion

39.

Which data structure best models a social networking system?

a)

Stack

b)

Queue

c)

Tree

d)

Graph

40.

Hierarchical data such as file directories are best represented using:

a)

Graph

b)

Queue

c)

Stack

d)

Tree

41.

Data structures define ________, while algorithms define __________.

a)

Syntax, logic

b)

Data storage, data processing

c)

Memory, execution speed

d)

Hardware, software

42.

In real-time systems, which metric is most critical?

a)

Average-case performance

b)

Worst-case performance

c)

Best-case performance

d)

Space utilization

43.

Which array operation is MOST costly compared to linked lists?

a)

Access by index

b)

Traversal

c)

Insertion at the beginning

d)

Sorting

44.

Which sorting algorithm is NOT stable by default?

a)

Bubble Sort

b)

Insertion Sort

c)

Merge Sort

d)

Quick Sort

45.

Scalability of an algorithm refers to its ability to:

a)

Minimize memory usage

b)

Handle increasing input efficiently

c)

Eliminate recursion

d)

Simplify implementation

46.

Why is algorithm analysis performed before coding?

a)

To reduce programming effort

b)

To estimate performance and resource usage

c)

To eliminate errors

d)

To reduce syntax complexity

47.

Which data structure is best for implementing playlist navigation with previous and next controls?

a)

Stack

b)

Singly linked list

c)

Doubly linked list

d)

Queue

48.

A priority queue differs from a standard queue because it:

a)

Uses FIFO strictly

b)

Requires sorted input

c)

Dequeues elements based on priority

d)

Eliminates overflow

49.

Which concept BEST explains why efficient algorithms reduce operational cost?

a)

Reduced code length

b)

Lower resource consumption

c)

Faster compilation

d)

Smaller program size

50.

The ultimate goal of studying Data Structures and Algorithms in Information Systems is to:

a)

Learn programming syntax

b)

Design scalable, efficient, and reliable systems

c)

Replace hardware limitations

d)

Eliminate software errors