AnslyGet started free

Ansly editorial team · 11/6/2026

Technical Interview Questions for Freshers: OOP, DBMS, OS and Networking (2026)

Technical rounds for freshers focus on fundamentals and your final-year project. Interviewers want short, correct explanations with an example — not textbook paragraphs. Revise these questions and say each answer out loud in under a minute.

Object-oriented programming

What are the four pillars of OOP?

Encapsulation (bundling data with methods and hiding internals), abstraction (exposing only what's needed), inheritance (reusing behaviour from a parent class) and polymorphism (one interface, many implementations).

What is the difference between overloading and overriding?

Overloading is the same method name with different parameters in one class (compile-time polymorphism). Overriding is a subclass redefining a parent's method with the same signature (runtime polymorphism).

Abstract class vs interface?

An abstract class can hold state and some implemented methods; a class extends only one. An interface defines a contract a class implements; a class can implement many.

DBMS and SQL

What is normalisation?

Organising tables to reduce redundancy and update anomalies — 1NF (atomic values), 2NF (no partial dependency on a composite key), 3NF (no transitive dependencies).

What are ACID properties?

Atomicity, Consistency, Isolation, Durability — the guarantees that make transactions reliable.

Write a query for the second-highest salary.

SELECT MAX(salary) FROM employees
WHERE salary < (SELECT MAX(salary) FROM employees);

Mention the alternative with DISTINCT ... ORDER BY salary DESC LIMIT 1 OFFSET 1, and how ties are handled.

Inner join vs left join?

An inner join returns only matching rows; a left join returns every row from the left table, with NULLs where there's no match.

Operating systems

Process vs thread?

A process has its own memory space; threads are lighter units of execution that share their process's memory, so they communicate faster but need synchronisation.

What is a deadlock?

Two or more processes each waiting for a resource the other holds. It needs four conditions: mutual exclusion, hold and wait, no pre-emption and circular wait.

What is virtual memory?

An abstraction that gives each process a large, private address space, backed by RAM and disk through paging.

Computer networks

What happens when you type a URL into a browser?

DNS resolves the domain to an IP; the browser opens a TCP connection (and a TLS handshake for HTTPS), sends an HTTP request, receives the response and renders the page.

TCP vs UDP?

TCP is connection-oriented and reliable (ordering, retransmission); UDP is connectionless and faster, used for streaming, gaming and DNS.

What are the OSI layers?

Physical, Data link, Network, Transport, Session, Presentation, Application.

Coding round favourites

Don't forget your project

Expect "walk me through your project": the problem, your role, the tech stack, one difficult bug and what you'd improve. Practise it in two minutes.

Find questions candidates reported at specific companies in our interview questions hub, and use the TCS preparation guide if you're applying there.

Frequently asked questions

What technical questions are asked to freshers?

Mostly OOP concepts, DBMS and SQL queries, operating-system basics (processes, threads, deadlock), networking basics (TCP vs UDP, DNS) and simple coding problems — plus your final-year project.

How should I prepare for a technical interview in a week?

Revise one topic per day, write the key SQL queries and code snippets by hand, and do two mock interviews out loud at the end of the week.

Which programming language should I use?

The one you know best. Interviewers care more about clear logic and correctness than the language.

Try Ansly free

Real-time AI answers, hidden during screen share.

Get started