Computer Science MCQs · Algorithms and Data Structures Which data structure provides efficient range minimum queries with O(1) time after O(n log n) preprocessing? A Segment Tree B Sparse Table Correct answer C Fenwick Tree D Binary Indexed Tree MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures In formal language theory, which grammar generates the context-sensitive languages? A Type 0 B Type 1 Correct answer C Type 2 D Type 3 MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which algorithm efficiently solves the assignment problem in polynomial time? A Brute Force B Hungarian Algorithm Correct answer C Simplex Algorithm D Branch and Bound MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure is used for efficient storage and retrieval of multidimensional data? A B-tree B R-tree Correct answer C Quad-tree D Octree MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure provides efficient string matching with O(m) preprocessing and O(n) search time? A Naive String Matching B Knuth-Morris-Pratt Algorithm Correct answer C Rabin-Karp Algorithm D Boyer-Moore Algorithm MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which algorithm efficiently multiplies two large integers using divide and conquer? A Schoolbook Multiplication B Karatsuba Algorithm Correct answer C Toom-Cook Algorithm D Schönhage-Strassen Algorithm MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which theorem establishes that any monotonic boolean function can be computed by a monotonic circuit? A Cook-Levin Theorem B Razborov's Theorem Correct answer C Savitch's Theorem D Ladner's Theorem MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures In computational geometry, which algorithm efficiently computes the convex hull of a set of points? A Jarvis March B Graham's Scan Correct answer C Quickhull D Chan's Algorithm MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures In formal language theory, which pumping lemma applies to context-free languages? A Regular Pumping Lemma B Context-Free Pumping Lemma Correct answer C Context-Sensitive Pumping Lemma D Recursively Enumerable Pumping Lemma MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which algorithm efficiently finds the minimum spanning tree in a graph with dense edges? A Kruskal's Algorithm B Prim's Algorithm Correct answer C Borůvka's Algorithm D Reverse-Delete Algorithm MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure provides efficient persistence with O(1) copying overhead? A Persistent data structures Correct answer B Immutable data structures C Mutable data structures D Ephemeral data structures MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which theorem establishes that any sufficiently powerful formal system cannot be both consistent and complete? A Church-Turing Thesis B Gödel's Incompleteness Theorem Correct answer C Rice's Theorem D CAP Theorem MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which algorithm is used for finding strongly connected components in a directed graph? A Kruskal's Algorithm B Kosaraju's Algorithm Correct answer C Prim's Algorithm D Dijkstra's Algorithm MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure is used for efficient range queries and updates? A Fenwick Tree B Segment Tree Correct answer C Binary Indexed Tree D K-D Tree MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which algorithm efficiently computes the maximum flow in a flow network? A Ford-Fulkerson Algorithm B Edmonds-Karp Algorithm Correct answer C Dinic's Algorithm D Push-Relabel Algorithm MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure is typically used to implement a priority queue with efficient extraction of the minimum element? A Linked List B Binary Heap Correct answer C Hash Table D Binary Search Tree MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which theorem establishes that no algorithm can solve the halting problem for all possible program-input pairs? A Cook's Theorem B Turing's Halting Theorem Correct answer C Rice's Theorem D Gödel's Incompleteness Theorem MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures In formal language theory, which hierarchy classifies languages based on their generative power? A Turing Hierarchy B Chomsky Hierarchy Correct answer C Kleene Hierarchy D Backus-Naur Hierarchy MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which algorithm solves the all-pairs shortest path problem for graphs with negative weight edges? A Dijkstra's Algorithm B Bellman-Ford Algorithm C Floyd-Warshall Algorithm D Johnson's Algorithm Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure provides O(1) time complexity for search, insert, and delete operations on average? A Binary Search Tree B Hash Table Correct answer C Red-Black Tree D B-Tree MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which algorithm efficiently finds the shortest paths between all pairs of vertices in a weighted graph? A Dijkstra's Algorithm B Bellman-Ford Algorithm C Floyd-Warshall Algorithm Correct answer D A* Search Algorithm MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures In computational complexity theory, which class contains problems that can be verified in polynomial time? A P B NP Correct answer C NP-Complete D NP-Hard MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which combinatorial optimization problem asks for the shortest possible route that visits each vertex exactly once and returns to the origin? A Traveling Salesman Problem Correct answer B Hamiltonian Cycle Problem C Chinese Postman Problem D Knapsack Problem MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which is a balanced binary tree? A AVL Tree Correct answer B Binary Search Tree C Complete Binary Tree D Full Binary Tree MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure uses LIFO? A Queue B Stack Correct answer C Linked List D Tree MCQSEXAM Show answer Read explanation