DSA (QUIZ 2) Stacks and Queues Quiz

DSA (QUIZ 2) Stacks and Queues Quiz

University

15 Qs

quiz-placeholder

Similar activities

Advanced Java UNIT-2(J2EE)-Quiz-4

Advanced Java UNIT-2(J2EE)-Quiz-4

University

20 Qs

HTML QUIZ

HTML QUIZ

6th Grade - University

13 Qs

Entity Relationship Modeling Quiz

Entity Relationship Modeling Quiz

University

20 Qs

CSS Image Manipulation Quiz

CSS Image Manipulation Quiz

9th Grade - University

15 Qs

PDM - LS01 - Quiz 2 - Selection

PDM - LS01 - Quiz 2 - Selection

University

10 Qs

Basic HTML

Basic HTML

University

20 Qs

Python Library Routines Quiz

Python Library Routines Quiz

10th Grade - University

18 Qs

Assesment Informatika Kelas 8 Bab Berpikir Komputasional

Assesment Informatika Kelas 8 Bab Berpikir Komputasional

8th Grade - University

11 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 3+ 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?