0% found this document useful (0 votes)
83 views6 pages

Infosys Interview Preparation Guide

The Infosys revision sheet is a quick reference guide for placement exam preparation. It covers key topics like quantitative aptitude, logical reasoning, verbal ability, programming, and technical concepts. Designed for efficient revision, it highlights essential formulas, problem-solving strategies, and core concepts. The sheet is well-structured, aiding quick navigation and focused study. It’s an essential tool for last-minute preparation to excel in assessments and interviews.

Uploaded by

sajayasathish39
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)
83 views6 pages

Infosys Interview Preparation Guide

The Infosys revision sheet is a quick reference guide for placement exam preparation. It covers key topics like quantitative aptitude, logical reasoning, verbal ability, programming, and technical concepts. Designed for efficient revision, it highlights essential formulas, problem-solving strategies, and core concepts. The sheet is well-structured, aiding quick navigation and focused study. It’s an essential tool for last-minute preparation to excel in assessments and interviews.

Uploaded by

sajayasathish39
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

Watch this video fully [Link]

be/a8SbNftl5bM to understand the


format of the rounds and important aptitude topics

Infosys Commonly Asked Questions

1. What is a class and object in C++?


2. Explain what object-oriented programming is.
3. Define abstraction in the context of object-oriented programming.
4. Discuss the various data types in C++.
5. Explain how to fetch all records from a table in a database using SQL.
6. What is the Primary and Foreign Key in SQL?
7. SQL command to fetch records
8. Types of databases you have worked with
9. 2 to 3 questions on GCP (I mentioned in my resume)
Cloud computing, models, types, cloud cloud-native ,cloud native
application, how helps cloud to IT companies
10. How many types of data structures
11. Tree data structure basic
12. Difference between C, C++, and Python?
13. How will you choose between C and C++ while making a project for a
client?
14. What are the steps involved in the software life cycle development
(SDLC)?
15. What models are used in SDLC? Which one is best according to you?
16. What other technologies are used apart from HTML to create Web
Pages? What do you know about them
17. What is SDLC?
18. what are the differences between C++ and JAVA?
19. What is the OOPS concept in JAVA? Also, explain them?
[Link] is the Agile model?
21. Write a program to check whether a number is a palindrome or not in
C++
22. What are the advantages of a waterfall model?
23. What is a View?
[Link] is the difference between a char and a varchar?
[Link] the different types of memory areas allocated by JVM?
[Link] some high-level programming languages.
27. Write a program to swap two numbers.
[Link] is polymorphism?
[Link] a Token in C++ programming language.
[Link] a code to check if the given string is palindrome or not in C
31. Can we implement multiple inheritances in JAVA?
32. What is a Preprocessor in C?
33. What is DLL and EXE file extension?
34. What is the difference between Stack and heap memory?
[Link] a code for bubble sort in C++
[Link] method overloading and method overriding?
37. How C is different from C++?
[Link] are the different levels of programming languages?
39. Write a code to check whether a given year is a leap year or notin JAVA
[Link] a white-box testing is different from black-box testing?
41. Define a DSN(Data Source Name).
[Link] an array.
[Link] a code to replace a substring in a string in Python
[Link] a pointer.
[Link] the functionality of the linked list.
[Link] a NULL pointer.
47. What is Normalization in DBMS?
[Link] Virtual functions.
[Link] the Software development life cycle.
[Link] Clustered index is different from Non- Clustered index?
51. What are different types of inheritance?
[Link] a code of greatest common divisor.
[Link] a Program to Swap Two Numbers.
[Link] a Program to Swap Two Numbers without using the Third Variable.
[Link] a Program to Convert Decimal Number to Binary Number.
[Link] a Program to Convert Decimal Number to Octal Number.
57. Write a Program to Convert Decimal Number to Hexadecimal Number
[Link] a Program to Convert Octal Number to Binary Number.
59. Write a Program to Convert Octal Number to Decimal Number.
[Link] a Program to find out the Spiral Traversal of a Matrix.
61. Write a Program to Rotate a Matrix by 90 degrees.
[Link] a Program to Find a Specific Pair in a Matrix
[Link] a program for swapping of two arrays.
[Link] a program for swapping of two strings.
[Link] a program to convert the string from upper case to lower case.
[Link] a program to convert the string from lower case to upper case.
67. Write a program to delete all consonants from a given string.
[Link] a program to count the different types of characters in given
string.
[Link] a program to sort the characters of a string.
70. Write a program for addition of two matrices.
71. Write a program for subtraction of two matrices.
72. Write a program for multiplication of two matrices.
73. Write a program to find out the sum of diagonal element of a matrix.
74. What are the four pillars of OOPS?
75. What are the different types of inheritance in C++?
76. What is DBMS?
77. What is Normalization?
78. .Write a program to swap two numbers without using a third variable
79. Write a program to find whether a number is prime or not.
80. Tell me about a project you have worked on.

