0% found this document useful (0 votes)
3 views24 pages

PlaceValue Interview Questions

The document is a comprehensive interview question bank compiled by PlaceValue, featuring 300 frequently asked questions across various technical and HR topics relevant to candidates interviewing with 20 leading companies. It includes structured answers to common questions, covering areas such as Object-Oriented Programming, Database Management Systems, and behavioral interview strategies. The resource aims to prepare candidates for both technical assessments and HR interviews by providing insights into effective responses and key concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views24 pages

PlaceValue Interview Questions

The document is a comprehensive interview question bank compiled by PlaceValue, featuring 300 frequently asked questions across various technical and HR topics relevant to candidates interviewing with 20 leading companies. It includes structured answers to common questions, covering areas such as Object-Oriented Programming, Database Management Systems, and behavioral interview strategies. The resource aims to prepare candidates for both technical assessments and HR interviews by providing insights into effective responses and key concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PlaceValue

The Last Mile of Education


[Link] | 300 Company Interview Questions Bank

COMPANY INTE RVIEW PREP B ANK

300 Most Frequently Asked Interview Questions


PlaceValue Placement Accelerator — Master Interview Question Bank
Compiled from real, recently reported recruitment and interview patterns across 20 leading
recruiters

This bank blends the two rounds candidates actually face at these recruiters — technical fundamentals (OOPs,
DBMS/SQL, OS, Computer Networks, DSA, coding, system design, security) and the HR/behavioural round — along with
the quantitative aptitude and logical reasoning topics tested in most online assessments. Questions are presented
continuously, without being split by company, since the same core topics repeat across nearly every recruiter listed below.

Companies Referenced for This Question Bank


1. TCS 11. IBM
2. Infosys 12. Amazon
3. Wipro 13. Microsoft
4. LSEG (London Stock Exchange Group) 14. Google
5. Barracuda Networks 15. Deloitte
6. Accenture 16. EY
7. Cognizant 17. Mu Sigma
8. Capgemini 18. ZS Associates
9. HCLTech 19. Genpact
10. Tech Mahindra 20. LTIMindtree

PlaceValue · 300 Most Frequently Asked Interview Questions Page 1 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Q1. Tell me about yourself.


Ans: Give a brief, structured walkthrough of your education, key skills, a project or achievement you're proud of,
and why you're excited about this role — keep it under two minutes and avoid simply repeating your resume line
by line.

Q2. Why do you want to join this company?


Ans: Show that you've researched the company's business, culture, and recent work, and connect it to your own
skills and career goals rather than giving a generic answer.

Q3. What are your strengths?


Ans: Pick two or three strengths relevant to the role, and back each one with a short, specific example instead of
just listing adjectives.

Q4. What is your biggest weakness?


Ans: Choose a genuine but non-critical weakness, and focus most of the answer on the concrete steps you're
taking to improve it.

Q5. Where do you see yourself in five years?


Ans: Describe realistic growth within the company or industry, showing ambition while staying grounded and
aligned with the role you're applying for.

Q6. Why should we hire you?


Ans: Summarize the specific skills and experiences that make you a strong fit, and connect them directly to the
requirements of the job.

Q7. Describe a time you worked in a team.


Ans: Use a short story with a clear situation, your specific contribution, and the outcome, highlighting
collaboration and communication.

Q8. Describe a time you faced a conflict at work or college and how you resolved it.
Ans: Explain the disagreement briefly, focus on how you listened and communicated to reach a resolution, and
end with what you learned.

Q9. How do you handle pressure or tight deadlines?


Ans: Talk about prioritization, breaking work into smaller tasks, and staying calm, backed by a real example
where this approach worked.

Q10. What motivates you to do good work?


Ans: Be honest — common answers include learning new things, solving problems, seeing tangible impact, or
growing in your career — and give a brief reason why.

Q11. Are you willing to relocate or work in shifts?


Ans: Answer honestly; if you're flexible, say so clearly, as recruiters value candidates who show adaptability.

Q12. What do you know about our company?


Ans: Mention the company's core business, recent achievements or products, and its market position to show
genuine preparation.

Q13. Why did you choose this field of study?


Ans: Briefly connect a personal interest or experience to why you pursued this stream, and tie it to your current
career direction.

Q14. What is your final year / major project about?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 2 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: Explain the problem it solves, the technologies used, your specific role, and one challenge you overcame
while building it.

Q15. Do you have any backlogs or gaps in your academics?


Ans: Answer honestly; if there were backlogs, briefly explain and emphasize that they are cleared and what you
learned from the experience.

Q16. How do you handle failure or criticism?


Ans: Show that you view feedback as a learning opportunity, and give a short example of a time criticism helped
you improve.

Q17. Describe your ideal work environment.


Ans: Mention qualities like collaboration, learning opportunities, and clear communication, while staying
flexible about the specifics.

Q18. What are your short-term and long-term career goals?


Ans: Short-term should focus on learning the role deeply; long-term can mention growing into more senior or
specialized responsibilities.

Q19. Tell us about a time you took initiative.


Ans: Describe a situation where you went beyond what was asked, the action you took, and the positive result it
created.

Q20. How do you prioritize multiple tasks or deadlines?


Ans: Explain a simple method such as listing tasks by urgency and impact, and give an example of applying it
successfully.

Q21. What would your friends or professors say about you?


Ans: Choose two or three genuine traits — such as reliable, hardworking, or a good listener — and briefly justify
each.

Q22. Do you have any questions for us?


Ans: Always ask something thoughtful, such as about the team you'd join, growth opportunities, or what success
looks like in the first six months.

Q23. What is your salary expectation?


Ans: For freshers, it's usually safe to say you're open to the company's standard package for the role; for
experienced hires, give a realistic range based on market research.

Q24. Are you comfortable working night shifts or rotational shifts?


Ans: Answer truthfully based on your actual availability, since honesty here avoids future mismatch with the
role.

Q25. How would you handle a disagreement with your manager?


Ans: Emphasize listening to understand their perspective first, presenting your view respectfully with reasoning,
and ultimately supporting the team's decision.

Q26. What makes you different from other candidates?


Ans: Highlight a unique combination of skills, projects, or experiences, explained with a concrete example rather
than a vague claim.

Q27. Tell me about a project you are most proud of.

PlaceValue · 300 Most Frequently Asked Interview Questions Page 3 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: Briefly explain the goal, your role, the tools or techniques used, and the measurable impact or result it
achieved.

Q28. How do you keep yourself updated with new technology?


Ans: Mention specific habits such as following tech blogs, taking online courses, building side projects, or
participating in coding communities.

Q29. Have you worked on live projects or internships?


Ans: Summarize the internship's scope, your contribution, and one key skill or lesson you gained from the
experience.

Q30. What do you do in your free time?


Ans: Share genuine hobbies briefly; interviewers use this to gauge personality and whether you can talk naturally
beyond rehearsed answers.

Q31. Why did you leave your last job? (for experienced candidates)
Ans: Keep it positive and forward-looking, focusing on seeking growth or a new challenge rather than criticizing
a previous employer.

Q32. How do you handle working with a difficult team member?


Ans: Focus on staying professional, communicating clearly, and finding common ground to keep the project
moving forward.

