Skip to main content

CS Fundamentals Quick Revision

Use this sheet the week before interviews. Each line links to the full lesson.

Operating systems​

QuestionShort answerLesson
Process vs thread?A process has its own address space; threads share memory within a processProcesses and threads
What is a deadlock?Processes wait on each other's resources forever (4 Coffman conditions)Deadlocks
Paging vs segmentation?Fixed-size pages vs logical variable-size segmentsMemory management
Mutex vs semaphore?Mutex has an owner; semaphore is a counter for signallingSynchronization
Round Robin?Pre-emptive scheduling with a time quantumCPU scheduling

DBMS​

QuestionShort answerLesson
ACID?Atomicity, Consistency, Isolation, DurabilityTransactions
1NF, 2NF, 3NF, BCNF?Atomic values; no partial deps; no transitive deps; every determinant is a keyNormalization
WHERE vs HAVING?Filter rows before grouping vs filter groups afterJoins and aggregation
Clustered index?Determines physical row order; one per tableTransactions and indexing

Networks​

QuestionShort answerLesson
TCP vs UDP?Reliable ordered stream vs unreliable datagramsTransport layer
What happens when you type a URL?DNS, TCP, TLS, HTTP, renderType a URL
HTTP vs HTTPS?HTTPS adds TLS encryption and authenticationTLS and security
Subnet mask /26?64 addresses, 62 usable hostsIP and routing

OOP and design​

QuestionShort answerLesson
Four pillars?Encapsulation, inheritance, polymorphism, abstractionPython OOP, Java OOP
Overloading vs overriding?Same name different params vs same signature in subclassJava OOP
CAP theorem?In a partition choose consistency or availabilityDatabases and sharding
How would you design a URL shortener?Key generation, key-value store, cache, redirectsCase study