DSA (QUIZ 2) Stacks and Queues Quiz

DSA (QUIZ 2) Stacks and Queues Quiz

University

15 Qs

quiz-placeholder

Similar activities

Queue

Queue

University

10 Qs

Quiz Struktur Data

Quiz Struktur Data

University

10 Qs

 uji coba Strategi Algoritma dan Pemrograman

uji coba Strategi Algoritma dan Pemrograman

11th Grade - University

15 Qs

Tut_03

Tut_03

University

12 Qs

PPL (QUIZ 6) Memory Management Quiz

PPL (QUIZ 6) Memory Management Quiz

University

20 Qs

Round3Quiz

Round3Quiz

University

10 Qs

ITEC101 - Lesson 1 - Quiz 1

ITEC101 - Lesson 1 - Quiz 1

University

15 Qs

Session 02

Session 02

University

15 Qs

DSA (QUIZ 2) Stacks and Queues Quiz

DSA (QUIZ 2) Stacks and Queues Quiz

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

M'Alou Gonzales

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a stack?

A collection of elements identified by an index.

A linear data structure that follows First In, First Out (FIFO) principle.

A collection of nodes with pointers.

A linear data structure that follows Last In, First Out (LIFO) principle.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation is not typically associated with stacks?

Push

Pop

Enqueue

Peek

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which order are elements accessed in a queue?

Random order

Last In, First Out (LIFO)

First In, First Out (FIFO)

In reverse order

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operations is used to add an element to a stack?

Pop

Enqueue

Push

Peek

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the dequeue operation do in a queue?

Adds an element to the end of the queue

Removes an element from the front of the queue

Adds an element to the front of the queue

Removes an element from the end of the queue

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an application of stacks?

Managing browser history

Printer job scheduling

Task scheduling in operating systems

File download management

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following sequence of operations on an empty stack? Push(1), Push(2), Pop(), Push(3), Pop()

1

2

3

Stack is empty

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?