Q33. Describe a situation where you had to learn something new quickly.
Ans: Explain the context, the resources you used to learn fast, and how you successfully applied the new skill.

Q34. What is your understanding of teamwork?


Ans: Describe it as combining individual strengths, communicating openly, and holding each other accountable
to reach a shared goal.

Q35. How do you define success?


Ans: A balanced answer connects personal growth, consistent effort, and delivering value to the team or
organization.

Q36. Tell me about a time you made a mistake at work or college.


Ans: Own the mistake honestly, explain how you fixed it, and highlight the lesson that changed how you work
now.

Q37. What kind of role are you looking for?


Ans: Align your answer with the job description, showing that you understand the responsibilities and are
genuinely interested in them.

Q38. How do you manage work-life balance?


Ans: Mention practical habits like setting boundaries, planning your day, and taking short breaks to stay
productive without burning out.

Q39. What is one thing you would change about yourself professionally?
Ans: Pick a real, improvable trait such as public speaking confidence or delegation, and mention the steps you're
taking to work on it.

Q40. Why is there a gap in your resume?


Ans: Explain honestly — whether it was upskilling, personal reasons, or family responsibilities — and pivot to
how you used that time productively.

PlaceValue · 300 Most Frequently Asked Interview Questions Page 4 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Q41. What is Object-Oriented Programming?


Ans: It is a programming paradigm built around objects that bundle data and behavior together, organized using
classes, and structured around four core principles: encapsulation, abstraction, inheritance, and polymorphism.

Q42. What is a class and an object?


Ans: A class is a blueprint that defines properties and behavior, while an object is a specific instance of that class
created in memory with actual values.

Q43. What is encapsulation?


Ans: It is the practice of bundling data and the methods that operate on it within a single unit, and restricting
direct access to internal details using access modifiers.

Q44. What is abstraction?


Ans: It means exposing only the essential features of an object while hiding the internal implementation details,
typically achieved through abstract classes or interfaces.

Q45. What is inheritance?


Ans: It is a mechanism where a child class acquires the properties and behavior of a parent class, enabling code
reuse and hierarchical relationships.

Q46. What is polymorphism?


Ans: It is the ability of a function or method to behave differently based on the object calling it, achieved through
method overloading (compile-time) and method overriding (runtime).

Q47. What is the difference between method overloading and overriding?


Ans: Overloading involves multiple methods with the same name but different parameters within the same class,
while overriding involves a subclass redefining a method already defined in its parent class.

Q48. What is the difference between an abstract class and an interface?


Ans: An abstract class can have both implemented and abstract methods and supports constructors, while an
interface traditionally only declares method signatures and supports multiple inheritance.

Q49. What is constructor overloading?


Ans: It refers to defining multiple constructors in a class with different parameter lists so objects can be
initialized in different ways.

Q50. What is a static keyword used for?


Ans: It marks a variable or method as belonging to the class itself rather than any specific instance, so it is shared
across all objects.

Q51. What is the difference between a class variable and an instance variable?
Ans: A class variable is shared across all instances of a class, while an instance variable holds a separate value
for each individual object.

Q52. What is multiple inheritance, and why doesn't Java support it directly through classes?
Ans: It is when a class inherits from more than one parent class; Java avoids this for classes to prevent ambiguity
(the diamond problem) but allows it through interfaces.

Q53. What is a constructor?


Ans: It is a special method automatically called when an object is created, used to initialize the object's state.

Q54. What is the difference between composition and inheritance?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 5 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: Inheritance models an "is-a" relationship between classes, while composition models a "has-a" relationship
where one class contains an instance of another.

Q55. What is method binding, and what are its types?


Ans: Binding refers to connecting a method call with its definition; static binding happens at compile time (as
with overloading) and dynamic binding happens at runtime (as with overriding).

Q56. What is the difference between a structure and a class?


Ans: In most languages, structures are simpler value-type containers usually with public members and no
inheritance, while classes support access control, inheritance, and richer behavior.

Q57. What is garbage collection?


Ans: It is an automatic memory management process where the runtime environment reclaims memory occupied
by objects that are no longer referenced by the program.

Q58. What is a destructor and how does it differ across languages?


Ans: A destructor is a special method invoked when an object is destroyed to release resources; languages with
garbage collection like Java and Python usually replace it with automatic cleanup instead of explicit destructors.

Q59. What is the difference between deep copy and shallow copy?
Ans: A shallow copy duplicates only the top-level structure while still referencing the same nested objects,
whereas a deep copy recursively duplicates all nested objects as well.

Q60. What is method overriding used for in real-world design?


Ans: It allows a subclass to provide a specialized implementation of a behavior already defined in its parent,
supporting flexible and extensible designs like plugin systems.

Q61. What is the "this" keyword used for?


Ans: It refers to the current instance of a class, commonly used to distinguish instance variables from parameters
with the same name.

Q62. What is the "super" keyword used for?


Ans: It is used within a subclass to access the parent class's methods, constructors, or variables.

Q63. Can a constructor be private, and why would you do that?


Ans: Yes; a private constructor is often used in the Singleton design pattern to prevent external classes from
creating new instances directly.

Q64. What is a Singleton design pattern?


Ans: It ensures a class has only one instance throughout the application and provides a single global point of
access to it.

Q65. What are access modifiers and what are the common types?
Ans: They control the visibility of classes, methods, and variables; common types include public, private,
protected, and default (package-level in Java).

Q66. What is the difference between an interface and a fully abstract class in Java 8+?
Ans: Java 8 interfaces can now include default and static methods, narrowing the gap, but interfaces still cannot
hold constructor logic or instance state the way abstract classes can.

Q67. What is coupling and cohesion in OOP design?


Ans: Coupling measures how dependent classes are on each other (lower is better), while cohesion measures
how focused a single class's responsibilities are (higher is better).

PlaceValue · 300 Most Frequently Asked Interview Questions Page 6 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Q68. What is the SOLID principle in object-oriented design?


Ans: It's a set of five design guidelines — Single Responsibility, Open/Closed, Liskov Substitution, Interface
Segregation, and Dependency Inversion — aimed at making code more maintainable and extensible.

Q69. What is dynamic method dispatch?


Ans: It's the process by which a call to an overridden method is resolved at runtime based on the actual object
type rather than the reference type.

Q70. Why is OOP preferred for large-scale software projects?


Ans: It promotes modularity, reusability, and easier maintenance by organizing code into self-contained objects
that model real-world entities and interactions.

Q71. What is DBMS?


Ans: A Database Management System is software that lets users create, store, manage, and retrieve data in a
structured and efficient way while ensuring data integrity and security.

Q72. What is the difference between DBMS and RDBMS?


Ans: DBMS stores data as files without necessarily enforcing relationships, while RDBMS organizes data into
related tables and enforces constraints like primary and foreign keys.

Q73. What is a primary key?


Ans: It's a column or set of columns that uniquely identifies each row in a table and cannot contain null values.

Q74. What is a foreign key?


Ans: It's a column in one table that references the primary key of another table, used to establish and enforce a
link between the two.

Q75. What is normalization and why is it used?


Ans: It's the process of organizing tables to reduce data redundancy and improve data integrity by dividing large
tables into smaller, related ones.

Q76. What are the different normal forms?


Ans: Common ones are 1NF (atomic values, no repeating groups), 2NF (no partial dependency), 3NF (no
transitive dependency), and BCNF (a stricter version of 3NF).

Q77. What is denormalization?


Ans: It's the deliberate process of combining normalized tables to improve read performance, often used in
reporting or analytics systems at the cost of some redundancy.

Q78. What is a join in SQL and what are its types?


Ans: A join combines rows from two or more tables based on a related column; common types are INNER JOIN,
LEFT JOIN, RIGHT JOIN, and FULL OUTER JOIN.

Q79. What is the difference between INNER JOIN and OUTER JOIN?
Ans: INNER JOIN returns only matching rows from both tables, while OUTER JOIN also returns unmatched
rows from one or both tables, filled with nulls where there's no match.

Q80. What is the difference between DELETE, TRUNCATE, and DROP?


Ans: DELETE removes specific rows and can be rolled back, TRUNCATE removes all rows quickly without
logging individual deletions, and DROP removes the entire table structure permanently.

Q81. What is the difference between WHERE and HAVING?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 7 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: WHERE filters rows before any grouping happens, while HAVING filters groups after a GROUP BY
clause has been applied, often used with aggregate functions.

Q82. What is a subquery?


Ans: It's a query nested inside another SQL query, used to supply intermediate results that the outer query can
then filter or compute on.

Q83. What is the difference between UNION and UNION ALL?


Ans: UNION combines results from two queries and removes duplicate rows, while UNION ALL combines
them without removing duplicates, making it faster.

Q84. What is indexing in a database?


Ans: It's a data structure, often a B-tree, that speeds up data retrieval by allowing the database to locate rows
without scanning the entire table.

Q85. What are the trade-offs of using too many indexes?


Ans: While indexes speed up reads, they slow down writes since every insert, update, or delete must also update
the index structures.

Q86. What is a stored procedure?


Ans: It's a precompiled set of SQL statements stored in the database that can be executed as a single callable
unit, improving performance and reusability.

Q87. What is a trigger in SQL?


Ans: It's a set of instructions that automatically executes in response to a specific event on a table, such as an
insert, update, or delete.

Q88. What are ACID properties?


Ans: Atomicity, Consistency, Isolation, and Durability — a set of guarantees that ensure database transactions
are processed reliably even in case of failures.

Q89. What is a transaction in DBMS?


Ans: It's a logical unit of work made up of one or more operations that are executed as a single, all-or-nothing
action on the database.

Q90. What is the difference between a clustered and a non-clustered index?


Ans: A clustered index physically reorders the table's rows to match the index and allows only one per table,
while a non-clustered index keeps a separate structure pointing back to the actual rows.

Q91. What is a view in SQL?


Ans: It's a virtual table based on the result of a stored query, used to simplify complex queries or restrict access
to specific columns.

Q92. What is the difference between a candidate key and a primary key?
Ans: A table can have multiple candidate keys that could each uniquely identify a row, but only one of them is
chosen as the primary key.

Q93. What is data redundancy and why is it a problem?


Ans: It's the unnecessary duplication of data across a database, which wastes storage and can lead to inconsistent
data if one copy is updated but not the others.

Q94. What is the difference between SQL and NoSQL databases?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 8 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: SQL databases are relational, use structured schemas and tables, and are ideal for structured data with
complex relationships; NoSQL databases are non-relational, more flexible in schema, and suited to large-scale or
unstructured data.

Q95. What is a composite key?


Ans: It's a primary key made up of two or more columns that together uniquely identify a row, even though no
single column can do so alone.

Q96. What is the difference between a schema and an instance in DBMS?


Ans: A schema is the overall design or structure of the database (tables, columns, relationships), while an
instance is the actual data stored in the database at a given moment.

Q97. What is data integrity in a database?


Ans: It refers to the accuracy, consistency, and reliability of data throughout its lifecycle, enforced through
constraints like primary keys, foreign keys, and validation rules.

Q98. What is the difference between EXISTS and IN in SQL?


Ans: IN compares a value against a fixed list or subquery result, while EXISTS checks only whether a subquery
returns any rows at all, which is often more efficient for large datasets.

Q99. What is deadlock in the context of databases?


Ans: It occurs when two or more transactions are waiting on locks held by each other, with neither able to
proceed, requiring the database to detect and roll back one of them.

Q100. What is the difference between DDL, DML, and DCL commands?
Ans: DDL (like CREATE, ALTER, DROP) defines database structure, DML (like INSERT, UPDATE,
DELETE) manipulates data, and DCL (like GRANT, REVOKE) controls access permissions.

Q101. What is a self join?


Ans: It's a join where a table is joined with itself, typically used to compare rows within the same table, such as
finding employees who share the same manager.

Q102. What is database sharding?


Ans: It's a technique that horizontally splits a large database into smaller, independent pieces called shards,
distributed across multiple servers to improve scalability.

Q103. What is the difference between a primary key and a unique key?
Ans: A table can have only one primary key and it cannot be null, while it can have multiple unique keys that
can each accept a single null value.

Q104. What is referential integrity?


Ans: It's a database rule ensuring that a foreign key value always matches an existing primary key value in the
referenced table, preventing orphaned records.

Q105. What is the CAP theorem?


Ans: It states that a distributed database can only guarantee two of the following three at once: Consistency,
Availability, and Partition tolerance.

Q106. What is an operating system?


Ans: It's system software that manages hardware resources and provides common services for application
programs, acting as an intermediary between the user and the computer hardware.

Q107. What is the difference between a process and a thread?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 9 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: A process is an independent program in execution with its own memory space, while a thread is a
lightweight unit of execution within a process that shares memory with other threads of the same process.

Q108. What is multithreading and why is it used?


Ans: It's the ability to run multiple threads concurrently within a single process, used to improve performance by
utilizing CPU cores efficiently and keeping applications responsive.

Q109. What is a deadlock?


Ans: It's a situation where two or more processes are stuck waiting indefinitely for resources held by each other,
with none able to proceed.

Q110. What are the four necessary conditions for a deadlock?


Ans: Mutual exclusion, hold and wait, no preemption, and circular wait — all four must hold simultaneously for
a deadlock to occur.

Q111. What is process synchronization and why is it needed?


Ans: It's a set of mechanisms that coordinate the execution of concurrent processes so they access shared
resources safely without producing inconsistent results.

Q112. What is a semaphore?


Ans: It's a synchronization tool that uses a counter to control access to a shared resource, preventing race
conditions among multiple processes or threads.

Q113. What is the difference between a mutex and a semaphore?


Ans: A mutex allows only one thread to access a resource at a time and is owned by the thread that locks it,
while a semaphore can allow multiple threads to access a resource up to a set limit.

Q114. What is virtual memory?


Ans: It's a memory management technique that gives programs the illusion of a large, continuous memory space
by using disk storage to extend physical RAM.

Q115. What is paging?


Ans: It's a memory management scheme that divides memory into fixed-size blocks called pages and frames,
avoiding fragmentation issues caused by variable-size partitioning.

