Infosys Cheat Sheet
Infosys Cheat Sheet
Watch this video fully https://youtu.be/a8SbNftl5bM to understand the format of the rounds
and important aptitude topics
PDFmyURL converts web pages and even full websites to PDF easily and quickly.
18. what are the differences between C++ and JAVA?
PDFmyURL converts web pages and even full websites to PDF easily and quickly.
37. How C is different from C++?
39. Write a code to check whether a given year is a leap year or notin JAVA
54. Write a Program to Swap Two Numbers without using the Third Variable.
PDFmyURL converts web pages and even full websites to PDF easily and quickly.
56. Write a Program to Convert Decimal Number to Octal Number.
PDFmyURL converts web pages and even full websites to PDF easily and quickly.
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.
PDFmyURL converts web pages and even full websites to PDF easily and quickly.
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
110. Program 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
114. Celsius to Fahrenheit Conversion
115. Print 1 to n without using loops
116. Middle of Three
117. Binary representation
118. Greatest of three numbers
119. Number 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
PDFmyURL converts web pages and even full websites to PDF easily and quickly.