CS Cheat Sheet 2026
The 30 highest-yield CS facts, distilled from real exam questions. Print it, save it as a PDF, or study it here ā free, no sign-up.
100 questions
180 min time limit
70.00% to pass
- What does hashing a file and comparing the digest before and after transfer verify? ā Integrity of the file
- Which design pattern decouples a service that produces events from services that consume them, allowing consumers to process work asynchronously? ā Publish-subscribe messaging
- Which data structure is most appropriate for implementing an undo feature in a text editor? ā Stack
- Which metric best captures how a system's response time degrades for its slowest requests? ā Tail latency, such as the 99th percentile
- What does a Translation Lookaside Buffer (TLB) cache? ā Recent virtual-to-physical address translations
- An attacker intercepts and secretly relays communication between two parties who believe they are talking directly. What is this attack called? ā Man-in-the-middle attack
- What is a fundamental principle of DevOps & Deployment in Computer Science practice? ā Following established standards and best practices
- Which tool is commonly used for root cause analysis in Computer Science? ā Fishbone (Ishikawa) diagram
- In the context of high availability, what does an SLA of 99.9% uptime allow in downtime per year (approximately)? ā About 8.8 hours
- What condition must hold, among others, for a deadlock to occur in a system? ā Circular wait among processes holding resources
- A string is built by concatenating inside a loop in a language with immutable strings, resulting in O(n²) behavior. What is the standard fix? ā Use a string builder or buffer and join once at the end
- Which of the following problems is a classic application of dynamic programming? ā Longest common subsequence
- A JWT (JSON Web Token) is signed but not encrypted. What does this imply? ā Anyone can read the token's payload, but tampering is detectable via the signature
- What does the SQL statement 'DELETE FROM orders;' do without a WHERE clause? ā Removes all rows from the orders table
- Which memory allocation strategy searches the entire free list to find the smallest hole that fits the request? ā Best fit
- Which approach best supports quality outcomes in Security & Authentication for Computer Science? ā Systematic application of evidence-based methods
- A web application makes 50 separate small database queries to render one page. What is the most effective optimization? ā Batch the queries into fewer round trips
- In a microservices system, an API gateway primarily serves to: ā Provide a single entry point that routes requests to backend services
- Which type of pipeline hazard occurs when an instruction depends on the result of a previous instruction that has not yet completed? ā Data hazard
- Which technique reduces function call overhead by replacing a call with the function's body at compile time? ā Inlining
- What is the height of a complete binary tree containing n nodes? ā O(log n)
- A subnet uses the mask 255.255.255.192. How many usable host addresses does it provide? ā 62
- Which programming paradigm focuses on objects and their interactions? ā Object-oriented programming (OOP)
- What does the 'exec()' family of system calls do in Unix/Linux? ā Replaces the current process's memory image with a new program while retaining the PID
- Which security principle states that users should be granted only the permissions necessary to perform their job? ā Least privilege
- A company must ensure customer data remains within the country where it was collected due to legal requirements. This concern is called what? ā Data sovereignty
- Which algorithm design technique does merge sort primarily use? ā Divide and conquer
- Which HTTP status code correctly distinguishes 'authenticated but not allowed' from 'not authenticated'? ā 403 Forbidden versus 401 Unauthorized
- Which of the following best describes an API (Application Programming Interface)? ā A set of functions and protocols for communication
- In a B-tree index, why are B-trees preferred over binary search trees for disk-based databases? ā High fanout reduces the number of disk reads needed
Turn these facts into recall:
Was this helpful?