Q116. What is thrashing?


Ans: It's a condition where the system spends more time swapping pages in and out of memory than executing
actual processes, causing severe performance degradation.

Q117. What is the difference between preemptive and non-preemptive scheduling?


Ans: In preemptive scheduling, the CPU can be taken away from a running process before it finishes, while in
non-preemptive scheduling, a process runs to completion or until it voluntarily yields.

Q118. What are common CPU scheduling algorithms?


Ans: First-Come-First-Served, Shortest Job First, Priority Scheduling, and Round Robin are among the most
commonly discussed algorithms.

Q119. What is a race condition?


Ans: It occurs when multiple threads or processes access shared data concurrently and the final outcome depends
on the unpredictable timing of their execution.

Q120. What is context switching?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 10 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: It's the process of storing the state of a currently running process and loading the state of another, allowing
the CPU to switch between multiple processes.

Q121. What is the difference between logical address and physical address?
Ans: A logical address is generated by the CPU during a program's execution, while a physical address refers to
the actual location in main memory, mapped by the memory management unit.

Q122. What is fragmentation, and what are its types?


Ans: It's wasted memory space that accumulates over time; internal fragmentation occurs within allocated
blocks, while external fragmentation occurs as free memory becomes scattered in small unusable chunks.

Q123. What is the difference between belady's anomaly and normal page replacement behavior?
Ans: Belady's anomaly is the counterintuitive situation where increasing the number of page frames actually
increases the number of page faults, observed with certain algorithms like FIFO.

Q124. What is a system call?


Ans: It's a controlled entry point that allows a user program to request services from the operating system's
kernel, such as file access or process creation.

Q125. What is the difference between a kernel and a shell?


Ans: The kernel is the core of the OS that manages hardware and system resources directly, while the shell is the
user-facing interface that lets users interact with the kernel through commands.

Q126. What is dynamic memory allocation?


Ans: It's the process of allocating memory during program execution rather than at compile time, commonly
done through functions like malloc in C or the "new" keyword in Java/C++.

Q127. What is the difference between a monolithic kernel and a microkernel?


Ans: A monolithic kernel runs most OS services in a single large kernel space for speed, while a microkernel
runs only essential services in kernel space and moves the rest to user space for better modularity and stability.

Q128. What is a zombie process?


Ans: It's a process that has completed execution but still has an entry in the process table because its parent hasn't
yet read its exit status.

Q129. What is the banker's algorithm used for?


Ans: It's a deadlock avoidance algorithm that simulates resource allocation in advance to ensure the system
remains in a safe state before actually granting resources.

Q130. What is the difference between spooling and buffering?


Ans: Buffering temporarily holds data to smooth out speed differences between devices, while spooling queues
jobs (like print jobs) so a slower device can process them independently without blocking other tasks.

Q131. What is the OSI model?


Ans: It's a seven-layer conceptual framework — Physical, Data Link, Network, Transport, Session, Presentation,
and Application — that standardizes how different networking systems communicate.

Q132. What is the difference between the OSI model and the TCP/IP model?
Ans: The OSI model has seven distinct layers used mainly as a teaching and reference framework, while the
TCP/IP model condenses these into four practical layers actually used in real-world networking.

Q133. What is the difference between TCP and UDP?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 11 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: TCP is connection-oriented, reliable, and ensures ordered delivery with error checking, while UDP is
connectionless, faster, and doesn't guarantee delivery or order — suited to real-time applications like video
streaming.

Q134. What is an IP address?


Ans: It's a unique numerical label assigned to each device on a network, used to identify and locate it for
communication purposes.

Q135. What is the difference between IPv4 and IPv6?


Ans: IPv4 uses a 32-bit address space allowing about 4.3 billion addresses, while IPv6 uses a 128-bit address
space, offering a vastly larger pool to accommodate the growing number of connected devices.

Q136. What is a subnet mask used for?


Ans: It's used to divide an IP address into network and host portions, helping routers determine which part
identifies the network and which identifies the specific device.

Q137. What is DNS and why is it needed?


Ans: The Domain Name System translates human-readable domain names into IP addresses, allowing users to
access websites without memorizing numeric addresses.

Q138. What is the three-way handshake in TCP?


Ans: It's the process TCP uses to establish a connection: the client sends a SYN, the server responds with SYN-
ACK, and the client confirms with an ACK before data transfer begins.

Q139. What is the difference between a router and a switch?


Ans: A switch connects devices within the same local network and forwards data based on MAC addresses,
while a router connects different networks together and forwards data based on IP addresses.

Q140. What is a firewall?


Ans: It's a security system that monitors and controls incoming and outgoing network traffic based on a defined
set of rules, acting as a barrier between trusted and untrusted networks.

Q141. What is the difference between HTTP and HTTPS?


Ans: HTTPS is the secure version of HTTP that encrypts data in transit using SSL/TLS, protecting it from being
intercepted or tampered with.

Q142. What is a MAC address?


Ans: It's a unique hardware identifier assigned to a device's network interface, used for communication within a
local network at the data link layer.

Q143. What is the difference between a hub, switch, and router?


Ans: A hub broadcasts data to all connected devices without filtering, a switch forwards data intelligently to the
specific device using MAC addresses, and a router directs data between different networks using IP addresses.

Q144. What is NAT (Network Address Translation)?


Ans: It's a technique that maps private internal IP addresses to a public IP address, allowing multiple devices on
a local network to share a single external IP.

Q145. What is a proxy server?


Ans: It's an intermediary server that sits between a client and the internet, forwarding requests on the client's
behalf while providing benefits like caching, filtering, or anonymity.

Q146. What is the difference between a VPN and a proxy?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 12 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: A VPN encrypts all of a device's traffic and routes it through a secure tunnel, while a proxy typically only
redirects specific application traffic without necessarily encrypting it.

Q147. What is DHCP used for?


Ans: The Dynamic Host Configuration Protocol automatically assigns IP addresses and other network
configuration details to devices joining a network.

Q148. What is latency versus bandwidth?


Ans: Latency is the time delay for data to travel from source to destination, while bandwidth is the maximum
amount of data that can be transmitted over a network in a given time.

Q149. What is the difference between symmetric and asymmetric encryption?


Ans: Symmetric encryption uses the same key for both encryption and decryption, making it faster, while
asymmetric encryption uses a public-private key pair, offering stronger security for exchanging keys.

Q150. What is a DDoS attack?


Ans: A Distributed Denial-of-Service attack floods a target system with overwhelming traffic from multiple
sources, making it unavailable to legitimate users.

Q151. What is the difference between circuit switching and packet switching?
Ans: Circuit switching sets up a dedicated communication path for the entire session, while packet switching
breaks data into packets that travel independently and are reassembled at the destination.

Q152. What is a socket in networking?


Ans: It's an endpoint for sending and receiving data across a network, identified by a combination of an IP
address and a port number.

Q153. What is the purpose of the ARP protocol?


Ans: The Address Resolution Protocol maps a known IP address to its corresponding MAC address on a local
network.

Q154. What is a VLAN?


Ans: A Virtual Local Area Network logically segments a physical network into separate broadcast domains,
improving security and traffic management without needing separate physical hardware.

Q155. What is SSL/TLS handshake used for?


Ans: It's the process by which a client and server establish a secure, encrypted connection by agreeing on
encryption methods and exchanging keys before any data is transmitted.

Q156. What is a data structure?


Ans: It's a way of organizing and storing data so it can be accessed and modified efficiently, chosen based on the
specific operations an application needs to perform.

Q157. What is the difference between an array and a linked list?


Ans: An array stores elements in contiguous memory with fast index-based access but costly insertions/deletions,
while a linked list stores elements as nodes connected by pointers, allowing efficient insertions/deletions but
slower access by index.

Q158. What is a linked list, and what are its types?


Ans: It's a linear data structure where elements (nodes) are connected using pointers; common types include
singly linked lists, doubly linked lists, and circular linked lists.

Q159. What is a stack, and where is it used?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 13 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: It's a linear data structure that follows Last-In-First-Out order, commonly used in function call
management, undo operations, and expression evaluation.

Q160. What is a queue, and where is it used?


Ans: It's a linear data structure that follows First-In-First-Out order, commonly used in task scheduling, printer
queues, and breadth-first search.

Q161. What is the difference between a stack and a queue?


Ans: A stack removes the most recently added element first (LIFO), while a queue removes the oldest added
element first (FIFO).

Q162. What is a circular queue and why is it useful?


Ans: It's a queue where the last position connects back to the first, avoiding the wasted space that occurs in a
simple linear queue after repeated enqueue and dequeue operations.

Q163. What is a binary tree?


Ans: It's a hierarchical data structure where each node has at most two children, commonly referred to as the left
and right child.

Q164. What is a binary search tree?


Ans: It's a binary tree where the left subtree of a node contains only values smaller than the node, and the right
subtree contains only values greater, enabling efficient searching.

Q165. What is tree traversal, and what are its common types?
Ans: It's the process of visiting all nodes in a tree in a specific order; common types are inorder, preorder, and
postorder (depth-first), and level-order (breadth-first).

Q166. What is a balanced binary tree, and why does it matter?


Ans: It's a tree where the height difference between left and right subtrees of any node is minimal, ensuring
operations like search stay close to logarithmic time instead of degrading to linear time.

Q167. What is an AVL tree?


Ans: It's a self-balancing binary search tree where the height difference between left and right subtrees of any
node is at most one, maintained through rotations after insertions and deletions.

Q168. What is a heap, and what are its types?


Ans: It's a complete binary tree that satisfies the heap property; in a max-heap the parent is always greater than
its children, and in a min-heap the parent is always smaller.

Q169. What is a graph, and what are its representations?


Ans: It's a collection of nodes (vertices) connected by edges, commonly represented using an adjacency matrix
or an adjacency list.

Q170. What is the difference between BFS and DFS?


Ans: Breadth-First Search explores a graph level by level using a queue, while Depth-First Search explores as far
as possible along a branch before backtracking, typically using a stack or recursion.

Q171. What is the time complexity of common sorting algorithms?


Ans: Bubble, insertion, and selection sort run in O(n²); merge sort and heap sort run in O(n log n); and quicksort
averages O(n log n) but can degrade to O(n²) in the worst case.

Q172. What is the difference between linear search and binary search?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 14 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: Linear search checks each element sequentially and works on any list in O(n) time, while binary search
repeatedly halves a sorted list to find an element in O(log n) time.

Q173. What is recursion, and what are its key components?


Ans: It's a technique where a function calls itself to solve smaller instances of a problem, requiring a base case to
stop and a recursive case that moves toward it.

Q174. What is the difference between recursion and iteration?


Ans: Recursion solves a problem by breaking it into smaller sub-problems through repeated function calls, while
iteration solves it using loops; recursion is often more elegant but uses more memory due to the call stack.

Q175. What is dynamic programming?


Ans: It's an optimization technique that solves complex problems by breaking them into overlapping sub-
problems, solving each only once, and storing the results for reuse.

Q176. What is the difference between dynamic programming and greedy algorithms?
Ans: Dynamic programming considers all possible choices and combines optimal sub-solutions to guarantee a
globally optimal answer, while greedy algorithms make the locally best choice at each step, which is faster but
doesn't always yield an optimal result.

Q177. What is memoization?


Ans: It's a technique used in dynamic programming where results of expensive function calls are cached, so
repeated calls with the same inputs return instantly instead of recomputing.

Q178. What is time complexity and why does it matter?


Ans: It's a measure of how the runtime of an algorithm grows as the input size increases, helping developers
compare and choose efficient algorithms for large-scale data.

Q179. What is space complexity?


Ans: It's a measure of the total amount of memory an algorithm needs relative to its input size, including both the
input and any auxiliary space used.

Q180. What is Big O notation?


Ans: It's a mathematical notation used to describe the upper bound of an algorithm's growth rate, focusing on
worst-case performance as input size increases.

Q181. What is a hash table, and how does it achieve fast lookups?
Ans: It's a data structure that maps keys to values using a hash function to compute an index, allowing average-
case constant-time insertion, deletion, and lookup.

Q182. What is a hash collision, and how is it handled?


Ans: It occurs when two different keys produce the same hash index; it's commonly resolved using chaining
(storing multiple entries in a list at that index) or open addressing (probing for the next free slot).

Q183. What is the difference between a complete binary tree and a full binary tree?
Ans: A full binary tree requires every node to have either zero or two children, while a complete binary tree
requires all levels to be fully filled except possibly the last, which fills from left to right.

Q184. What is a trie, and where is it used?


Ans: It's a tree-like data structure used to store strings efficiently, commonly used in autocomplete features and
dictionary lookups by sharing common prefixes.

Q185. What is the two-pointer technique?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 15 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: It's an approach that uses two indices moving through a data structure (often from opposite ends or at
different speeds) to solve problems like pair-sum or cycle detection in fewer passes.

Q186. What is the sliding window technique?


Ans: It's a technique that maintains a moving subset (window) of elements from a larger array or string to
efficiently solve problems involving contiguous subarrays or substrings.

Q187. What is a priority queue?


Ans: It's an abstract data type where each element has a priority, and elements are served based on that priority
rather than strictly the order they were added, often implemented using a heap.

Q188. What is the difference between a doubly linked list and a singly linked list?
Ans: A singly linked list allows traversal in only one direction using a next pointer, while a doubly linked list has
both next and previous pointers, allowing traversal in both directions.

Q189. How do you detect a cycle in a linked list?


Ans: Floyd's cycle detection algorithm (the "tortoise and hare" method) uses two pointers moving at different
speeds; if they ever meet, a cycle exists.

Q190. What is the difference between depth-first search and backtracking?


Ans: DFS is a traversal technique that explores as deep as possible along each branch, while backtracking builds
on DFS by abandoning a path as soon as it's determined not to lead to a valid solution.

Q191. What is a self-balancing tree used for in real systems?


Ans: Structures like AVL and Red-Black trees are used in databases and file systems to keep lookup, insertion,
and deletion operations efficient even as data grows.

Q192. What is the master theorem used for?


Ans: It provides a way to determine the time complexity of divide-and-conquer recursive algorithms directly
from their recurrence relation, without solving the recurrence manually.

Q193. What is an adjacency list versus an adjacency matrix?


Ans: An adjacency list stores, for each vertex, a list of its connected neighbors — efficient for sparse graphs —
while an adjacency matrix stores a 2D grid of all possible connections, better suited to dense graphs.

Q194. What is topological sorting used for?


Ans: It's an ordering of vertices in a directed acyclic graph such that for every directed edge, the source vertex
appears before the destination — commonly used in task scheduling and build systems.

Q195. What is the difference between Dijkstra's algorithm and the Bellman-Ford algorithm?
Ans: Dijkstra's algorithm finds the shortest path efficiently but only works correctly with non-negative edge
weights, while Bellman-Ford is slower but can also handle graphs with negative edge weights.

Q196. What is the difference between compiled and interpreted languages?


Ans: Compiled languages (like C++) are translated entirely into machine code before execution, generally
running faster, while interpreted languages (like Python) are translated and executed line by line at runtime.

Q197. What is the difference between C and C++?


Ans: C is a procedural language centered on functions, while C++ extends C with object-oriented features like
classes, inheritance, and polymorphism.

Q198. What is the difference between C and Python?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 16 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: C is a low-level, statically typed, procedure-oriented language often used for system-level programming,
while Python is a high-level, dynamically typed, multi-paradigm language known for readability and rapid
development.

Q199. What is a pointer in C?


Ans: It's a variable that stores the memory address of another variable, allowing indirect access and modification
of that variable's value.

Q200. What is the difference between call by value and call by reference?
Ans: In call by value, a copy of the variable is passed to a function so changes don't affect the original, while in
call by reference, the actual memory address is passed, so changes do affect the original.

Q201. What is memory leak, and how can it be avoided?


Ans: It occurs when dynamically allocated memory is never freed after use, gradually consuming available
memory; it's avoided by properly releasing memory (or relying on a garbage collector in managed languages)
once it's no longer needed.

Q202. What is the difference between stack memory and heap memory?
Ans: Stack memory is used for static allocation like local variables and function calls, and is automatically
managed, while heap memory is used for dynamic allocation and must be managed manually or by a garbage
collector.

Q203. What are the four pillars of Java (or any OOP language)?
Ans: Encapsulation, abstraction, inheritance, and polymorphism form the foundation of object-oriented design in
languages like Java.

Q204. What is the difference between an array and an ArrayList in Java?


Ans: An array has a fixed size set at creation and can hold primitives, while an ArrayList is a resizable collection
that automatically grows and only holds objects.

Q205. What is exception handling, and why is it important?


Ans: It's a mechanism (using constructs like try, catch, and finally) to gracefully handle runtime errors,
preventing the program from crashing unexpectedly.

Q206. What is the difference between checked and unchecked exceptions?


Ans: Checked exceptions must be either caught or declared in a method's signature at compile time, while
unchecked exceptions (like runtime errors) are not checked at compile time.

Q207. What is the difference between == and .equals() in Java?


Ans: == compares object references (memory addresses) for objects, while .equals() compares the actual content
or value of the objects, assuming it's properly overridden.

Q208. What is a lambda expression?


Ans: It's a concise way to represent an anonymous function, commonly used in functional-style programming to
pass behavior as an argument without writing a full method.

Q209. What is the difference between a function and a method?


Ans: A function is a standalone block of reusable code, while a method is a function that is associated with and
defined within a class or object.

Q210. What is the difference between pass-by-value and pass-by-reference in Python?


Ans: Python actually passes object references by value — meaning you can modify a mutable object's contents
inside a function, but reassigning the reference itself won't affect the caller's variable.

PlaceValue · 300 Most Frequently Asked Interview Questions Page 17 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Q211. What is the Global Interpreter Lock (GIL) in Python?


Ans: It's a mutex in the standard Python interpreter that allows only one thread to execute Python bytecode at a
time, which can limit true parallelism in multi-threaded CPU-bound programs.

Q212. What is the difference between a list and a tuple in Python?


Ans: A list is mutable and can be changed after creation, while a tuple is immutable, making it slightly faster and
safer for fixed collections of data.

Q213. What is a dictionary/hashmap and when should you use one?


Ans: It's a key-value data structure that provides fast average-case lookup, insertion, and deletion, ideal when
you need to associate unique keys with corresponding values.

Q214. What is the difference between an interface and abstract class usage in real projects?
Ans: Interfaces are typically used to define a contract that unrelated classes can implement, while abstract classes
are used when classes share common code and a clear "is-a" relationship.

Q215. What is unit testing?


Ans: It's the practice of testing individual components or functions of a program in isolation to verify they
behave correctly before integrating them into the larger system.

Q216. What is the difference between synchronous and asynchronous programming?


Ans: Synchronous code executes tasks one after another, blocking until each finishes, while asynchronous code
can start a task and continue with other work while waiting for it to complete.

Q217. What is an API?


Ans: An Application Programming Interface is a defined set of rules that lets different software components or
systems communicate and exchange data with each other.

Q218. What is the difference between REST and SOAP APIs?


Ans: REST is a lightweight, stateless architectural style typically using JSON over HTTP, while SOAP is a
stricter, XML-based protocol with built-in standards for security and transactions.

Q219. What is JSON and why is it commonly used?


Ans: It's a lightweight, human-readable data format used to exchange information between systems, popular
because it's easy to parse and language-independent.

Q220. What is the difference between multithreading and multiprocessing?


Ans: Multithreading runs multiple threads within a single process sharing memory, while multiprocessing runs
multiple independent processes each with their own memory, better suited for CPU-intensive parallel tasks.

Q221. What is type casting, and what are its types?


Ans: It's the conversion of a variable from one data type to another; implicit casting happens automatically (like
int to float), while explicit casting requires the programmer to specify the conversion.

Q222. What is the difference between an interpreter error and a runtime exception?
Ans: An interpreter (syntax) error is caught before execution begins because the code doesn't follow language
rules, while a runtime exception occurs during execution due to conditions like invalid input or missing
resources.

Q223. What is immutability, and why does it matter?


Ans: It means an object's state cannot be changed after it's created; it matters because immutable objects are
inherently thread-safe and easier to reason about in concurrent programs.

PlaceValue · 300 Most Frequently Asked Interview Questions Page 18 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Q224. What is the difference between shallow equality and deep equality in code?
Ans: Shallow equality checks if two references point to the same object or if top-level fields match, while deep
equality recursively checks that all nested fields and values are equal.

Q225. What is version control, and why is it essential in software development?


Ans: It's a system that tracks changes to code over time, allowing multiple developers to collaborate, revert
mistakes, and maintain a complete history of a project.

Q226. A shopkeeper marks an item 40% above cost price and gives a 10% discount. What is his profit
percentage?
Ans: If cost price is 100, marked price is 140, and after a 10% discount the selling price is 126, giving a profit of
26%.

Q227. A train 120 m long crosses a platform 180 m long in 20 seconds. What is the speed of the train?
Ans: The train covers a total distance of 300 m in 20 seconds, giving a speed of 15 m/s, which is 54 km/hr.

Q228. If the ratio of two numbers is 3:5 and their sum is 96, find the numbers.
Ans: Dividing 96 in the ratio 3:5 gives 36 and 60.

