89. OCR A Level (H046-H446) SLR14 – 1.4 Data structures part 3 –

89. OCR A Level (H046-H446) SLR14 – 1.4 Data structures part 3 –

11th Grade

15 Qs

quiz-placeholder

Similar activities

Uji Pemahaman Rekursi

Uji Pemahaman Rekursi

11th Grade

20 Qs

Tes Diagnostik

Tes Diagnostik

9th - 12th Grade

10 Qs

Stacks

Stacks

KG - Professional Development

17 Qs

Stack in python

Stack in python

11th - 12th Grade

10 Qs

Assessment Questions for Informatics

Assessment Questions for Informatics

10th Grade - University

20 Qs

BK Kelas 9

BK Kelas 9

9th Grade - University

10 Qs

AP CSA Recursion

AP CSA Recursion

9th - 12th Grade

10 Qs

Sorting algorithms (Y11)

Sorting algorithms (Y11)

8th Grade - University

20 Qs

89. OCR A Level (H046-H446) SLR14 – 1.4 Data structures part 3 –

89. OCR A Level (H046-H446) SLR14 – 1.4 Data structures part 3 –

Assessment

Quiz

Computers

11th Grade

Medium

Created by

James Cole

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data structure is known as a LIFO structure?

Linked List

Stack

Queue

Array

Answer explanation

A LIFO structure is known as a Stack, where the last element added is the first one to be removed. Stacks follow the Last In First Out principle.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operation is used to add an item to the top of a stack?

Pop

Dequeue

Push

Enqueue

Answer explanation

To add an item to the top of a stack, the operation used is 'Push'.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you try to pop an item from an empty stack?

Queue Underflow

Queue Overflow

Stack Underflow

Stack Overflow

Answer explanation

Popping an item from an empty stack results in Stack Underflow, indicating that the stack is empty and no item can be removed.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a use case for stacks?

Process scheduling

Performing depth-first searches

Evaluating mathematical expressions

Tracking the flow of programs

Answer explanation

Process scheduling is NOT a use case for stacks as it is typically handled by other scheduling algorithms like round-robin or priority-based scheduling.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct term for adding an item to a queue?

Enqueuing

Popping

Pushing

Peeking

Answer explanation

The correct term for adding an item to a queue is 'Enqueuing'. This operation involves inserting an element at the rear end of the queue.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure operates on a FIFO basis?

Tree

Array

Stack

Queue

Answer explanation

A Queue operates on a FIFO (First In, First Out) basis, where the first element added is the first to be removed. This makes Queue the correct choice for the given question.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a stack overflow?

Adding an item to a full stack

Removing an item from an empty stack

Removing the bottom item of the stack

Looking at the top item of the stack

Answer explanation

A stack overflow occurs when an item is added to a full stack, causing it to exceed its capacity and resulting in a memory error.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?