SlideShare a Scribd company logo
SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
1. Which of the following points
is/are true about Link List data
structure when it is comparedwith
array?
a) Arrays have better cache locality
that can make them better in terms of
performance
b) It is easy to insert and delete
elements in Linked List
c) Random access is not allowed in
typical implementation of Linked
Lists
d) All of the above
Ans: D
2. Which of the following
algorithms canbe used to sort a
random link list with minimum
time complexity?
a) Insertion Sort
b) Quick Sort
c) Merge Sort
d) Heap Sort
Ans: C
3. Which one of the following is the
application of stack data structure?
a) Managing function calls
b) The stockspan problem
c) Arithmetic expression evolution
d) All of the above
Ans:D
4. Which of the following is true
about linked list implementation of
stack?
a) In push operation, if new nodes are
inserted at the beginning of link list,
then in poop operation, nodes must be
removed from end.
b) In push operation, if new nodes are
inserted at the end, then in pop
operation, nodes must be removed
from beginning.
c) Both of the above
d) None of the above.
Ans: D
5. Which one of the following is an
application of Queue data
structure?
a) When a resource is shared among
multiple consumers
b) When data is transferred
asynchronously between 2 processes
c) Load balancing
d) All of the above
Ans: D
6. How many stacks are neededto
implement a queue. Considerthe
situation where no other data
structure like arrays, linked list is
available to you.
a) 1
b) 2
SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
c) 3
d) 4
Ans: B
7. How many queues are needed to
implement a stack. Considerthe
situation where no other data
structure like arrays, linked list is
available to you.
a) 1
b) 2
c) 3
d) 4
Ans: B
8. A priority queue can efficiently
implemented using which of the
following data structures? Assume
that the number of insert and peek
(operation to see the current highest
priority item) and extraction
(remove the highestpriority item)
operations are almost same.
a) Array
b) Link List
c) Heap data structures like binary
heap, Fibonacciheap
d) None of the above
Ans: C
9. Which of the following is true
about Binary Trees
a) Every Binary Tree is either
complete or full
b) Every complete binary tree is also a
full binary tree
c) Every full binary tree is also a
complete binary tree
d) None of the above
Ans: D
10. The maximum number of
binary trees that can be formed
with three unlabeled nodes is:
a) 1
b) 5
c) 4
d) 3
Ans: B
11. How many distinct binary
searchtrees canbe createdout of 4
distinct keys?
a) 4
b) 14
c) 24
d) 42
Ans: B
12. One Key reasonwhy developers
have difficulty testing their own
work is:
a) Lack of technical documentation
b) Lack of test tools on the market for
developer’s
c) Lack of Objectivity
d) Lack of training
Ans: C
SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
13. What is the worstcase run-time
complexity of binary search
algorithm?
a) O(n2)
b) O(nlogn)
c) O(n3)
d) O(n)
Ans: D
14. Postfix expressionis just a
reverse of prefix expression.
a) True
b) False
Ans: B
15. Quick sort algorithm is an
example of?
a) Greedy Approach
b) Improved binary search
c) Dynamic Programming
d) Divide & Conquer
Ans: D
16. Visiting root node after visiting
left and right sub-trees is called
a) In-order traversal
b) Pre-order traversal
c)Post-ordertraversal
Ans: C
17. Time complexity of Depth First
Traversal of is?
a) Θ(|V|+|E|)
b) Θ(|V||)
c) Θ(|E|)
d) Θ(|V|*|E|)
Ans: A
18. If queue is implemented using
arrays, what would be the worst
run time complexity of queue and
dequeue operation?
a) O(n), O(n)
b) O(n), O(1)
c) O(1), O(n)
d) O(1), O(1)
Ans: D
19. Towerof Hanoi is an example
of:
a) Divide & Conquer
b) Recursive approach
c) Option B but not option A
d) Both A & B
Ans: D
20. A Pivot element to partition
unsorted list is used in:
a) Merge Sort
b) Quick Sort
c) Insertion Sort
d) Selection Sort
Ans: B
SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
21. A stable algorithm -
a) Doesn’t crash
b) Doesn’t run out of memory
c) Doesn’t change the sequence of
appearance of elements
d) Doesn’t existss
Ans: C
22. What is the time complexity of
Build Heap operation. Build Heap
is used to build a max(or min)
binary heap from a given array.
Build Heap is used in Heap Sort as
a first step for sorting.
a) O(nlogn)
b) O(n2)
c) O(logn)
d) O(n)s
Ans: D
23. What is the time complexity of
Build Heap operation. Build Heap
is used to build a max(or min)
binary heap from a given array.
Build Heap is used in Heap Sort as
a first step for sorting.
a) O(nlogn)
b) O(n2)
c) O(logn)
d) O(n)s
Ans: D
24. A max-heap is a heap where the
value of each parent is greater than
or equal to the values of its
children. Which of the following is a
max-heap?
Ans: B
25. In a binary max heap containing
n numbers, the smallest element
can be found in time
a) O(n)
b) O(logn)
c) O(loglogn)
d) O(1)
Ans: A
26. Given two max heaps of size n
each, what is the minimum possible
time complexity to make a one max-
heap of size from elements of two
max heaps?
a) O(nlogn)
b) O(nloglogn)
SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
c) O(n)
d) O(nlogn)
Ans: C
27. Which of the following Binary
Min Heap operation has the highest
time complexity?
a) Inserting an item under the
assumption that the heap has capacity
to accommodate one more item
b) Merging with another heap
c) O(n)
d) O(nlogn)
Ans: C
28. How is Data in a Queue
accessed?
a) First in First out
b) First in Last out
c) Last in First out
d) None of these
Ans: A
29. An Adjacency matrix
representation of a graph cannot
contain information of:
a) nodes
b) edges
c) direction of edges
d) parallel edges
Ans: D
30. Which of the following is/are the
levels of implementation of data
structure:
a) Abstract level
b) Application level
c) Implementation level
d) All of the above
Ans: D
31. A linear collection of data
elements where the linear node is
given by means of pointer is called:
a) Linked List
b) node list
c) Primitive list
d) None of these
Ans: A
32. …………. Is not an operation
performed on linear list.
a) Insertion
b) Insertion & Deletion
c) Deletion & Traversal
d) None of the above
Ans: D
33. Which is the application of
stack?
a) Function calls
b) Large number arithmetic
c) Evaluation of arithmetic
expressions
d) All of the above
Ans: D
SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
34. …………. Is a pile in which
items are added at one end and
removed from the other.
a) Stack
b) Queue
c) List
d) None of the above
Ans: B
35. Which of the following is the
type of the queue?
a) Ordinary
b) Single ended queue
c) Circular Queue
d) Priority Queue
Ans: B
36. ……….. is not the component of
data structure.
a) Operations
b) Storage Structures
c) Algorithms
d) None of the above
Ans: D
37. The property of binary tree is
a) The first subset is called left
subtree
b) The second subtree is called right
subtree
c) The root cannot contain NULL
d) The right subtree can be empty
Ans: D
38. Representation of Data
Structure in memory is known as
a) recursive
b) abstract data type
c) storage structure
d) file structure
Ans: B
39. Inserting an item into the stack
when stack is not full is called
………. Operation and deletion of
item form the stack is not empty is
called ……. Operation?
a) Push, Pop
b) pop, push
c) insert, delete
d) delete, insert
Ans: A
40. ………. Is a directed tree in
which outdegree of eachnode is less
than or equal to two
a) Unary tree
b) Ternary tree
c) Binary tree
d) Both B and C
Ans: C
41. ………. Level is where the
model becomes compatible
executable code.
a) Abstract level
b) Application level
SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
c) Implementation level
d) All of the above
Ans: C
42. A binary search tree whose left
subtree and right subtree differ in
height by at most 1 unit is called.
a) AVL tree
b) Red Black tree
c) Lemma
d) None of the above
Ans: A
43. …………. Is very useful in
situation when data have to stored
and then retrieved in reverse order.
a) Stack
b) Queue
c) List
d) Link List
Ans: A
44. Stack is also called as?
a) Last in First out
b) First in Last out
c) Last in last out
d) First in first out
Ans: A
45. Quick sort is also known as?
a) merge sort
b) heap sort
c) bubble sort
d) none of these
Ans: D
46. Any node is the path from the
root to the node is called?
a) Successor node
b) Ancestor node
c) Internal node
d) None of the above
Ans: B
47. Which of the following is not the
part of ADT description?
a) Data
b) Operations
c) Both of the above
d) None of the above
Ans: D
48. The best average behavior is
shown by
a) Quick sort
b) Merge sort
c) Insertion sort
d) Heap sort
Ans: A
49. The extra key inserted at the
end of the array is called as.
a) End key
b) Stop key
c) Sentinel
d) Transposition
Ans: C
SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
50. The goal of hashing is to
produce a search that takes
a) O(1) time
b) O(n2) time
c) O(logn) time
d) O(nlogn) time
Ans: A

