DS ASSIGNMENT1

DS ASSIGNMENT1

University

15 Qs

quiz-placeholder

Similar activities

DSA Quiz 2

DSA Quiz 2

University

18 Qs

SD_Stack&Queue

SD_Stack&Queue

University

10 Qs

Data Structure

Data Structure

University

20 Qs

The DSA Adventure - Day 5

The DSA Adventure - Day 5

University

12 Qs

DSA Launchpad 2.0

DSA Launchpad 2.0

University

10 Qs

Data Structure With C++

Data Structure With C++

University

20 Qs

Data Structures

Data Structures

University

12 Qs

Pretest Tumpukan dan Antrean

Pretest Tumpukan dan Antrean

10th Grade - University

10 Qs

DS ASSIGNMENT1

DS ASSIGNMENT1

Assessment

Quiz

Computers

University

Medium

Created by

AKILARANI M

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Are stacks FIFO or FILO?
FILO
FIFO
LIFO
LILO

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many stacks are needed to implement a queue. Consider the situation where no other data structure like arrays, linked list is available to you.

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about linked list implementation of queue?

In push operation, if new nodes are inserted at the beginning of linked list, then in pop operation, nodes must be removed from end.

In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be removed from the beginning.

Both of the above

None of the above

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The five items: A, B, C, D, and E are pushed in a stack, one after other starting from A. The stack is popped four items and each element is inserted in a queue. The two elements are deleted from the queue and pushed back on the stack. Now one item is popped from the stack. The popped item is

A

B

C

D

E

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider the following operations performed on a stack of size 5 : Push (a); Pop() ; Push(b); Push(c); Pop(); Push(d); Pop();Pop(); Push (e) Which of the following statements is correct?

Underflow occurs

Stack operations are performed smoothly

Overflow occurs

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not an inherent application of stack?

Implementation of recursion

Evaluation of a postfix expression

Job scheduling

Reverse a string

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 7. Name the three functions of a stack data structure.


push, pop, peek

push, pop, seek

push, pop

None of the above

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?