
DS ASSIGNMENT1

Quiz
•
Computers
•
University
•
Medium
AKILARANI M
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
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
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
Similar Resources on Wayground
20 questions
Data Structures and Algorithms Quiz

Quiz
•
University
14 questions
Data Structure

Quiz
•
University
12 questions
Data Structures

Quiz
•
University
17 questions
QUEUE

Quiz
•
University
15 questions
Stack??

Quiz
•
University
12 questions
Quiz 2 - Stack

Quiz
•
University
20 questions
UTS Algoritma dan Struktur Data

Quiz
•
University
10 questions
Sumatif Akhir Informatika

Quiz
•
1st Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade