Top CS Fundamentals Interview Questions (2026)
Practice the 83 most-asked CS Fundamentals interview questions, each with a model answer, key points, and the mistakes to avoid. Filter by difficulty, reveal answers, and rate your confidence to track how interview-ready you are.
83 questions Open in question bank
CS Fundamentals questions
- In the context of database keys, what distinguishes a candidate key from the primary key?Intermediate· multiple choiceFree
- A deadlock in a DBMS occurs when:Beginner· multiple choiceFree
- What does a database VIEW physically store by default (a standard, non-materialized view)?Intermediate· multiple choiceFree
- Which statement correctly contrasts the two-phase locking (2PL) protocol with its goal?Advanced· multiple choice₹99 (Interview Prep or Pro plan required)
- What is the key difference between a process and a thread?Beginner· multiple choiceFree
- Which condition is NOT one of the four Coffman conditions necessary for a deadlock?Intermediate· multiple choiceFree
- Under a non-preemptive Shortest Job First (SJF) scheduler, what problem can long processes suffer?Intermediate· multiple choiceFree
- What is the purpose of the TLB (Translation Lookaside Buffer) in a paged memory system?Intermediate· multiple choice₹99 (Interview Prep or Pro plan required)
- In the classic producer-consumer problem, why are counting semaphores (empty and full) plus a mutex used together?Advanced· multiple choice₹99 (Interview Prep or Pro plan required)
- Which page replacement algorithm can suffer from Belady's anomaly, where increasing the number of frames increases the number of page faults?Advanced· multiple choice₹99 (Interview Prep or Pro plan required)
- What distinguishes a mutex from a binary semaphore, despite both having two states?Advanced· multiple choice₹99 (Interview Prep or Pro plan required)
- What is thrashing in an operating system?Intermediate· multiple choiceFree
- Which layer of the OSI model is responsible for reliable end-to-end delivery, segmentation, and flow control?Beginner· multiple choiceFree
- During the TCP three-way handshake, what is the correct sequence of segments exchanged?Beginner· multiple choiceFree
- What is the primary functional difference between TCP and UDP?Beginner· multiple choiceFree
- A host has IP 192.168.10.75 with subnet mask 255.255.255.192 (/26). What is the network address of its subnet?Intermediate· multiple choice₹99 (Interview Prep or Pro plan required)
- What does the DNS protocol primarily do, and which transport does it typically use for standard queries?Intermediate· multiple choiceFree
- In TCP congestion control, what happens during the 'slow start' phase?Advanced· multiple choice₹99 (Interview Prep or Pro plan required)
- What is the primary role of the ARP (Address Resolution Protocol)?Intermediate· multiple choiceFree
- Why does the traditional 'stop-and-wait' ARQ protocol suffer from poor link utilization on high bandwidth-delay-product links, and what addresses it?Advanced· multiple choice₹99 (Interview Prep or Pro plan required)
- What is the difference between a process and a thread?Beginner· comparisonFree
- Find the maximum sum of a contiguous subarray (Kadane's algorithm).Beginner· codingFree
- How can deadlocks be prevented, avoided, detected and recovered from?Intermediate· conceptual₹99 (Interview Prep or Pro plan required)