Q229. A can complete a task in 10 days and B in 15 days. How long will they take working together?
Ans: Their combined rate is 1/10 + 1/15 = 1/6, so together they complete the task in 6 days.

Q230. Find the compound interest on ₹8,000 at 10% per annum for 2 years.
Ans: Amount = 8000 × (1.1)² = ₹9,680, so the compound interest is ₹1,680.

Q231. What is the next number in the series: 2, 6, 12, 20, 30, ?
Ans: The differences increase by 2 each time (4, 6, 8, 10), so the next term is 42.

Q232. If a code assigns each letter its position number and shifts it forward by 2 (A=3, B=4...), how
would "CAT" be coded?
Ans: Shifting C(3)→E(5), A(1)→C(3), T(20)→V(22), the coded word is "ECV".

Q233. Find the odd one out: Apple, Banana, Carrot, Mango.
Ans: Carrot is the odd one out since it's a vegetable while the others are fruits.

Q234. A sum of money doubles itself in 8 years at simple interest. In how many years will it become four
times?
Ans: If it doubles in 8 years, the principal earns 100% interest in that time; to triple the principal (reach 300%), it
will take 24 years total to become four times the original.

Q235. Two pipes can fill a tank in 12 and 18 minutes respectively. If both are opened together, how long
will it take to fill the tank?
Ans: Combined rate is 1/12 + 1/18 = 5/36, so the tank fills in 36/5 = 7.2 minutes.

Q236. What comes next in the pattern: A, C, F, J, O, ?


Ans: The gaps increase by one letter each time (2,3,4,5,6), so the next letter is U.

Q237. If "MOTHER" is coded as "OQVJGT," what pattern is being used?


Ans: Each letter is shifted two positions forward in the alphabet.

Q238. A boat travels 30 km downstream in 2 hours and returns upstream in 3 hours. Find the speed of
the boat in still water.

PlaceValue · 300 Most Frequently Asked Interview Questions Page 19 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: Downstream speed is 15 km/hr and upstream speed is 10 km/hr; the boat's speed in still water is the
average, 12.5 km/hr.

Q239. In a class of 60 students, 35 play cricket and 25 play football, with 10 playing both. How many
play neither?
Ans: Students playing at least one sport = 35 + 25 − 10 = 50, so 60 − 50 = 10 students play neither.

Q240. If today is Wednesday, what day will it be after 90 days?


Ans: 90 divided by 7 leaves a remainder of 6, so counting 6 days forward from Wednesday gives Tuesday.

Q241. A sum was divided among A, B, and C in the ratio 2:3:5. If C received ₹2,000 more than A, find
the total sum.
Ans: The difference between C's share (5 parts) and A's share (2 parts) is 3 parts, which equals ₹2,000, so 1 part
= ₹666.67 and the total (10 parts) is approximately ₹6,667.

Q242. What is the probability of getting a sum of 7 when two dice are rolled?
Ans: There are 6 favorable combinations out of 36 possible outcomes, giving a probability of 1/6.

Q243. If 5 machines produce 5 units in 5 minutes, how long would 100 machines take to produce 100
units?
Ans: Since each machine independently produces one unit in 5 minutes, 100 machines would also take 5 minutes
to produce 100 units.

Q244. A father is 3 times as old as his son. After 12 years, he will be twice as old. Find their current ages.
Ans: Let the son's age be x; then 3x + 12 = 2(x + 12), which gives x = 12, so the son is 12 and the father is 36.

Q245. Find the missing number: 7, 26, 63, 124, 215, ?


Ans: Each term follows n³ − 1 for n = 2,3,4,5,6, so the next term is 6³ − 1... adjusted pattern gives 342 as the
sixth term (7³ − 1).

Q246. If in a certain code language, "PENCIL" is written as "QFODJM," how is "PAPER" written?
Ans: Each letter is shifted one position forward in the alphabet, so "PAPER" becomes "QBQFS".

Q247. Statement: All pens are books. All books are tables. Conclusion: Are all pens tables?
Ans: Yes — since all pens are books and all books are tables, by transitive logic, all pens must be tables.

Q248. A is the brother of B. B is the sister of C. How is A related to C?


Ans: A is the brother of C.

Q249. Find the average of the first 20 natural numbers.


Ans: The sum of the first 20 natural numbers is 210, so the average is 210/20 = 10.5.

Q250. If the perimeter of a square is 64 cm, what is its area?


Ans: Each side is 64/4 = 16 cm, so the area is 16² = 256 sq cm.

Q251. A man walks 5 km north, then 3 km east, then 5 km south. How far is he from the starting point?
Ans: After the north and south movements cancel out, he ends up 3 km east of the starting point.

Q252. What percentage is 45 of 180?


Ans: 45/180 × 100 = 25%.

Q253. In a mixture of 60 liters, milk and water are in the ratio 2:1. How much water should be added to
make the ratio 1:1?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 20 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: The mixture has 40 liters milk and 20 liters water; to make the ratio 1:1, 20 more liters of water must be
added.

Q254. Find the least number which when divided by 6, 8, and 12 leaves remainder 3 in each case.
Ans: The LCM of 6, 8, and 12 is 24, so the required number is 24 + 3 = 27.

Q255. If the length of a rectangle is increased by 20% and the width is decreased by 20%, what is the
net change in area?
Ans: New area = 1.2 × 0.8 = 0.96 times the original, meaning a net decrease of 4% in area.

Q256. What is system design, and why is it asked in interviews?


Ans: It's the process of defining the architecture, components, and data flow of a software system to meet
functional and scalability requirements; it's asked to evaluate a candidate's ability to build systems that work at
real-world scale.

Q257. What is horizontal scaling versus vertical scaling?


Ans: Horizontal scaling adds more machines to share the load, while vertical scaling adds more resources (CPU,
RAM) to a single existing machine.

Q258. What is load balancing?


Ans: It's the practice of distributing incoming network traffic across multiple servers so no single server becomes
overwhelmed, improving reliability and performance.

Q259. What is caching, and why is it useful?


Ans: It's the practice of storing frequently accessed data in a fast-access layer (like memory) to reduce repeated
computation or database calls, significantly improving response times.

Q260. What is the difference between a monolithic and a microservices architecture?


Ans: A monolithic architecture builds an entire application as one tightly coupled unit, while a microservices
architecture breaks it into small, independently deployable services that communicate over a network.

Q261. What is database replication?


Ans: It's the process of copying data across multiple database servers to improve availability, fault tolerance, and
read performance.

Q262. What is the difference between synchronous and asynchronous communication between services?
Ans: Synchronous communication requires the caller to wait for an immediate response, while asynchronous
communication (often via message queues) allows the caller to continue without waiting for the result.

Q263. What is a message queue used for?


Ans: It's a component that allows different parts of a system to communicate asynchronously by sending and
receiving messages, decoupling producers from consumers and smoothing out traffic spikes.

Q264. What is an API gateway?


Ans: It's a single entry point that manages, routes, and secures requests to multiple backend services, often
handling tasks like authentication, rate limiting, and logging.

Q265. What is eventual consistency?