81. What are your strengths and weaknesses?

82. Where do you see yourself in 5 years?

83. Why Infosys?

84. What are DDL and DML commands in SQL?


85. The interview began with a brief introduction of mine.

I gave a short introduction that stated things apart from my resume, it

included my qualities, what I love to do, and the current

interests/trends am keeping pace with.

86. What is DS(Data Structure)?

87. Applications of some data structures.

88. Which programming language are you familiar with?

Java

89. Difference between B-Tree and BST.

90. What is Exception Handling? Explain with an example.

91. Which is the best sorting?

I stated three cases a) to deal with arrays, quick sort

92. For linked lists, merge sort

93. Overall, heap sort: as it has an edge for the space complexity. its

space complexity is O(1) whereas quick and merge sort requires the

space complexity of O(n)

94. Normalization.
95. Types of join

96. When we perform a cartesian product on two relations, what will

be the no. of tuples, and no. of attributes in the result?

97. Approach to solving a problem:

If there are some students who have competed few numbers of codes,

such as 1, 2, 3, 4 and so on. and also there are a few students who

have not done any code, i.e. no. of codes done is NOTA(none of the

above).

Now sort them on the basis of the number of codes done in such a case

that students with NOTA should come at last.

98. What is a class?

99. Candidate key, foreign key, primary key?

100. If a unique key has a null constraint, can it be said as a primary key?

101. What is a starter class?

A class which contains main.

102. Print first n Fibonacci Numbers


103. Find the first non-repeating character from a stream of characters
104. Best Time to Buy and Sell Stock (at most one transaction allowed)
105. Pair with given Sum (Two Sum)
106. Remove duplicates from Sorted Array
107. Sort string of characters
108. Program for addition of two matrices
109. Binary Search
[Link] for Armstrong Numbers
111. Area of Rectangle, Right Angled Triangle and Circle
112. Program to check if two given matrices are identical
113. Convert from any base to decimal
[Link] to Fahrenheit Conversion
[Link] 1 to n without using loops
[Link] of Three
117. Binary representation
[Link] of three numbers
[Link] Of Open Doors
120. Maximum Possible Sum of Products
121. Check if given four points form a square
122. Overlapping rectangles
123. Sum of all prime numbers between 1 and N.
124. Check if a number is power of another number
125. Common Divisors
126. Perfect Number
127. Sum Palindrome
128. Remove common characters and concatenate
129. Check if string is rotated by two places
130. Check if date is valid
131. The Lazy Caterer’s Problem
132. Program to print Sum Triangle for a given array
133. Party of Couples
134. Form largest number from digits
135. Print the left element
136. Tidy Number
137. Mean

Common questions

Powered by AI

The Waterfall model is a linear and sequential approach to software development consisting of distinct phases such as requirements, design, implementation, testing, deployment, and maintenance . Its advantages include simple project management, easy to understand and use, and well-suited for smaller projects with clear requirements. However, its rigid structure is a disadvantage since it does not easily accommodate changes once the project is underway. This lack of flexibility contrasts with Agile methodologies, which emphasize iterative development, early testing, and stakeholder collaboration, allowing for adjustments based on user feedback and changes in requirements during the development process. Agile is better suited for complex projects prone to frequent changes .

Abstraction and encapsulation are complementary principles in object-oriented programming. Abstraction focuses on hiding the complex reality while exposing only the necessary parts through simplified models or interfaces, enabling developers to deal with higher-level concepts efficiently . Encapsulation, on the other hand, involves bundling data with the methods that operate on it, and restricting access to some of the object’s components. This ensures a controlled interface of the object and prevents the outside code from accessing its internal state directly . Together, these principles enhance modularity and separation of concerns in software design, allowing easier management of complexity, and providing a framework for robust and adaptable code .

