
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
15 questions
Assesmen Kognitif (XI)

Quiz
•
11th Grade - University
10 questions
Quiz despre Stiva si Coada - RO - No.2

Quiz
•
University
10 questions
Quiz-AIML

Quiz
•
University
20 questions
2.3.1 Graph Traversal & Path Finding Algorithms

Quiz
•
12th Grade - University
14 questions
Data Structure

Quiz
•
University
17 questions
QUEUE

Quiz
•
University
10 questions
Sumatif Akhir Informatika

Quiz
•
1st Grade - University
15 questions
Stack??

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University