More Related Content

What's hot

200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)
Ankit Dubey
 
NET_Solved ans
NET_Solved ansNET_Solved ans
NET_Solved ans
Farhana Sathath
 
GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004
Rohit Garg
 
Cs101 endsem 2014
Cs101 endsem 2014Cs101 endsem 2014
Cs101 endsem 2014
RamKumar42580
 
Ugcnet4 u
Ugcnet4 uUgcnet4 u
Ugcnet4 usadhi
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years Papers
Rahul Jain
 
Lgm pakdd2011 public
Lgm pakdd2011 publicLgm pakdd2011 public
Lgm pakdd2011 publicYasuo Tabei
 
Gate Computer Science Solved Paper 2007
Gate Computer Science Solved Paper 2007 Gate Computer Science Solved Paper 2007
Gate Computer Science Solved Paper 2007
Rohit Garg
 
1
11
1st Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
1st  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...1st  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
1st Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Building Ontologies from Multiple Information Sources
Building Ontologies from Multiple Information SourcesBuilding Ontologies from Multiple Information Sources
Building Ontologies from Multiple Information Sources
Raji Ghawi
 
2nd Semester M Tech: CMOS VLSI Design (June-2015) Question Papers
2nd Semester M Tech: CMOS VLSI Design (June-2015) Question Papers2nd Semester M Tech: CMOS VLSI Design (June-2015) Question Papers
2nd Semester M Tech: CMOS VLSI Design (June-2015) Question Papers
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
[Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014][Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014]
Mumbai B.Sc.IT Study
 
