A-Level Computer Science Data Structures Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Alexander Woolston
Used 5+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A software system manages a large number of tasks that need to be processed in the order they arrive. However, some tasks are designated as 'high priority' and should be processed before any 'normal priority' tasks, regardless of their arrival time. Within the high-priority tasks themselves, the processing order is still based on arrival time. Which of the following data structures, or combination of data structures, would be most appropriate to manage the tasks in this system efficiently?
A single queue
A stack
A priority queue
Two queues, one for high priority and one for normal priority, processed in that order.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a scenario where you are implementing an 'undo' functionality in a text editor. You need to store the sequence of actions performed by the user so that they can be reversed one by one, starting with the most recent action. Which data structure is the most suitable for this purpose?
A queue
A linked list
A stack
An array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A directed graph is being used to represent a network of one-way streets in a city. You need to find the shortest path from a starting intersection to all other reachable intersections. Which algorithm is most appropriate for this task when edge weights represent the time taken to travel along a street (assume non-negative weights)?
Depth-First Search (DFS)
Breadth-First Search (BFS)
Dijkstra's Algorithm
A* Search
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are designing a system to store a dynamic collection of elements where insertions and deletions need to be performed frequently and efficiently at arbitrary positions within the collection. The order of elements is important. Which data structure would be the most efficient choice in terms of time complexity for these operations in the average case, compared to a static array?
Stack
Queue
Singly Linked List
Hash Table
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A binary search tree is a hierarchical data structure that allows for efficient searching, insertion, and deletion of elements while maintaining a sorted order. Which of the following statements about a binary search tree is FALSE?
The left subtree of a node contains only nodes with keys less than the node's key.
The right subtree of a node contains only nodes with keys greater than the node's key.
A pre-order traversal visits the root node, then the left subtree, then the right subtree.
In the worst-case scenario, searching in a binary search tree can always achieve a time complexity of O(log n).
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A hash table is used to store key-value pairs, providing fast average-case lookups. However, collisions can occur when two different keys hash to the same index. Which of the following is a common method for resolving collisions in a hash table?
Rehashing the entire table when a collision occurs.
Using a separate array to store colliding elements at the same index.
Storing colliding elements in a linked list at the calculated index (chaining).
Discarding the new element that causes a collision.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a circular queue implemented using a fixed-size array. The queue has a front pointer and a rear pointer. The queue is initially empty. Elements are enqueued and dequeued. Which condition correctly indicates that the circular queue is FULL?
front == rear
front == (rear + 1) mod size
rear == (front - 1) mod size
front > rear
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Internet seguro
Quiz
•
8th Grade - University
9 questions
CHAPTER 5 ONLINE QUIZ
Quiz
•
University
12 questions
Javascript
Quiz
•
University
16 questions
Quiz on List and Tuples
Quiz
•
University
10 questions
Baze de date-Design
Quiz
•
12th Grade
9 questions
Los periféricos del computador
Quiz
•
1st Grade - Professio...
14 questions
Computing figures
Quiz
•
4th - 12th Grade
15 questions
Data Mining - Classification Mining
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
