Skip to the page

CS fundamentals · 21 concepts

CS fundamentals for campus interviews

Operating systems, DBMS, networks, OOP and programming basics, the topics campus interviewers ask freshers first.

Asked in these mock interviews

Part 1 · 5 concepts

Operating systems

  1. 01

    Process, thread, states and fork

    A process is a running program with its own memory. A thread is one path of execution inside a process. A process moves between states, and fork makes a new process.

  2. 02

    CPU scheduling and context switch

    The scheduler picks which ready process runs next. A context switch saves one process state and loads another.

  3. 03

    Race conditions, mutex and semaphore

    When threads share data, the result can depend on timing. A mutex or a semaphore makes access safe.

  4. 04

    Deadlock and its four conditions

    A deadlock is a set of processes that wait for each other forever. It needs four conditions together, so breaking one prevents it.

  5. 05

    Virtual memory, paging and thrashing

    Each process sees its own address space. The OS splits memory into pages and frames. When RAM is too small, the system can spend its time swapping.

Part 2 · 5 concepts

DBMS

  1. 06

    Keys and ER design

    Keys identify rows and link tables. An ER diagram turns a real situation into entities, relationships and tables.

  2. 07

    Normalisation: 1NF to BCNF

    Normalisation removes repeated data so that updates, inserts and deletes do not cause errors.

  3. 08

    Transaction theory in DBMS: ACID, schedules and serializability

    A transaction is one logical unit of work that takes the database from one valid state to another. DBMS theory explains how ACID is kept when many transactions run at…

  4. 09

    Joins, GROUP BY and common queries

    Joins combine tables. The join type decides which unmatched rows survive. GROUP BY with HAVING counts and filters groups.

  5. 10

    Indexes, views, procedures and triggers

    An index speeds up lookups. Views, procedures, functions and triggers keep logic in the database.

Part 3 · 3 concepts

Computer networks

  1. 11

    Network layers, TCP, UDP and the handshake

    Networks are described in layers. TCP gives reliable delivery; UDP gives speed. TCP starts with a three-way handshake.

  2. 12

    IP addresses, subnets and ports

    An IP address finds the machine, a port finds the program. A subnet mask tells which devices are on the same network.

  3. 13

    DNS, HTTPS, cookies and what happens for a URL

    When you open a website, DNS finds the address, TCP and TLS set up a safe connection, and cookies carry your login.

Part 4 · 4 concepts

Object-oriented programming

  1. 14

    The four pillars and encapsulation

    Encapsulation, abstraction, inheritance and polymorphism are four ideas. You must show each in code, not only name it.

  2. 15

    Overloading, overriding and constructor order

    Overloading is chosen by the compiler from argument types. Overriding is chosen at runtime from the real object.

  3. 16

    Abstract class, interface, composition and the diamond

    Choose between an abstract class and an interface, and between inheritance and composition, by the relationship you need.

  4. 17

    Small designs, static members and polymorphism in practice

    In a design question, name a few classes with clear jobs. Use polymorphism to remove repeated if-else.

Part 5 · 4 concepts

Programming basics

  1. 18

    Operators, pointers and passing arguments

    In C, small details such as ++ in one line and pointer arithmetic are asked often. Say "undefined" when the language says so.

  2. 19

    Stack, heap, strings and static in C

    Know where each variable lives and how long it lives. Many C bugs come from returning stack memory or changing a string literal.

  3. 20

    Recursion and tracing code

    A recursive function needs a base case and must move toward it. Trace the calls on paper, down and back up.

  4. 21

    Time complexity and coding-test problems

    Know how to count the cost of loops and how to fix Time Limit Exceeded or a crash on a large test.

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview