Stacks

Stacks

University

15 Qs

quiz-placeholder

Similar activities

DataStructure

DataStructure

University

15 Qs

Stacks

Stacks

KG - Professional Development

17 Qs

Stacks and Queues Quiz

Stacks and Queues Quiz

University

15 Qs

stack

stack

University

10 Qs

Assessment Questions for Informatics

Assessment Questions for Informatics

10th Grade - University

20 Qs

Data Structures Quiz-2

Data Structures Quiz-2

University

10 Qs

CCT1 Data Structure B.Sc.II

CCT1 Data Structure B.Sc.II

University

11 Qs

DATA STRUCTURE QUIZ 1- INTRO TO DATA STRUCTURES

DATA STRUCTURE QUIZ 1- INTRO TO DATA STRUCTURES

University

10 Qs

Stacks

Stacks

Assessment

Quiz

Computers

University

Medium

Created by

FAKHRUL ZAKI

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the principle that a stack data structure follows?

Last In Last Out (LILO)

First In Last Out (FILO)

Last In First Out (LIFO)

First In First Out (FIFO)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Pop

Add

Insert

Push

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term for the end of the stack from which elements are removed?

Top of stack

Bottom of stack

Inactive end

Active end

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT an application of stacks?

Heap memory management

Managing data in recursion

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 current location of the top element

The bottom of the stack

The number of elements in the stack

The maximum size of the stack

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

The stack becomes full

The top remains unchanged

An error occurs

The stack overflows

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following postfix expression: 'abc*+d-'?

a*b+c-d

b*(c+a)-d

a+(b*c)-d

((b*c)+a)-d

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?