2015 16combinepdf
2015 16combinepdf2015 16combinepdf
2015 16combinepdf
madhesi
 
Adobe
AdobeAdobe
Cs 2001
Cs 2001Cs 2001
Cs 2001
Ravi Rajput
 
Otter 2016-11-14-ss
Otter 2016-11-14-ssOtter 2016-11-14-ss
Otter 2016-11-14-ss
Ruo Ando
 
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPEREC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
VISHNUPRABHANKAIMAL
 

What's hot (20)

200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)
 
NET_Solved ans
NET_Solved ansNET_Solved ans
NET_Solved ans
 
1st Semester M Tech Computer Science and Engg (Dec-2013) Question Papers
1st Semester M Tech Computer Science and Engg  (Dec-2013) Question Papers 1st Semester M Tech Computer Science and Engg  (Dec-2013) Question Papers
1st Semester M Tech Computer Science and Engg (Dec-2013) Question Papers
 
GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004
 
Cs101 endsem 2014
Cs101 endsem 2014Cs101 endsem 2014
Cs101 endsem 2014
 
Ugcnet4 u
Ugcnet4 uUgcnet4 u
Ugcnet4 u
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years Papers
 
Lgm pakdd2011 public
Lgm pakdd2011 publicLgm pakdd2011 public
Lgm pakdd2011 public
 
Gate Computer Science Solved Paper 2007
Gate Computer Science Solved Paper 2007 Gate Computer Science Solved Paper 2007
Gate Computer Science Solved Paper 2007
 
1
11
1
 
Lgm saarbrucken
Lgm saarbruckenLgm saarbrucken
Lgm saarbrucken
 
1st Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
1st  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...1st  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
1st Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
 
Building Ontologies from Multiple Information Sources
Building Ontologies from Multiple Information SourcesBuilding Ontologies from Multiple Information Sources
Building Ontologies from Multiple Information Sources
 
2nd Semester M Tech: CMOS VLSI Design (June-2015) Question Papers
2nd Semester M Tech: CMOS VLSI Design (June-2015) Question Papers2nd Semester M Tech: CMOS VLSI Design (June-2015) Question Papers
2nd Semester M Tech: CMOS VLSI Design (June-2015) Question Papers
 
[Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014][Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014]
 
2015 16combinepdf
2015 16combinepdf2015 16combinepdf
2015 16combinepdf
 
Adobe
AdobeAdobe
Adobe
 
Cs 2001
Cs 2001Cs 2001
Cs 2001
 
Otter 2016-11-14-ss
Otter 2016-11-14-ssOtter 2016-11-14-ss
Otter 2016-11-14-ss
 
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPEREC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
 