Method overloading in C++ occurs when multiple functions have the same name but different parameters (type, number, or both). These functions are distinguished by the signature rather than the return type . An example is having a function print(int a) and another print(double a) in the same class or scope. Method overriding happens when a derived class provides a specific implementation for a member function that is already defined in its base class. This is achieved by using virtual functions in C++ . For example, if a base class has a virtual function draw(), a derived class can override it by providing its own version of draw(). Overriding requires inheritance and allows polymorphism .

Polymorphism is a fundamental concept in object-oriented programming that allows objects to be treated as instances of their parent class, enabling a single function to perform different behaviors based on the object type . In C++, polymorphism is implemented using function overloading and overriding. Function overloading allows multiple functions with the same name to operate on different parameters, whereas overriding allows a subclass to provide a specific implementation of a function already defined in its superclass . Java implements polymorphism through method overriding, where a subclass provides a specific behavior for a method declared in its parent class, and interfaces, which allow classes to implement methods in different ways. Both C++ and Java use virtual functions and dynamic method dispatching to support runtime polymorphism .

A clustered index determines the order in which the data is physically stored in the table. Therefore, a table can have only one clustered index . Non-clustered indexes are separate from the data, containing pointers to the physical rows, and a table can have multiple non-clustered indexes. Clustered indexes improve the performance of retrieval operations that request data in sorted order but can hinder performance on insert and update operations due to the need to maintain data order . Non-clustered indexes, while they slightly improve read operations by providing a quicker lookup path, do not affect the physical storage order of the data and can degrade performance if overused due to the additional space and maintenance requirements .

Normalization in DBMS is a process of organizing data to reduce redundancy and improve data integrity by dividing a database into two or more tables and defining relationships between them . This is achieved by applying a series of rules called normal forms. The primary aim is to minimize duplicate data (redundancy) while ensuring data dependencies make sense to improve data integrity. By forcing tables to adhere to specific patterns, normalization prevents anomalies such as update, insertion, and deletion anomalies, thus ensuring that the database remains consistent and accurate .

Exception handling is a programming construct designed to handle runtime errors, maintaining the normal flow of the program by using try, catch, and throw constructs . In C++, exception handling is implemented using try-catch blocks, where exceptions are thrown using the throw keyword and caught with a catch block. C++ allows any data type to be thrown as an exception . Java also uses try-catch blocks, but its exceptions are objects derived from the Throwable superclass and it enforces a checked exception model for more robust error handling. Only objects that derive from Throwable can be thrown or caught . Java's model encourages developers to handle exceptions more deliberately through its requirement of specifying thrown exceptions in method signatures .

C is a procedural programming language known for its efficiency and control over system resources, making it suitable for system-level programming like operating systems. C++ builds on C by introducing object-oriented programming features such as classes and inheritance, which facilitate complex application development with reuse and abstraction . Python, on the other hand, is an interpreted high-level language known for its readability and simplicity, supporting multiple programming paradigms, including procedural, object-oriented, and functional programming. Its extensive standard library and dynamic typing make it popular for rapid application development, scripting, and data analysis . The choice between these languages depends on project requirements: C is often chosen for performance-critical systems programming, C++ for applications needing complex object hierarchies, and Python for quick prototyping and data-intensive applications .

Cloud computing provides IT companies with scalable resources and economic efficiency by enabling them to access computing power, storage, and applications over the internet without significant upfront investment in hardware . It allows companies to scale resources according to demand, prioritize core business tasks by outsourcing IT infrastructure maintenance, and foster innovation through easy access to new technologies . The primary cloud computing models are Infrastructure-as-a-Service (IaaS), which provides virtualized computing resources; Platform-as-a-Service (PaaS), which offers a platform allowing customers to develop, run, and manage applications without dealing with infrastructure maintenance; and Software-as-a-Service (SaaS), which delivers software applications over the internet on a subscription basis . Each model offers varying levels of control, flexibility, and management for companies, supporting a range of business needs .

The four pillars of Object-Oriented Programming (OOP) are encapsulation, abstraction, inheritance, and polymorphism . Encapsulation involves bundling data with the methods that operate on the data, allowing controlled access and modification, leading to modular design . Abstraction reduces complexity by hiding unnecessary details, allowing developers to focus on high-level functionalities . Inheritance enables a new class to inherit properties and behavior from existing classes, promoting reusability and logical hierarchy . Polymorphism allows multiple classes to be treated as instances of the same class through a common interface, making it easy to scale programs by adding new functionalities with minimal code changes . Together, these principles enhance code reusability and flexibility by allowing developers to build modular programs that can be easily extended and maintained .

You might also like