
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
BCA_DS

Quiz
•
University
15 questions
HackTrail

Quiz
•
University
20 questions
Data Structure

Quiz
•
University
10 questions
Quiz 1 - AK2 Section

Quiz
•
University
10 questions
UNIT-2 QUEUE

Quiz
•
University
15 questions
DATA STRUCTURES QUIZ

Quiz
•
University
10 questions
DAA Lesson 2 quiz

Quiz
•
University
15 questions
Qûîz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University