
Data Structures Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Graham Bland
FREE Resource
31 questions
Show all answers
1.
OPEN ENDED QUESTION
1 min • 1 pt
A hospital has asked for a program that will control the order in which the arrivals are seen in the accident and emergency department. (a) A priority queue has been chosen to store the arrival information. (i) State the property of a priority queue that makes it suitable for this application.
Evaluate responses using AI:
OFF
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A hospital has asked for a program that will control the order in which the arrivals are seen in the accident and emergency department. (a) A priority queue has been chosen to store the arrival information. (i) State the property of a priority queue that makes it suitable for this application.
It allows for constant time retrieval of the highest priority element.
It maintains the order of arrival for all elements.
It provides a way to sort elements in ascending order.
It ensures that all elements are processed in a first-come, first-served manner.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(ii) The priority queue is implemented using a circular queue. State an advantage of a circular queue which makes it more efficient in use of memory.
Efficient use of space by reusing empty slots
Faster insertion and deletion operations
Simpler implementation compared to linear queues
Better support for priority-based operations
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(b) A test version of the priority circular queue consists of 5 cells. Arrival information consists of a severity rating and a last name. The severity scale is 3 (least severe), 2 (moderately severe), and 1 (most severe). For example, Mr Jones has a severity rating of 2. His arrival record would be ‘2 Jones’. What is the result after the following operations?
Option A: 1 Smith, 2 Jones, 3 Brown
Option B: 2 Jones, 1 Smith, 3 Brown
Option C: 3 Brown, 2 Jones, 1 Smith
Option D: 1 Smith, 3 Brown, 2 Jones
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. A stack is an important data structure in computer science. Which of the following best defines the term stack?
A stack is a collection of elements with a Last In, First Out (LIFO) access policy.
A stack is a collection of elements with a First In, First Out (FIFO) access policy.
A stack is a type of queue used for breadth-first search.
A stack is a data structure used to store key-value pairs.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A stack is a last in first out data structure where new items are added to the top of the stack and items are removed from the top of the stack.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A call stack is used when subroutines are called. Which of the following items could each call stack frame hold?
Local variables
Return address
Function parameters
Global variables
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
Data Structures - Stacks

Quiz
•
12th Grade
35 questions
Hash Tables & Other Data Structures

Quiz
•
10th - 12th Grade
27 questions
Graphs

Quiz
•
9th - 12th Grade
30 questions
Cambridge Technical Unit 1 LO3

Quiz
•
12th Grade
26 questions
BERPIKIR KOMPUTASIONAL 2

Quiz
•
9th - 12th Grade
27 questions
SQL_kartkowka

Quiz
•
1st Grade - University
31 questions
Microsoft Excel Review

Quiz
•
9th - 12th Grade
30 questions
Data Structures and Algorithm

Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University