110011001100110011

110011001100110011

Professional Development

40 Qs

quiz-placeholder

Similar activities

Davinci Resolve 17 Fusion 101

Davinci Resolve 17 Fusion 101

11th Grade - Professional Development

45 Qs

Java Collections Trivia

Java Collections Trivia

Professional Development

45 Qs

Stack overview

Stack overview

Professional Development

41 Qs

Faculty RecruitmentMarch 2020 backup

Faculty RecruitmentMarch 2020 backup

Professional Development

36 Qs

DS QUIZ 01

DS QUIZ 01

Professional Development

35 Qs

Technical MCQs

Technical MCQs

Professional Development

35 Qs

Non linear data structure

Non linear data structure

Professional Development

35 Qs

DS and DAA Comprehensive Viva

DS and DAA Comprehensive Viva

University - Professional Development

40 Qs

110011001100110011

110011001100110011

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Michi koh

Used 1+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the basic operations of a stack?

Add, Remove, Check, and Clear

Insert, Delete, View, and Count

The basic operations of a stack are Push, Pop, Peek, and IsEmpty.

Enqueue, Dequeue, Top, and IsFull

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you implement a stack using an array?

A stack can only be implemented using linked lists.

You can only perform enqueue and dequeue operations on a stack.

A stack requires a fixed size and cannot grow dynamically.

A stack can be implemented using an array by maintaining an index for the top element and providing push, pop, and peek operations.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

O(1)

O(log n)

O(n)

O(n^2)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can you explain a real-world application of stacks?

Web browser history management.

Data encryption techniques

File storage management

Task scheduling in operating systems

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens during a stack overflow?

A stack overflow occurs when the memory is completely freed up.

A stack overflow happens when the call stack exceeds its allocated size, often due to deep recursion or excessive function calls.

A stack overflow is caused by insufficient disk space.

A stack overflow happens when the CPU runs out of power.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is stack underflow and when does it occur?

Stack underflow occurs when an item is added to a full stack.

Stack underflow is the condition that occurs when trying to pop an item from an empty stack.

Stack underflow is when the stack size exceeds its limit.

Stack underflow happens when the top item is removed from a non-empty stack.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you implement a stack using linked lists?

Implement a stack using a queue to handle push and pop operations.

Create a stack by using a simple variable to hold the top element.

Use an array to store elements and manage operations with a fixed size.

Implement a stack using a linked list by creating a Node class for elements and a Stack class to manage push, pop, and peek operations.

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?