Computer Science MCQs · PHP Which attribute is used in PHP 8.2 to mark a class as readonly? A #[ReadOnly] B readonly C readonly class Correct answer D #[Immutable] MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP What is the default JIT buffer size (in MB) in PHP 8.x on 64-bit Linux? A 32 B 64 Correct answer C 128 D 256 MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which PHP 8.3 feature allows declaring a constant on a trait? A trait constants Correct answer B class constants C interface constants D enum constants MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure provides efficient pattern 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 computes the edit distance between two strings? A Naive Recursion B Wagner-Fischer Algorithm Correct answer C Greedy Algorithm D Divide and Conquer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Database Management Systems In database systems, which normal form addresses multi-valued dependencies? A Third Normal Form B Boyce-Codd Normal Form C Fourth Normal Form Correct answer D Fifth Normal Form 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 circuit of depth O(log n)? A Cook-Levin Theorem B Razborov-Smolensky 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 in 3D? A Jarvis March B Graham's Scan C Quickhull Correct answer D Chan's Algorithm MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cybersecurity Which principle in computer security states that security should be designed in layers? A Defense in Depth Correct answer B Principle of Least Privilege C Separation of Duties D Fail-Safe Defaults MCQSEXAM Show answer Read explanation
Computer Science MCQs · Software Engineering In distributed systems, which consensus algorithm is fault-tolerant? A Paxos Correct answer B Raft C Byzantine Fault Tolerance D Two-Phase Commit MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure provides efficient persistence with full path copying? A Persistent data structures Correct answer B Ephemeral data structures C Mutable data structures D Immutable data structures MCQSEXAM Show answer Read explanation
Computer Science MCQs · Software Engineering In compiler design, which analysis determines possible values of variables? A Data flow analysis B Constant propagation Correct answer C Control flow analysis D Alias analysis MCQSEXAM Show answer Read explanation
Computer Science MCQs · Database Management Systems In database systems, which protocol ensures conflict serializability? A Two-Phase Locking Correct answer B Timestamp Ordering C Multi-Version Concurrency Control D Optimistic Concurrency Control MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which algorithm efficiently finds the shortest path in a graph with non-negative weights? A Dijkstra's Algorithm Correct answer B Bellman-Ford Algorithm C Floyd-Warshall Algorithm D A* Search Algorithm MCQSEXAM Show answer Read explanation
Computer Science MCQs · Operating Systems In operating systems, what is the primary purpose of the multilevel feedback queue scheduling? A Adapt to process behavior Correct answer B Priority-based scheduling C Round-robin scheduling D Shortest job first MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure provides efficient range queries with O(log n) time for updates and queries? A Fenwick Tree B Segment Tree Correct answer C Binary Indexed Tree D Sparse Table MCQSEXAM Show answer Read explanation
Computer Science MCQs · Computer Networks In computer networks, which protocol provides connectionless, unreliable datagram service? A TCP B UDP Correct answer C IP D ICMP MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures In formal language theory, which automaton recognizes the context-free languages? A Finite Automata B Pushdown Automata Correct answer C Linear Bounded Automata D Turing Machine MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which algorithm efficiently solves the maximum flow problem in unit capacity networks? A Ford-Fulkerson Algorithm B Edmonds-Karp Algorithm C Dinic's Algorithm Correct answer D Push-Relabel Algorithm MCQSEXAM Show answer Read explanation
Computer Science MCQs · Software Engineering Which principle in software engineering states that software entities should be open for extension but closed for modification? A Open-Closed Principle Correct answer B Single Responsibility Principle C Liskov Substitution Principle D Interface Segregation Principle MCQSEXAM Show answer Read explanation
Computer Science MCQs · Software Engineering In distributed systems, which protocol ensures exactly-once message delivery? A Two-Phase Commit Correct answer B Paxos C Raft D Byzantine Agreement MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure provides efficient storage and retrieval of spatial data? A B-tree B Quadtree Correct answer C R-tree D Octree MCQSEXAM Show answer Read explanation
Computer Science MCQs · Software Engineering In compiler design, which optimization technique moves computations outside loops? A Constant folding B Loop invariant code motion Correct answer C Common subexpression elimination D Dead code elimination MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure provides efficient pattern matching in compressed text? A Suffix Array B FM-index Correct answer C Hash Table D Trie MCQSEXAM Show answer Read explanation
Computer Science MCQs · Operating Systems In operating systems, what is the primary purpose of the second chance page replacement algorithm? A Modification of FIFO Correct answer B Modification of LRU C Modification of OPT D Modification of MRU MCQSEXAM Show answer Read explanation