adplus-dvertising

Welcome to the Data Structures and Algorithms MCQs Page

Dive deep into the fascinating world of Data Structures and Algorithms with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Data Structures and Algorithms, a crucial aspect of GATE CSE Exam. In this section, you will encounter a diverse range of MCQs that cover various aspects of Data Structures and Algorithms, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within GATE CSE Exam.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Data Structures and Algorithms. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of GATE CSE Exam.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Data Structures and Algorithms. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Data Structures and Algorithms MCQs | Page 16 of 30

Q151.
Which of the following sorting algorithms does not have a worst case running time of O(nlog n)?
Discuss
Answer: (b).Merge sort
Q152.
An undirected graph G with n vertices and e edges is represented by adjacency list. What is  the time required to generate all the connected components?
Discuss
Answer: (c).O(e+n)
Q153.
The quick sort algorithm exploits……..design technique.
Discuss
Answer: (c).Divide and Conquer
Q154.
The recurrence relation capturing the optimal execution time of the Towers of Hanoi problem with n discs is
Discuss
Answer: (d).T (n) = 2T (n - 1) + 1
Q155.
Which of the following statements are TRUE?

 (1) The problem of determining whether there exists a cycle in an undirected graph is in P.
 (2) The problem of determining whether there exists a cycle in an undirected graph is in NP.
 (3) If a problem A is NP-Complete, there exists a non-deterministic polynomial time algorithm to solve A.
Discuss
Answer: (a).1, 2 and 3
Q156.
The best case time complexity for a successful binary search is O(1). Similarly the best case time complexity for an unsuccessful binary search is…….
Discuss
Answer: (d).O(log n)
Q157.
State the worst case time complexity for quick sort.
Discuss
Answer: (d).O(n²)
Q158.
A search technique where we keep expanding nodes with least accumulated cost so far is called
Discuss
Answer: (b).Branch and bound
Q159.
Both P and NP are closed under the operation of
Discuss
Answer: (d).Kleene
Q160.
In general, Amortization is used for specific types of algorithms like
Discuss
Answer: (d).Binary trees & union

Suggested Topics

Are you eager to expand your knowledge beyond Data Structures and Algorithms? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!