Similar to Data structure

Ds qb 2021 rma
Ds qb 2021 rmaDs qb 2021 rma
Ds qb 2021 rma
ARAVINDRM2
 
300+ top data structures and algorithms mc qs pdf 2020
300+ top data structures and algorithms mc qs pdf 2020300+ top data structures and algorithms mc qs pdf 2020
300+ top data structures and algorithms mc qs pdf 2020
tadeseguchi
 
Data structure part 2
Data structure part  2Data structure part  2
Data structure part 2
Knowledge Center Computer
 
this pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming studentsthis pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming students
pavan81088
 
DS Q&A
DS Q&ADS Q&A
DS Q&A
zzzubair
 
MCQs on Stacks.pdf
MCQs on Stacks.pdfMCQs on Stacks.pdf
MCQs on Stacks.pdf
ahsaan3123
 
MCQs on Stacks.pdf
MCQs on Stacks.pdfMCQs on Stacks.pdf
MCQs on Stacks.pdf
ahsaan3123
 
Dat 305 dat305 dat 305 education for service uopstudy.com
Dat 305 dat305 dat 305 education for service   uopstudy.comDat 305 dat305 dat 305 education for service   uopstudy.com
Dat 305 dat305 dat 305 education for service uopstudy.com
ULLPTT
 
Data Structure.pdf
Data Structure.pdfData Structure.pdf
Data Structure.pdf
IT Eagers
 
Gate-Cs 1999
Gate-Cs 1999Gate-Cs 1999
Gate-Cs 1999
Ravi Rajput
 
Cplus plus abd datastructure
Cplus plus abd datastructureCplus plus abd datastructure
Cplus plus abd datastructure
prabhatjon
 
Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...
Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...
Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...
sethuraman R
 
Gate-Cs 1995
Gate-Cs 1995Gate-Cs 1995
Gate-Cs 1995
Ravi Rajput
 
DS MCQS.pptx
DS MCQS.pptxDS MCQS.pptx
DS MCQS.pptx
BoomijaIT
 
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithms
Mohammad Usman
 
Data structure part 4
Data structure part  4Data structure part  4
Data structure part 4
Knowledge Center Computer
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1 UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
Knowledge Center Computer
 
Gate-Cs 1998
Gate-Cs 1998Gate-Cs 1998
Gate-Cs 1998
Ravi Rajput
 
PGCET Computer science 2017 question paper
PGCET Computer science 2017 question paperPGCET Computer science 2017 question paper
PGCET Computer science 2017 question paper
Eneutron
 
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQsStd 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Nuzhat Memon
 

Similar to Data structure (20)

Ds qb 2021 rma
Ds qb 2021 rmaDs qb 2021 rma
Ds qb 2021 rma
 
300+ top data structures and algorithms mc qs pdf 2020
300+ top data structures and algorithms mc qs pdf 2020300+ top data structures and algorithms mc qs pdf 2020
300+ top data structures and algorithms mc qs pdf 2020
 
Data structure part 2
Data structure part  2Data structure part  2
Data structure part 2
 
this pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming studentsthis pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming students
 
DS Q&A
DS Q&ADS Q&A
DS Q&A
 
MCQs on Stacks.pdf
MCQs on Stacks.pdfMCQs on Stacks.pdf
MCQs on Stacks.pdf
 
MCQs on Stacks.pdf
MCQs on Stacks.pdfMCQs on Stacks.pdf
MCQs on Stacks.pdf
 
Dat 305 dat305 dat 305 education for service uopstudy.com
Dat 305 dat305 dat 305 education for service   uopstudy.comDat 305 dat305 dat 305 education for service   uopstudy.com
Dat 305 dat305 dat 305 education for service uopstudy.com
 
Data Structure.pdf
Data Structure.pdfData Structure.pdf
Data Structure.pdf
 
Gate-Cs 1999
Gate-Cs 1999Gate-Cs 1999
Gate-Cs 1999
 
Cplus plus abd datastructure
Cplus plus abd datastructureCplus plus abd datastructure
Cplus plus abd datastructure
 
Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...
Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...
Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...
 
Gate-Cs 1995
Gate-Cs 1995Gate-Cs 1995
Gate-Cs 1995
 
DS MCQS.pptx
DS MCQS.pptxDS MCQS.pptx
DS MCQS.pptx
 
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithms
 
Data structure part 4
Data structure part  4Data structure part  4
Data structure part 4
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1 UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
 
