Computer Science MCQs · Cybersecurity Which principle in computer security states that security should not depend on the secrecy of the algorithm? A Saltzer-Schroeder Principle B Kerckhoffs's Principle Correct answer C Principle of Least Privilege D Defense in Depth 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 · Cybersecurity In cryptography, what is the main vulnerability addressed by forward secrecy? A Long-term key compromise Correct answer B Session key compromise C Man-in-the-middle attacks D Replay attacks 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 · Software Engineering In distributed systems, which protocol ensures atomic commitment across multiple nodes? A Paxos B Two-Phase Commit Correct answer C Raft D Byzantine Agreement 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 · Operating Systems In operating systems, what is the primary purpose of the working set model? A Process scheduling B Memory management Correct answer C Deadlock prevention D File system organization 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 · Software Engineering In compiler design, which parsing technique handles the largest class of grammars? A LL Parsing B LR Parsing Correct answer C Recursive Descent Parsing D Operator Precedence Parsing MCQSEXAM Show answer Read explanation
Computer Science MCQs · Database Management Systems In database systems, which normal form requires that every non-prime attribute is fully functionally dependent on every candidate key? A First Normal Form B Second Normal Form Correct answer C Third Normal Form D Boyce-Codd Normal Form 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 · Software Engineering Which principle in software engineering states that a system should be composed of small, independent modules? A Principle of Least Astonishment B Principle of Modularity Correct answer C Single Responsibility Principle D Open-Closed Principle MCQSEXAM Show answer Read explanation
Computer Science MCQs · Computer Graphics In computer graphics, which algorithm is used for hidden surface removal? A Z-buffer Algorithm B Painter's Algorithm Correct answer C Ray Tracing Algorithm D Scanline 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 · Cybersecurity In cryptography, what is the main vulnerability that the Saltzer-Schroeder principle addresses? A Man-in-the-middle attacks B Complexity leading to security flaws Correct answer C Key distribution problems D Side-channel attacks 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 · JAVA In the context of functional programming, what is the Y-combinator used for? A Memory allocation optimization B Implementing recursion without named functions Correct answer C Type inference D Lazy evaluation MCQSEXAM Show answer Read explanation
Computer Science MCQs · Operating Systems In operating systems, what is the primary cause of the Belady's anomaly? A FIFO page replacement algorithm Correct answer B LRU page replacement algorithm C Optimal page replacement algorithm D Clock page replacement algorithm 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