Exploring Stacks in Data Structures

Exploring Stacks in Data Structures

12th Grade

15 Qs

quiz-placeholder

Similar activities

IBDP Computer Science: abstract data structures

IBDP Computer Science: abstract data structures

12th Grade

20 Qs

Quiz on Data Structure

Quiz on Data Structure

12th Grade

10 Qs

Data Structures using C

Data Structures using C

12th Grade - University

20 Qs

DATA STRUCTURE USING C

DATA STRUCTURE USING C

KG - University

15 Qs

Data Structures

Data Structures

10th Grade - University

18 Qs

class 12 18/2/2022

class 12 18/2/2022

12th Grade

10 Qs

Uji Pemahaman Stack dan Queue

Uji Pemahaman Stack dan Queue

12th Grade

10 Qs

Arrays, lists, tuples, stacks and queues

Arrays, lists, tuples, stacks and queues

11th - 12th Grade

14 Qs

Exploring Stacks in Data Structures

Exploring Stacks in Data Structures

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Tarak Nandy

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are the basic operations of a stack?

Push, Pop, Peek, IsEmpty

Insert, Delete, Top, IsFull

Add, Remove, Clear, Size

Enqueue, Dequeue, Front, IsNull

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Explain the Last In First Out (LIFO) principle.

Items are removed in the order they were added.

The last item added is the last one to be removed.

The first item added is the first one to be removed.

The last item added is the first one to be removed.

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the time complexity of push and pop operations in a stack?

O(n)

O(log n)

O(1)

O(n^2)

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

List three applications of stacks in computer science.

  1. 1. Network packet routing

  2. 2. Network message buffer

  3. 3. Print job processing

  1. 1. Memory allocation management

  2. 2. File management

  3. 3. CPU management

  1. 1. Data sorting algorithms

  2. 2. task scheduling

  3. 3. Disc Scedule

1. Function call management

2. Expression evaluation

3. Backtracking algorithms

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How can stacks be used in expression evaluation?

Stacks can only be used for sorting data.

Stacks can be used to convert and evaluate expressions in postfix notation.

Stacks can evaluate expressions in infix notation.

Stacks are not applicable in expression evaluation.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Describe how a stack can be implemented using an array.

A stack can be implemented using a linked list with no index tracking.

A stack can only be implemented using a queue.

A stack requires a fixed size and cannot grow dynamically.

A stack can be implemented using an array by using an index to track the top element and performing push, pop, and peek operations.

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are the advantages of using a linked list to implement a stack?

Fixed size allocation

Slower access times

Increased memory fragmentation

Dynamic sizing

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?