Gate-Cs 1998
Gate-Cs 1998Gate-Cs 1998
Gate-Cs 1998
 
PGCET Computer science 2017 question paper
PGCET Computer science 2017 question paperPGCET Computer science 2017 question paper
PGCET Computer science 2017 question paper
 
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQsStd 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
 

More from Vivek Kumar Sinha

Software engg unit 4
Software engg unit 4 Software engg unit 4
Software engg unit 4
Vivek Kumar Sinha
 
Software engg unit 3
Software engg unit 3 Software engg unit 3
Software engg unit 3
Vivek Kumar Sinha
 
Software engg unit 2
Software engg unit 2 Software engg unit 2
Software engg unit 2
Vivek Kumar Sinha
 
Software engg unit 1
Software engg unit 1 Software engg unit 1
Software engg unit 1
Vivek Kumar Sinha
 
Mathematics basics
Mathematics basicsMathematics basics
Mathematics basics
Vivek Kumar Sinha
 
E commerce 5_units_notes
E commerce 5_units_notesE commerce 5_units_notes
E commerce 5_units_notes
Vivek Kumar Sinha
 
B.ped
B.pedB.ped
Subject distribution
Subject distributionSubject distribution
Subject distribution
Vivek Kumar Sinha
 
Revision report final
Revision report finalRevision report final
Revision report final
Vivek Kumar Sinha
 
Lession plan mis
Lession plan misLession plan mis
Lession plan mis
Vivek Kumar Sinha
 
Lession plan dmw
Lession plan dmwLession plan dmw
Lession plan dmw
Vivek Kumar Sinha
 
Faculty planning
Faculty planningFaculty planning
Faculty planning
Vivek Kumar Sinha
 
Final presentation on computer network
Final presentation on computer networkFinal presentation on computer network
Final presentation on computer network
Vivek Kumar Sinha
 
Np syllabus summary
Np syllabus summaryNp syllabus summary
Np syllabus summary
Vivek Kumar Sinha
 
Internet of things
Internet of thingsInternet of things
Internet of things
Vivek Kumar Sinha
 
Induction program 2017
Induction program 2017Induction program 2017
Induction program 2017
Vivek Kumar Sinha
 
Vivek
VivekVivek
E magzine et&t
E magzine et&tE magzine et&t
E magzine et&t
Vivek Kumar Sinha
 
Mechanical engineering department (1)
Mechanical engineering department (1)Mechanical engineering department (1)
Mechanical engineering department (1)
Vivek Kumar Sinha
 
Electrical & electronics engineering
Electrical & electronics engineeringElectrical & electronics engineering
Electrical & electronics engineering
Vivek Kumar Sinha
 

More from Vivek Kumar Sinha (20)

Software engg unit 4
Software engg unit 4 Software engg unit 4
Software engg unit 4
 
Software engg unit 3
Software engg unit 3 Software engg unit 3
Software engg unit 3
 
Software engg unit 2
Software engg unit 2 Software engg unit 2
Software engg unit 2
 
Software engg unit 1
Software engg unit 1 Software engg unit 1
Software engg unit 1
 
Mathematics basics
Mathematics basicsMathematics basics
Mathematics basics
 
E commerce 5_units_notes
E commerce 5_units_notesE commerce 5_units_notes
E commerce 5_units_notes
 
B.ped
B.pedB.ped
B.ped
 
Subject distribution
Subject distributionSubject distribution
Subject distribution
 
Revision report final
Revision report finalRevision report final
Revision report final
 
Lession plan mis
Lession plan misLession plan mis
Lession plan mis
 
Lession plan dmw
Lession plan dmwLession plan dmw
Lession plan dmw
 
Faculty planning
Faculty planningFaculty planning
Faculty planning
 
Final presentation on computer network
Final presentation on computer networkFinal presentation on computer network
Final presentation on computer network
 
Np syllabus summary
Np syllabus summaryNp syllabus summary
Np syllabus summary
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
Induction program 2017
Induction program 2017Induction program 2017
Induction program 2017
 
Vivek
VivekVivek
Vivek
 
E magzine et&t
E magzine et&tE magzine et&t
E magzine et&t
 
Mechanical engineering department (1)
Mechanical engineering department (1)Mechanical engineering department (1)
Mechanical engineering department (1)
 
Electrical & electronics engineering
Electrical & electronics engineeringElectrical & electronics engineering
Electrical & electronics engineering
 

Recently uploaded

basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
obonagu
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
drwaing
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
dxobcob
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 

Recently uploaded (20)

basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 

Data structure

  • 1. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR BE CSE 4th SEMESTER Data Structure Quiz Question 1. Which of the following points is/are true about Link List data structure when it is comparedwith array? a) Arrays have better cache locality that can make them better in terms of performance b) It is easy to insert and delete elements in Linked List c) Random access is not allowed in typical implementation of Linked Lists d) All of the above Ans: D 2. Which of the following algorithms canbe used to sort a random link list with minimum time complexity? a) Insertion Sort b) Quick Sort c) Merge Sort d) Heap Sort Ans: C 3. Which one of the following is the application of stack data structure? a) Managing function calls b) The stockspan problem c) Arithmetic expression evolution d) All of the above Ans:D 4. Which of the following is true about linked list implementation of stack? a) In push operation, if new nodes are inserted at the beginning of link list, then in poop operation, nodes must be removed from end. b) In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be removed from beginning. c) Both of the above d) None of the above. Ans: D 5. Which one of the following is an application of Queue data structure? a) When a resource is shared among multiple consumers b) When data is transferred asynchronously between 2 processes c) Load balancing d) All of the above Ans: D 6. How many stacks are neededto implement a queue. Considerthe situation where no other data structure like arrays, linked list is available to you. a) 1 b) 2
  • 2. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR BE CSE 4th SEMESTER Data Structure Quiz Question c) 3 d) 4 Ans: B 7. How many queues are needed to implement a stack. Considerthe situation where no other data structure like arrays, linked list is available to you. a) 1 b) 2 c) 3 d) 4 Ans: B 8. A priority queue can efficiently implemented using which of the following data structures? Assume that the number of insert and peek (operation to see the current highest priority item) and extraction (remove the highestpriority item) operations are almost same. a) Array b) Link List c) Heap data structures like binary heap, Fibonacciheap d) None of the above Ans: C 9. Which of the following is true about Binary Trees a) Every Binary Tree is either complete or full b) Every complete binary tree is also a full binary tree c) Every full binary tree is also a complete binary tree d) None of the above Ans: D 10. The maximum number of binary trees that can be formed with three unlabeled nodes is: a) 1 b) 5 c) 4 d) 3 Ans: B 11. How many distinct binary searchtrees canbe createdout of 4 distinct keys? a) 4 b) 14 c) 24 d) 42 Ans: B 12. One Key reasonwhy developers have difficulty testing their own work is: a) Lack of technical documentation b) Lack of test tools on the market for developer’s c) Lack of Objectivity d) Lack of training Ans: C
  • 3. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR BE CSE 4th SEMESTER Data Structure Quiz Question 13. What is the worstcase run-time complexity of binary search algorithm? a) O(n2) b) O(nlogn) c) O(n3) d) O(n) Ans: D 14. Postfix expressionis just a reverse of prefix expression. a) True b) False Ans: B 15. Quick sort algorithm is an example of? a) Greedy Approach b) Improved binary search c) Dynamic Programming d) Divide & Conquer Ans: D 16. Visiting root node after visiting left and right sub-trees is called a) In-order traversal b) Pre-order traversal c)Post-ordertraversal Ans: C 17. Time complexity of Depth First Traversal of is? a) Θ(|V|+|E|) b) Θ(|V||) c) Θ(|E|) d) Θ(|V|*|E|) Ans: A 18. If queue is implemented using arrays, what would be the worst run time complexity of queue and dequeue operation? a) O(n), O(n) b) O(n), O(1) c) O(1), O(n) d) O(1), O(1) Ans: D 19. Towerof Hanoi is an example of: a) Divide & Conquer b) Recursive approach c) Option B but not option A d) Both A & B Ans: D 20. A Pivot element to partition unsorted list is used in: a) Merge Sort b) Quick Sort c) Insertion Sort d) Selection Sort Ans: B
  • 4. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR BE CSE 4th SEMESTER Data Structure Quiz Question 21. A stable algorithm - a) Doesn’t crash b) Doesn’t run out of memory c) Doesn’t change the sequence of appearance of elements d) Doesn’t existss Ans: C 22. What is the time complexity of Build Heap operation. Build Heap is used to build a max(or min) binary heap from a given array. Build Heap is used in Heap Sort as a first step for sorting. a) O(nlogn) b) O(n2) c) O(logn) d) O(n)s Ans: D 23. What is the time complexity of Build Heap operation. Build Heap is used to build a max(or min) binary heap from a given array. Build Heap is used in Heap Sort as a first step for sorting. a) O(nlogn) b) O(n2) c) O(logn) d) O(n)s Ans: D 24. A max-heap is a heap where the value of each parent is greater than or equal to the values of its children. Which of the following is a max-heap? Ans: B 25. In a binary max heap containing n numbers, the smallest element can be found in time a) O(n) b) O(logn) c) O(loglogn) d) O(1) Ans: A 26. Given two max heaps of size n each, what is the minimum possible time complexity to make a one max- heap of size from elements of two max heaps? a) O(nlogn) b) O(nloglogn)
  • 5. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR BE CSE 4th SEMESTER Data Structure Quiz Question c) O(n) d) O(nlogn) Ans: C 27. Which of the following Binary Min Heap operation has the highest time complexity? a) Inserting an item under the assumption that the heap has capacity to accommodate one more item b) Merging with another heap c) O(n) d) O(nlogn) Ans: C 28. How is Data in a Queue accessed? a) First in First out b) First in Last out c) Last in First out d) None of these Ans: A 29. An Adjacency matrix representation of a graph cannot contain information of: a) nodes b) edges c) direction of edges d) parallel edges Ans: D 30. Which of the following is/are the levels of implementation of data structure: a) Abstract level b) Application level c) Implementation level d) All of the above Ans: D 31. A linear collection of data elements where the linear node is given by means of pointer is called: a) Linked List b) node list c) Primitive list d) None of these Ans: A 32. …………. Is not an operation performed on linear list. a) Insertion b) Insertion & Deletion c) Deletion & Traversal d) None of the above Ans: D 33. Which is the application of stack? a) Function calls b) Large number arithmetic c) Evaluation of arithmetic expressions d) All of the above Ans: D
  • 6. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR BE CSE 4th SEMESTER Data Structure Quiz Question 34. …………. Is a pile in which items are added at one end and removed from the other. a) Stack b) Queue c) List d) None of the above Ans: B 35. Which of the following is the type of the queue? a) Ordinary b) Single ended queue c) Circular Queue d) Priority Queue Ans: B 36. ……….. is not the component of data structure. a) Operations b) Storage Structures c) Algorithms d) None of the above Ans: D 37. The property of binary tree is a) The first subset is called left subtree b) The second subtree is called right subtree c) The root cannot contain NULL d) The right subtree can be empty Ans: D 38. Representation of Data Structure in memory is known as a) recursive b) abstract data type c) storage structure d) file structure Ans: B 39. Inserting an item into the stack when stack is not full is called ………. Operation and deletion of item form the stack is not empty is called ……. Operation? a) Push, Pop b) pop, push c) insert, delete d) delete, insert Ans: A 40. ………. Is a directed tree in which outdegree of eachnode is less than or equal to two a) Unary tree b) Ternary tree c) Binary tree d) Both B and C Ans: C 41. ………. Level is where the model becomes compatible executable code. a) Abstract level b) Application level
  • 7. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR BE CSE 4th SEMESTER Data Structure Quiz Question c) Implementation level d) All of the above Ans: C 42. A binary search tree whose left subtree and right subtree differ in height by at most 1 unit is called. a) AVL tree b) Red Black tree c) Lemma d) None of the above Ans: A 43. …………. Is very useful in situation when data have to stored and then retrieved in reverse order. a) Stack b) Queue c) List d) Link List Ans: A 44. Stack is also called as? a) Last in First out b) First in Last out c) Last in last out d) First in first out Ans: A 45. Quick sort is also known as? a) merge sort b) heap sort c) bubble sort d) none of these Ans: D 46. Any node is the path from the root to the node is called? a) Successor node b) Ancestor node c) Internal node d) None of the above Ans: B 47. Which of the following is not the part of ADT description? a) Data b) Operations c) Both of the above d) None of the above Ans: D 48. The best average behavior is shown by a) Quick sort b) Merge sort c) Insertion sort d) Heap sort Ans: A 49. The extra key inserted at the end of the array is called as. a) End key b) Stop key c) Sentinel d) Transposition Ans: C
  • 8. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR BE CSE 4th SEMESTER Data Structure Quiz Question 50. The goal of hashing is to produce a search that takes a) O(1) time b) O(n2) time c) O(logn) time d) O(nlogn) time Ans: A