Technical interviews for CSE freshers often mix fundamentals, project discussion, and a small coding task. The exact mix depends on the role. Use these questions to identify what you can explain, then practise solving unseen problems rather than memorising definitions.

Programming fundamentals and OOP

What is the difference between a value and a reference?

A value is the data itself; a reference identifies where an object can be accessed. The details vary by language. In Java, object variables hold references, while primitive variables hold primitive values. Give a short language-specific example if asked.

What are encapsulation and inheritance?

Encapsulation keeps an object’s state and behavior together and controls how outside code changes that state. Inheritance lets one class reuse or extend another class’s behavior. Prefer composition when inheritance would create a misleading “is-a” relationship.

What is polymorphism?

It is the ability to use a common interface while different implementations respond in their own way. For example, different payment methods can each implement a pay() operation.

Data structures and algorithms

When would you use a hash map instead of an array?

Use a hash map when you need lookup by a key and do not depend on contiguous numeric positions. Average lookup is often O(1), but worst-case behavior and iteration order depend on implementation. An array is simpler for indexed sequential data.

How do a stack and queue differ?

A stack removes the most recently added item first (LIFO), useful for undo or nested calls. A queue removes the earliest added item first (FIFO), useful for tasks processed in arrival order.

What does O(n log n) mean?

It describes how work grows with input size, ignoring constant factors. Efficient comparison sorts such as merge sort use O(n log n) time. Explain the algorithm’s steps before quoting its complexity.

DBMS and SQL

What is a primary key? What is a foreign key?

A primary key uniquely identifies a row in a table. A foreign key references a key in another table, helping enforce a relationship between rows.

What is an index, and what does it cost?

An index helps the database find rows for suitable queries without scanning every row. It consumes storage and can make writes more expensive because the index must be updated.

How would you find duplicate email addresses?

SELECT email, COUNT(*) AS total
FROM users
GROUP BY email
HAVING COUNT(*) > 1;

This groups identical non-null email values and keeps groups with more than one row. SQL treatment of NULL and case sensitivity depends on the database and collation; clarify the requirement in an interview.

Operating systems and networks

Process vs thread: what is the difference?

A process has its own address space and resources. Threads within a process share its address space while each has its own execution state. Sharing makes communication easier but requires care around concurrent access.

What happens when you open a website?

The browser resolves the domain, establishes a connection, sends an HTTP request, receives a response, and renders the page. HTTPS also involves TLS. Caching, redirects, and resource requests can add more steps.

Project and coding questions

Expect “What did you build?”, “Why did you choose this approach?”, “What broke?”, and “How did you test it?” Separate your contribution from team work. For a coding task, clarify input and constraints, try a small example, explain the approach, implement it, test edge cases, and then discuss complexity. The coding mock interview page gives a practice routine; the technical interview page covers speaking through concepts and projects.

If you are preparing for placements, pair this list with the B.Tech placement guide. A strong answer is accurate, concise, and clear about what you know versus what you would verify.

Ready to practise your next interview?

Try a realistic interview and carry one improvement into your next attempt.

Start AI Mock Interview