Topic 3: Stacks

Topic 3: Stacks

12th Grade

11 Qs

quiz-placeholder

Similar activities

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

หน่วยที่ 1 ความรู้พื้นฐานการจัดการ ข้อมูลขนาดใหญ่ (Big Data)

หน่วยที่ 1 ความรู้พื้นฐานการจัดการ ข้อมูลขนาดใหญ่ (Big Data)

9th - 12th Grade

15 Qs

ONLINE Quiz - Computer Hardware Basics (COMSYS 1)

ONLINE Quiz - Computer Hardware Basics (COMSYS 1)

12th Grade

15 Qs

Know thy Peer-to-Peer

Know thy Peer-to-Peer

12th Grade

10 Qs

TCP/IP & other protocols [A Level]

TCP/IP & other protocols [A Level]

12th Grade

14 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Topic 3: Stacks

Topic 3: Stacks

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

najihah ibrahim

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the principle that a stack data structure follows?

Last Come Last Served (LCLS)

Last In First Out (LIFO)

First In First Out (FIFO)

First Come First Served (FCFS)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation is used to add an element to a stack?

Insert

Push

Add

Pop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term for the end of the stack where elements are added or removed?

Top of stack

End of stack

Middle of stack

Bottom of stack

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT an application of stacks?

Managing data in recursion

Heap memory management

Sorting algorithms

Simulation of people entering a lift

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In stack implementation using arrays, what does 'top' represent?

The maximum size of the stack

The current location of the last element

The first element in the stack

The total number of elements in the stack

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

It returns null

It does nothing

It throws an error

It returns the last element

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following operation: PUSH(5) on an empty stack?

5

Stack is empty

Stack is full

Error

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?