Core CS interview questions for freshers: 5 tricks for OOPs, DBMS, OS and Computer Networks
The technical round for freshers usually mixes coding with core CS theory. These 5 tricks tell you what to revise first and give you a clear way to answer the questions that come up most: OOPs pillars, ACID, deadlock and what happens when you type a URL.
Published by Hirastra
Know the rounds first
Not every company tests all four subjects. Before revising, check how your target company hires (aptitude, coding, technical interview, HR) on hirastra.com/companies, then spend your time on what that company actually asks.
hirastra.com/companiesOOPs: the 4 pillars with your own example
Answer each pillar as define, then example, then why it helps, using a class from your own project rather than a textbook example. Also prepare overloading vs overriding and abstract class vs interface.
Encapsulation: private fields + getters Inheritance: Car extends Vehicle Polymorphism: overloading vs overriding Abstraction: interface / abstract classDBMS: explain ACID with a bank transfer
Use one example, moving 500 rupees from account A to account B, to explain all four properties. Next most asked: primary vs foreign key, 1NF/2NF/3NF and what an index does.
A: debit + credit both, or neither C: total money stays the same I: two transfers don't mix D: saved even if the server crashesOS: the 4 deadlock conditions
A deadlock needs all four conditions at the same time; breaking any one prevents it. Pair this with process vs thread (own memory vs shared memory), paging and Round Robin scheduling.
1. Mutual exclusion 2. Hold and wait 3. No preemption 4. Circular waitComputer Networks: what happens when you type google.com
This single question covers most of networking. Walk through the chain in order, then be ready for OSI (7 layers) vs TCP/IP (4 layers) and TCP vs UDP with one use case each.
DNS lookup -> IP address TCP handshake: SYN, SYN-ACK, ACK TLS handshake (HTTPS) HTTP GET -> response -> render
Skip the searching: today's verified openings are posted three times a day with official apply links, and you can check your resume against any of them with the free ATS checker.