Stacks and Queues

Stacks and Queues

University

12 Qs

quiz-placeholder

Similar activities

Quis Administrasi Sistem Jaringan

Quis Administrasi Sistem Jaringan

University

15 Qs

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

Algorithm analysis: divide & conquer theory

Algorithm analysis: divide & conquer theory

University

10 Qs

Soal SKD

Soal SKD

University - Professional Development

10 Qs

L1 - Computer Networks

L1 - Computer Networks

University

13 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Logic Based Testing

Logic Based Testing

University

15 Qs

Data Structures: Linked Lists and Hashtables

Data Structures: Linked Lists and Hashtables

11th Grade - University

14 Qs

Stacks and Queues

Stacks and Queues

Assessment

Quiz

Computers

University

Hard

Created by

Maddie Mihevc

Used 23+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A stack is

interface

class

abstract class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A queue is

interface

class

abstract class

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element in the stack?

stack.pop()

stack.poll()

stack.element()

stack.peek()

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

How do you access the first element in a queue?

queue.pop()

queue.poll()

queue.element()

queue.peek()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does the stack look like after the code runs? [bottom --> top]

[12, 9, 6, 3, 0]

[0, 3, 6, 9, 12, 16, 21]

[0, 3, 6, 9, 12]

[21, 16, 12, 9, 6, 3, 0]

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is printed after the code runs?

[8, 16, 3, 7]

[7, 3, 1, 2, 4, 8]

[2, 4, 8, 16, 3, 7]

[4, 16, 3, 7]

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the prefix expression for the following infix expression: A + (B * C)

A B C * +

+ A * B C

+ * A B C

* + A B C

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers