SlideShare a Scribd company logo
1 of 12
DATA STRUCTURES
MCQ’S & ANSWERS
PART – 4
Follow Us On Instagram:-
https://www.instagram.com/knowledge_center_computer/?hl=en
KCC
KCC
91. Arrays are best data structures
A) for relatively permanent collections of data
B) for the size of the structure and the data in the structure are
constantly changing
C) for both of above situation
D) for none of above situation
Answer: - A
92. Which of the following data structure is not linear data structure?
A) Arrays
B) Linked lists
C) Both of the above
D) None of the above
Answer: - D
Answer: - D
93. The disadvantage in using a circular linked list is
…………………….
A) It is possible to get into infinite loop.
B) Last node points to first node.
C) Time consuming
D) Requires more memory space
94. A linear list in which each node has pointers to point to the
predecessor and successors nodes is called as ..
A) Singly Linked List
B) Circular Linked List
C) Doubly Linked List
D) Linear Linked List
Answer: - C
95. A ……………….. is a linear list in which insertions and deletions
are made to from either end of the
structure.
A) circular queue
B) random of queue
C) priority
D) dequeue
Answer: - D
Answer: - D
96. In a priority queue, insertion and deletion takes place at
………………
A) front, rear end
B) only at rear end
C) only at front end
D) any position
KCC
97. The time complexity of quick sort is …………..
A) O(n)
B) O(n2)
C) O(n log n)
D) O(log n) Answer: - C
98. Which of the following is an application of stack?
A) finding factorial
B) tower of Hanoi
C) infix to postfix conversion
D) all of the above
Answer: - D
Answer: - B
99. The data structure which is one ended is ………………
A) queue
B) stack
C) tree
D) graph
KCC
100. A list which displays the relationship of adjacency between
elements is said to be
A) linear
B) non linear
C) linked list
D) trees
Answer: - A
101. Two main measures for the efficiency of an algorithm are
a) Processor and memory
b) Complexity and capacity
c) Time and space
d) Data and space
Answer: - C
Answer: - B
102. The time factor when determining the efficiency of algorithm is
measured by
a) Counting microseconds
b) Counting the number of key operations
c) Counting the number of statements
d) Counting the kilobytes of algorithm
KCC
103. The space factor when determining the efficiency of algorithm is
measured by
Counting the maximum memory needed by the algorithm
Counting the minimum memory needed by the algorithm
Counting the average memory needed by the algorithm
Counting the maximum disk space needed by the algorithm
Answer: - A
104. Which of the following case does not exist in complexity theory
Best case
Worst case
Average case
Null case
Answer: - D
Answer: - D
105. The Worst case occur in linear search algorithm when
Item is somewhere in the middle of the array
Item is not in the array at all
Item is the last element in the array
Item is the last element in the array or is not there at all
KCC
106. The Average case occur in linear search algorithm
a) When Item is somewhere in the middle of the array
b) When Item is not in the array at all
c) When Item is the last element in the array
d) When Item is the last element in the array or is not there at all Answer: - A
107. The complexity of the average case of an algorithm is
a) Much more complicated to analyze than that of worst case
b) Much more simpler to analyze than that of worst case
c) Sometimes more complicated and some other times simpler than that of worst
case
d) None or above Answer: - A
Answer: - A
108. The complexity of linear search algorithm is
O(n)
O(log n)
O(n2)
O(n log n)
KCC
109. The complexity of Binary search algorithm is
O(n)
O(log )
O(n2)
O(n log n) Answer: - B
110. The complexity of Bubble sort algorithm is
O(n)
O(log n)
O(n2)
O(n log n)
Answer: - C
Answer: - D
111. The complexity of merge sort algorithm is
O(n)
O(log n)
O(n2)
O(n log n)
KCC
112. The indirect change of the values of a variable in one module by
another module is called
a) internal change
b) inter-module change
c) side effect
d) side-module update
Answer: - C
113. Which of the following data structure is not linear data structure?
a) Arrays
b) Linked lists
c) Both of above
d) None of above
Answer: - D
Answer: - C
114. Which of the following data structure is linear data structure?
Trees
Graphs
Arrays
None of above
KCC
115. The operation of processing each element in the list is known as
a) Sorting
b) Merging
c) Inserting
d) Traversal Answer: - D
116. Finding the location of the element with a given value is:
a) Traversal
b) Search
c) Sort
d) None of above
Answer: - B
Answer: - A
117. Arrays are best data structures
a) for relatively permanent collections of data
b) for the size of the structure and the data in the structure are
constantly changing
c) for both of above situation
d) for none of above situation
KCC
118. Linked lists are best suited
a) for relatively permanent collections of data
b) for the size of the structure and the data in the structure are
constantly changing
c) for both of above situation
d) for none of above situation
Answer: - B
119. Each array declaration need not give, implicitly or explicitly, the information
about
a) the name of array
b) the data type of array
c) the first data from the set to be stored
d) the index set of the array
Answer: - C
Answer: - A
120. The elements of an array are stored successively in memory cells because
a) by this way computer can keep track only the address of the first element
and the addresses of other elements can be calculated
b) the architecture of computer memory does not allow arrays to store other
than serially
c) both of above
d) none of above KCC

More Related Content

Similar to Data structure part 4

Similar to Data structure part 4 (20)

Data structure
Data structureData structure
Data structure
 
DS Q&A
DS Q&ADS Q&A
DS Q&A
 
combat unacademy.pdf
combat unacademy.pdfcombat unacademy.pdf
combat unacademy.pdf
 
Ee693 questionshomework
Ee693 questionshomeworkEe693 questionshomework
Ee693 questionshomework
 
AP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paperAP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paper
 
GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004
 
Ds qb 2021 rma
Ds qb 2021 rmaDs qb 2021 rma
Ds qb 2021 rma
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years Papers
 
Answers withexplanations
Answers withexplanationsAnswers withexplanations
Answers withexplanations
 
Data structure - mcqs
Data structure - mcqsData structure - mcqs
Data structure - mcqs
 
PGCET Computer science 2017 question paper
PGCET Computer science 2017 question paperPGCET Computer science 2017 question paper
PGCET Computer science 2017 question paper
 
Cs101 endsem 2014
Cs101 endsem 2014Cs101 endsem 2014
Cs101 endsem 2014
 
Cplus plus abd datastructure
Cplus plus abd datastructureCplus plus abd datastructure
Cplus plus abd datastructure
 
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
 
Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...
Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...
Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...
 
Algorithm Class at KPHB C, C++ Training Institute KPHB, Kukatpally, Hyderabad.
Algorithm Class at KPHB C, C++ Training Institute KPHB, Kukatpally, Hyderabad.Algorithm Class at KPHB C, C++ Training Institute KPHB, Kukatpally, Hyderabad.
Algorithm Class at KPHB C, C++ Training Institute KPHB, Kukatpally, Hyderabad.
 
Algorithm Class at KPHB C, c++, Computer Science Training,IT Training,CS Trai...
Algorithm Class at KPHB C, c++, Computer Science Training,IT Training,CS Trai...Algorithm Class at KPHB C, c++, Computer Science Training,IT Training,CS Trai...
Algorithm Class at KPHB C, c++, Computer Science Training,IT Training,CS Trai...
 
Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...
Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...
Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...
 
Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...
Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...
Algorithm Class at KPHB C, c++, ds,cpp,java,data structures training institut...
 

More from Knowledge Center Computer

More from Knowledge Center Computer (20)

APS PGT Computer Science SylIabus
APS PGT Computer Science SylIabusAPS PGT Computer Science SylIabus
APS PGT Computer Science SylIabus
 
Specialization and generalization quizz
Specialization and generalization quizzSpecialization and generalization quizz
Specialization and generalization quizz
 
Computer architecture PART 2
Computer architecture  PART  2Computer architecture  PART  2
Computer architecture PART 2
 
Computer architecture PART 1
Computer architecture  PART 1Computer architecture  PART 1
Computer architecture PART 1
 
Course design class 12 ip
Course design class 12 ipCourse design class 12 ip
Course design class 12 ip
 
CBSE 12 ip 2018 sample paper
CBSE 12 ip 2018 sample paperCBSE 12 ip 2018 sample paper
CBSE 12 ip 2018 sample paper
 
Programming languages java, python, sql and compare between c and python
Programming languages  java, python, sql and compare between c and pythonProgramming languages  java, python, sql and compare between c and python
Programming languages java, python, sql and compare between c and python
 
Sql and Sql commands
Sql and Sql commandsSql and Sql commands
Sql and Sql commands
 
E commerce and types
E commerce and typesE commerce and types
E commerce and types
 
Android Operating System(OS)
Android Operating System(OS)Android Operating System(OS)
Android Operating System(OS)
 
Networking Basic MCQ's TEST
Networking Basic  MCQ's TESTNetworking Basic  MCQ's TEST
Networking Basic MCQ's TEST
 
Physics QUIZ
Physics QUIZ Physics QUIZ
Physics QUIZ
 
Ms word mcq
Ms word mcqMs word mcq
Ms word mcq
 
Ms word mcq
Ms word mcqMs word mcq
Ms word mcq
 
Information assistant exam complete syllabus 2018
Information assistant exam  complete syllabus  2018Information assistant exam  complete syllabus  2018
Information assistant exam complete syllabus 2018
 
Computer fundamentals in hindi
Computer fundamentals in hindiComputer fundamentals in hindi
Computer fundamentals in hindi
 
हिन्‍दी में मल्‍टीपल चॉइस कंप्यूटर साइंस क्विज Part 4
हिन्‍दी में मल्‍टीपल  चॉइस कंप्यूटर साइंस क्विज Part 4हिन्‍दी में मल्‍टीपल  चॉइस कंप्यूटर साइंस क्विज Part 4
हिन्‍दी में मल्‍टीपल चॉइस कंप्यूटर साइंस क्विज Part 4
 
हिन्‍दी में मल्‍टीपल चॉइस कंप्यूटर साइंस क्विज Part 3
हिन्‍दी में मल्‍टीपल  चॉइस कंप्यूटर साइंस क्विज Part 3हिन्‍दी में मल्‍टीपल  चॉइस कंप्यूटर साइंस क्विज Part 3
हिन्‍दी में मल्‍टीपल चॉइस कंप्यूटर साइंस क्विज Part 3
 
हिन्‍दी में मल्‍टीपल चॉइस कंप्यूटर साइंस क्विज Part 2
हिन्‍दी में मल्‍टीपल  चॉइस कंप्यूटर साइंस क्विज Part 2हिन्‍दी में मल्‍टीपल  चॉइस कंप्यूटर साइंस क्विज Part 2
हिन्‍दी में मल्‍टीपल चॉइस कंप्यूटर साइंस क्विज Part 2
 
हिन्‍दी में मल्‍टीपल चॉइस कंप्यूटर साइंस क्विज Part 1
हिन्‍दी में मल्‍टीपल  चॉइस कंप्यूटर साइंस क्विज Part 1हिन्‍दी में मल्‍टीपल  चॉइस कंप्यूटर साइंस क्विज Part 1
हिन्‍दी में मल्‍टीपल चॉइस कंप्यूटर साइंस क्विज Part 1
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Recently uploaded (20)

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

