Understanding Stacks and Queues

Understanding Stacks and Queues

University

10 Qs

quiz-placeholder

Similar activities

Stack

Stack

University

15 Qs

DS-U2-QUIZ2

DS-U2-QUIZ2

University

12 Qs

Data Structures

Data Structures

University

12 Qs

Pretest Tumpukan dan Antrean

Pretest Tumpukan dan Antrean

10th Grade - University

10 Qs

ROTC Make-up Quiz

ROTC Make-up Quiz

University

15 Qs

Quiz 2 DS1E

Quiz 2 DS1E

University

12 Qs

special

special

University

10 Qs

Data Structures

Data Structures

University

12 Qs

Understanding Stacks and Queues

Understanding Stacks and Queues

Assessment

Quiz

Computers

University

Easy

Created by

cssrcaidedkm cssrcaidedkm

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

What is the primary operation of a stack?

The primary operation of a stack is 'push' and 'pop'.

insert and delete

enqueue and dequeue

add and remove

2.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

How do you add an element to a stack?

Use the 'pop' operation to remove an element from a stack.

Use the 'push' operation to add an element to a stack.

Add an element by using the 'enqueue' operation.

Insert an element at the bottom of the stack.

3.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

What is the term for removing an element from a stack?

enqueue

push

dequeue

pop

4.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

What is the last element added to a stack called?

middle

bottom

base

top

5.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

What is the primary operation of a queue?

The primary operation of a queue is merging.

The primary operation of a queue is enqueue and dequeue.

The primary operation of a queue is sorting.

The primary operation of a queue is searching.

6.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

How do you add an element to a queue?

Insert the element in the middle of the queue.

Add the element to the front of the queue.

Use the enqueue operation to add an element to the back of the queue.

Use the dequeue operation to remove an element from the queue.

7.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

What is the term for removing an element from a queue?

stacking

enqueueing

removing

dequeueing

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?