PUBLIC QUESTION PREVIEW
CS Fundamentals interview questions
OOPs, OS, Networking, DBMS — concepts every engineer must know cold.
Showing 12 of 32 source questions. Sample answers are study material, not employer-specific hiring guidance.
How to work through this preview
Attempt each question before reading its answer. For a concept, give a definition and a concrete example. For code, state constraints, walk through a small input, and check complexity. For design, separate requirements from assumptions and explain failure handling. Use real situations for behavioral answers.
QUESTION 1 / easy / conceptual
What are the four pillars of OOP? Give a real-world example for each.
Sample answer
Hints to guide your next attempt
- AIPE: Abstraction, Inheritance, Polymorphism, Encapsulation
Source tags: oop / encapsulation / inheritance / polymorphism / abstraction
QUESTION 2 / easy / conceptual
What is a process vs. a thread? What is a context switch?
Sample answer
Hints to guide your next attempt
- Processes have separate memory; threads share memory
- Context switch = saving and restoring CPU state
Source tags: os / process / thread / context-switch
QUESTION 3 / medium / conceptual
What is a deadlock? What are the four necessary conditions for it to occur?
Sample answer
Hints to guide your next attempt
- Coffman conditions — all four must hold simultaneously
Source tags: os / deadlock / concurrency / coffman
QUESTION 4 / easy / conceptual
Explain the TCP 3-way handshake. Why is it needed?
Supplied choices
- SYN → ACK → SYN-ACK
- SYN → SYN-ACK → ACK
- ACK → SYN → SYN-ACK
- SYN → SYN → ACK
Source answer choice: B. SYN → SYN-ACK → ACK
Sample answer
Hints to guide your next attempt
- SYN, SYN-ACK, ACK
- Establishes that both sides can send and receive
Source tags: networking / tcp / handshake / protocol
QUESTION 5 / medium / conceptual
What is database normalization? Explain 1NF, 2NF, and 3NF with a simple example.
Sample answer
Hints to guide your next attempt
- Each normal form fixes a specific type of redundancy
- Think about a student-course table with repeated data
Source tags: database / normalization / 1nf / 2nf / 3nf
QUESTION 6 / easy / conceptual
What is the difference between stack and heap memory? What causes a stack overflow?
Sample answer
Hints to guide your next attempt
- Stack is LIFO, heap is dynamic allocation
- Recursion uses stack frames
Source tags: memory / stack / heap / stack-overflow
QUESTION 7 / medium / conceptual
What is the SOLID principle? Explain each with one line.
Sample answer
Hints to guide your next attempt
- S-O-L-I-D — five design principles by Robert Martin
Source tags: solid / design-principles / oop / architecture
QUESTION 8 / easy / conceptual
What is the difference between a class and an object? How does instantiation work?
Sample answer
Hints to guide your next attempt
- Class = blueprint, object = instance in memory
- new allocates heap memory and calls the constructor
Source tags: oop / class / object / instantiation
QUESTION 9 / easy / conceptual
What is a constructor? Explain default, parameterized, and copy constructors.
Sample answer
Hints to guide your next attempt
- Constructor has no return type, same name as class
- In C#: copy constructor is not built-in — you write it manually
Source tags: oop / constructor / copy-constructor / constructor-chaining
QUESTION 10 / easy / conceptual
Explain encapsulation beyond "hiding data". What practical problems does it solve?
Sample answer
Hints to guide your next attempt
- Think: what breaks without encapsulation?
- Invariants, controlled mutation, change isolation
Source tags: oop / encapsulation / access-modifiers / invariants
QUESTION 11 / easy / conceptual
What are access modifiers? Explain public, private, protected, and internal in C#.
Sample answer
Hints to guide your next attempt
- C# has 6 access modifiers
- Default for class members is private
Source tags: oop / access-modifiers / encapsulation / csharp
QUESTION 12 / easy / conceptual
What are the types of inheritance? What does C# support?
Sample answer
Hints to guide your next attempt
- C# supports single class inheritance but multiple interface implementation
- Multi-level vs multiple are different things
Source tags: oop / inheritance / multiple-inheritance / diamond-problem
Check understanding, not recognition
- Can you explain the answer without reading it?
- Can you show when the approach fails or needs a different assumption?
- Can you connect the concept to a real project, task, or decision you have made?
- Can you distinguish a simplified interview example from a production requirement?
A LITTLE MORE CLARITY
Frequently asked questions
How many CS Fundamentals questions are shown here?
This public preview shows 12 questions with the supplied answers from the app's 32-question CS Fundamentals bank. Full interactive practice requires signing in.
Should I memorize the sample answers?
Use them as reference explanations, not a script or a guarantee of technical correctness for every environment. Explain your assumptions, validate code against your language and version, and discuss trade-offs. Behavioral answers should be built from your own experience.
What do hints and solution steps mean?
Hints identify ideas to consider before reading the answer. When the source question includes steps, they are shown as a separate walkthrough. Example capacities and design targets in a solution are assumptions for that exercise, not real system statistics.
BUILD YOUR NEXT OPPORTUNITY
Practice CS Fundamentals actively.
Sign in to use the full topic bank and interactive practice workspace.