Ans: It's a consistency model used in distributed systems where updates propagate over time, meaning all nodes
will eventually converge on the same data, though not necessarily instantly.

Q266. What is a Content Delivery Network (CDN)?

PlaceValue · 300 Most Frequently Asked Interview Questions Page 21 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Ans: It's a geographically distributed network of servers that cache and deliver content closer to users, reducing
latency and load on the origin server.

Q267. What is rate limiting, and why is it used?


Ans: It's a technique that restricts the number of requests a client can make in a given time window, protecting a
system from abuse or overload.

Q268. What is the difference between vertical partitioning and horizontal partitioning (sharding) of
data?
Ans: Vertical partitioning splits a table by columns into separate tables, while horizontal partitioning (sharding)
splits a table by rows across multiple databases or servers.

Q269. What is a single point of failure, and how is it typically addressed?


Ans: It's a component whose failure would bring down the entire system; it's typically addressed through
redundancy, replication, and failover mechanisms.

Q270. What factors should you consider when designing a scalable system?
Ans: Key factors include expected traffic and growth, data consistency requirements, latency tolerance, fault
tolerance, and cost, balanced according to the specific use case.

Q271. What is cybersecurity?


Ans: It's the practice of protecting systems, networks, and data from digital attacks, unauthorized access, and
damage, using a combination of technology, processes, and policies.

Q272. What is the difference between authentication and authorization?


Ans: Authentication verifies who a user is (like a login), while authorization determines what that verified user is
allowed to do or access.

Q273. What is phishing?


Ans: It's a social engineering attack where attackers impersonate a trustworthy source, usually via email or fake
websites, to trick users into revealing sensitive information.

Q274. What is a man-in-the-middle attack?


Ans: It's an attack where a malicious actor secretly intercepts and possibly alters communication between two
parties who believe they're communicating directly with each other.

Q275. What is SQL injection, and how can it be prevented?


Ans: It's an attack where malicious SQL code is inserted into an input field to manipulate a database; it's
prevented using parameterized queries, input validation, and ORM frameworks that escape user input.

Q276. What is cross-site scripting (XSS)?


Ans: It's a vulnerability that allows attackers to inject malicious scripts into webpages viewed by other users,
potentially stealing data or hijacking sessions.

Q277. What is the difference between a virus, worm, and trojan?


Ans: A virus attaches itself to a host file and needs user action to spread, a worm self-replicates and spreads
across networks without user action, and a trojan disguises itself as legitimate software to trick users into
installing it.

Q278. What is encryption, and why is it important?


Ans: It's the process of converting readable data into an unreadable format using an algorithm and a key,
protecting sensitive information from unauthorized access during storage or transmission.

PlaceValue · 300 Most Frequently Asked Interview Questions Page 22 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Q279. What is two-factor authentication (2FA)?


Ans: It's a security process that requires users to verify their identity using two different factors — typically
something they know (a password) and something they have (an OTP or device).

Q280. What is a firewall's role in network security?


Ans: It monitors and filters incoming and outgoing traffic based on defined security rules, blocking potentially
harmful connections while allowing legitimate traffic through.

Q281. What is the principle of least privilege?


Ans: It's a security concept stating that users and systems should only be granted the minimum level of access
necessary to perform their tasks, reducing potential damage from mistakes or breaches.

Q282. What is a zero-day vulnerability?


Ans: It's a security flaw that is unknown to the software vendor and has no available patch yet, making it
especially dangerous if exploited before a fix is released.

Q283. What is a VPN, and how does it improve security?


Ans: A Virtual Private Network creates an encrypted tunnel for a device's internet traffic, hiding the user's data
and location from potential eavesdroppers on the network.

Q284. What is penetration testing?


Ans: It's an authorized, simulated cyberattack conducted on a system to identify security vulnerabilities before
real attackers can exploit them.

Q285. What is the difference between symmetric and public-key cryptography in practice?
Ans: Symmetric cryptography is faster and used for encrypting large volumes of data with a shared secret key,
while public-key cryptography is used mainly for secure key exchange and digital signatures due to its higher
computational cost.

Q286. What is Git, and why is it used?


Ans: It's a distributed version control system that tracks changes to source code over time, allowing multiple
developers to collaborate, branch, merge, and maintain a complete project history.

Q287. What is the difference between Git and GitHub?


Ans: Git is the underlying version control tool that runs locally, while GitHub is a cloud-based platform that
hosts Git repositories and adds collaboration features like pull requests and issue tracking.

Q288. What is a branch in Git, and why is it used?


Ans: It's an independent line of development that lets you work on new features or fixes without affecting the
main codebase until the changes are ready to merge.

Q289. What is the difference between "git merge" and "git rebase"?
Ans: Merge combines changes from one branch into another while preserving the full commit history as a new
merge commit, while rebase rewrites commit history by moving a branch's commits onto another base, creating a
cleaner, linear history.

Q290. What is a pull request?


Ans: It's a request to merge changes from one branch into another, typically reviewed and discussed by team
members before being approved and merged.

Q291. What is the difference between "git pull" and "git fetch"?
Ans: Git fetch downloads changes from a remote repository without merging them into your current branch,
while git pull fetches and immediately merges those changes.

PlaceValue · 300 Most Frequently Asked Interview Questions Page 23 of 24


PlaceValue
The Last Mile of Education
[Link] | 300 Company Interview Questions Bank

Q292. What is a merge conflict, and how is it resolved?


Ans: It occurs when Git can't automatically reconcile changes made to the same part of a file in two branches; it's
resolved by manually reviewing and editing the conflicting sections before committing.

Q293. What is the Software Development Life Cycle (SDLC)?


Ans: It's a structured process software teams follow to build software, typically including phases like
requirement gathering, design, development, testing, deployment, and maintenance.

Q294. What is Agile methodology?


Ans: It's an iterative approach to software development that emphasizes flexibility, collaboration, and delivering
small, working increments of a product frequently rather than all at once.

Q295. What is the difference between Agile and the Waterfall model?
Ans: Waterfall follows a strict, sequential process where each phase must complete before the next begins, while
Agile works in short, iterative cycles that allow for continuous feedback and change.

Q296. What is a sprint in Scrum?


Ans: It's a fixed, short time period (commonly two to four weeks) during which a Scrum team works to complete
a set amount of planned work.

Q297. What is the role of a Scrum Master?


Ans: They facilitate the Scrum process, remove obstacles for the team, and ensure the team follows Agile
practices effectively, without directly managing team members.

Q298. What is a daily stand-up meeting?


Ans: It's a short, time-boxed daily meeting where team members briefly share what they did yesterday, what they
plan to do today, and any blockers they're facing.

Q299. What is continuous integration and continuous deployment (CI/CD)?


Ans: CI is the practice of frequently merging code changes into a shared repository with automated testing, while
CD automates the release of that code to production, together enabling faster and more reliable software delivery.

Q300. What is the difference between unit testing, integration testing, and system testing?
Ans: Unit testing checks individual components in isolation, integration testing checks how multiple components
work together, and system testing evaluates the complete, integrated system against overall requirements.

PlaceValue · 300 Most Frequently Asked Interview Questions Page 24 of 24

You might also like