Data Structures (STACKs)

Data Structures (STACKs)

University

15 Qs

quiz-placeholder

Similar activities

ARCH ORG

ARCH ORG

University

10 Qs

DS_16032020

DS_16032020

University

10 Qs

8085 INSTRUCTION - DATA TRANSFER AND ARITHMETIC

8085 INSTRUCTION - DATA TRANSFER AND ARITHMETIC

University

15 Qs

Micro Controller ( Include SFR, IO Pin, Addressing Modes)

Micro Controller ( Include SFR, IO Pin, Addressing Modes)

University

10 Qs

Week 7 - Activity #1 (CC104)

Week 7 - Activity #1 (CC104)

University

20 Qs

CodeMavarick

CodeMavarick

University

20 Qs

Exploring C++, Data Structures, and HTML

Exploring C++, Data Structures, and HTML

12th Grade - University

10 Qs

AlgoWhiz Quiz

AlgoWhiz Quiz

University

15 Qs

Data Structures (STACKs)

Data Structures (STACKs)

Assessment

Quiz

Other

University

Easy

Created by

Nathaniel Mensah

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which principle does a stack follow?

First-In, First-Out (FIFO)

Last-In, First-Out (LIFO)

Random Access

Middle-In, Middle-Out

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where do insertion and removal of elements take place in a stack?

Bottom

Middle

Top

Random location

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term for adding an element to a stack?

 Pop

Push

Top

Empty

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Push

Pop

Top

 IsEmpty

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation checks if the stack is empty?

Push

Pop

Top

IsEmpty

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the size() operation on a stack return?

The top element

True if the stack is empty, false otherwise

The number of elements in the stack.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for push and pop operations on a stack?

O(n)

O(log n)

O(1)

O(n^2)

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?