Infosys Technical and HR Interview Questions
1. Object-Oriented Programming (OOP) Concepts
• Explain four major OOP concepts in Java.
• What do you mean by OOPs?
• Why do you use OOPs?
• What are the fundamental OOP principles?
• Explain Inheritance, Polymorphism, Encapsulation, and Abstraction in Java.
• How is method overloading different from method overriding?
• What is a Class and an Object in OOP?
• Access Specifiers: What are they?
• What is a superclass in OOP?
• Explain method overriding and overloading.
• What are the limitations of OOPs?
2. Programming Languages (Java, C, C++)
• Differentiate between classes and interfaces in Java.
• Can we implement multiple inheritances in Java?
• What are the differences between C and C++?
• Explain the importance of the stdio.h file in C.
• How is memory allocated in C/C++? Explain dynamic memory allocation.
• What is a friend function/class in C++?
• What is the difference between char and varchar in DBMS?
• Write a C++ program to check whether a number is a palindrome.
• Implement a program to swap two numbers without using a temporary variable.
• What are the differences between Java and C++?
3. SQL & Databases
• What are DDL and DML commands in SQL? Provide examples.
• Differentiate between TRUNCATE and DELETE commands in SQL.
• What are SQL joins? Explain Left Outer Join and Right Outer Join.
• What is indexing in SQL? Why is it useful?
• What is a stored procedure?
• Explain database schema.
• Differentiate between primary key, foreign key, and unique key.
• What is database partitioning?
• What is a view in SQL?
• Write an SQL query to display the number of employees in each department.
• Explain the difference between an array and an ArrayList in Java.
4. Data Structures and Algorithms
• Name different ways to traverse a tree (Pre-order, In-order, Post-order, Level-order).
• How to detect a cycle in a directed graph?
• Explain the difference between stack memory and heap memory.
• Write a C++ program to check whether a number is prime.
• What is the difference between array and linked list?
• Explain circular linked lists.
• What are data structures in C++?
5. Software Development Life Cycle (SDLC) & Models
• Explain the SDLC (Software Development Life Cycle).
• What is the Agile model? Explain its importance.
• What are the disadvantages of the Waterfall model?
• Which SDLC model is the most popular? Why?
6. Testing and Software Engineering
• Differentiate between white-box and black-box testing.
• What is software configuration management (SCM)?
• What is version control?
• Define reentrancy in software engineering.
7. Web Technologies (HTML, Network)
• What is HTML? What are the common tags used in HTML?
• What is a frame in HTML?
• Can we show a web page inside another web page?
• What are HTTP requests and responses?
• Explain the difference between IPv4 and IPv6.
8. Operating Systems & Miscellaneous Concepts
• What is the role of the static keyword in class member variables?
• Explain virtual and pure virtual functions.
• Differentiate between macro and ordinary definition.
• What is a real-time operating system (RTOS)?
• What is the difference between a socket and a session?
9. HR Interview Questions
• Tell me about yourself.
• What are your strengths and weaknesses? How do you overcome your weaknesses?
• Why do you want to work for Infosys?
• Where do you see yourself in the next 5 or 10 years?
• How do you handle stress and failures?
• Who is your role model and why?
• Are you comfortable with relocating or working in different time zones?