Data structure part 4

  • 1. DATA STRUCTURES MCQ’S & ANSWERS PART – 4 Follow Us On Instagram:- https://www.instagram.com/knowledge_center_computer/?hl=en KCC
  • 2. KCC
  • 3. 91. Arrays are best data structures A) for relatively permanent collections of data B) for the size of the structure and the data in the structure are constantly changing C) for both of above situation D) for none of above situation Answer: - A 92. Which of the following data structure is not linear data structure? A) Arrays B) Linked lists C) Both of the above D) None of the above Answer: - D Answer: - D 93. The disadvantage in using a circular linked list is ……………………. A) It is possible to get into infinite loop. B) Last node points to first node. C) Time consuming D) Requires more memory space
  • 4. 94. A linear list in which each node has pointers to point to the predecessor and successors nodes is called as .. A) Singly Linked List B) Circular Linked List C) Doubly Linked List D) Linear Linked List Answer: - C 95. A ……………….. is a linear list in which insertions and deletions are made to from either end of the structure. A) circular queue B) random of queue C) priority D) dequeue Answer: - D Answer: - D 96. In a priority queue, insertion and deletion takes place at ……………… A) front, rear end B) only at rear end C) only at front end D) any position KCC
  • 5. 97. The time complexity of quick sort is ………….. A) O(n) B) O(n2) C) O(n log n) D) O(log n) Answer: - C 98. Which of the following is an application of stack? A) finding factorial B) tower of Hanoi C) infix to postfix conversion D) all of the above Answer: - D Answer: - B 99. The data structure which is one ended is ……………… A) queue B) stack C) tree D) graph KCC
  • 6. 100. A list which displays the relationship of adjacency between elements is said to be A) linear B) non linear C) linked list D) trees Answer: - A 101. Two main measures for the efficiency of an algorithm are a) Processor and memory b) Complexity and capacity c) Time and space d) Data and space Answer: - C Answer: - B 102. The time factor when determining the efficiency of algorithm is measured by a) Counting microseconds b) Counting the number of key operations c) Counting the number of statements d) Counting the kilobytes of algorithm KCC
  • 7. 103. The space factor when determining the efficiency of algorithm is measured by Counting the maximum memory needed by the algorithm Counting the minimum memory needed by the algorithm Counting the average memory needed by the algorithm Counting the maximum disk space needed by the algorithm Answer: - A 104. Which of the following case does not exist in complexity theory Best case Worst case Average case Null case Answer: - D Answer: - D 105. The Worst case occur in linear search algorithm when Item is somewhere in the middle of the array Item is not in the array at all Item is the last element in the array Item is the last element in the array or is not there at all KCC
  • 8. 106. The Average case occur in linear search algorithm a) When Item is somewhere in the middle of the array b) When Item is not in the array at all c) When Item is the last element in the array d) When Item is the last element in the array or is not there at all Answer: - A 107. The complexity of the average case of an algorithm is a) Much more complicated to analyze than that of worst case b) Much more simpler to analyze than that of worst case c) Sometimes more complicated and some other times simpler than that of worst case d) None or above Answer: - A Answer: - A 108. The complexity of linear search algorithm is O(n) O(log n) O(n2) O(n log n) KCC
  • 9. 109. The complexity of Binary search algorithm is O(n) O(log ) O(n2) O(n log n) Answer: - B 110. The complexity of Bubble sort algorithm is O(n) O(log n) O(n2) O(n log n) Answer: - C Answer: - D 111. The complexity of merge sort algorithm is O(n) O(log n) O(n2) O(n log n) KCC
  • 10. 112. The indirect change of the values of a variable in one module by another module is called a) internal change b) inter-module change c) side effect d) side-module update Answer: - C 113. Which of the following data structure is not linear data structure? a) Arrays b) Linked lists c) Both of above d) None of above Answer: - D Answer: - C 114. Which of the following data structure is linear data structure? Trees Graphs Arrays None of above KCC
  • 11. 115. The operation of processing each element in the list is known as a) Sorting b) Merging c) Inserting d) Traversal Answer: - D 116. Finding the location of the element with a given value is: a) Traversal b) Search c) Sort d) None of above Answer: - B Answer: - A 117. Arrays are best data structures a) for relatively permanent collections of data b) for the size of the structure and the data in the structure are constantly changing c) for both of above situation d) for none of above situation KCC
  • 12. 118. Linked lists are best suited a) for relatively permanent collections of data b) for the size of the structure and the data in the structure are constantly changing c) for both of above situation d) for none of above situation Answer: - B 119. Each array declaration need not give, implicitly or explicitly, the information about a) the name of array b) the data type of array c) the first data from the set to be stored d) the index set of the array Answer: - C Answer: - A 120. The elements of an array are stored successively in memory cells because a) by this way computer can keep track only the address of the first element and the addresses of other elements can be calculated b) the architecture of computer memory does not allow arrays to store other than serially c) both of above d) none of above KCC