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

Infosys Cheat Sheet

The document is a revision sheet for Infosys interviews, containing commonly asked technical questions and programming tasks related to C++, Java, SQL, and data structures. It includes topics on object-oriented programming, software development life cycle, and various coding challenges. Additionally, it covers personal interview questions and expectations for candidates.

Uploaded by

epremkumar24
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)
5 views6 pages

Infosys Cheat Sheet

The document is a revision sheet for Infosys interviews, containing commonly asked technical questions and programming tasks related to C++, Java, SQL, and data structures. It includes topics on object-oriented programming, software development life cycle, and various coding challenges. Additionally, it covers personal interview questions and expectations for candidates.

Uploaded by

epremkumar24
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
You are on page 1/ 6

Infosys Revision sheet

Watch this video fully https://youtu.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?

PDFmyURL converts web pages and even full websites to PDF easily and quickly.
18. what are the differences between C++ and JAVA?

19. What is the OOPS concept in JAVA? Also, explain them?

20. What 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?

24. What is the difference between a char and a varchar?

25. List the different types of memory areas allocated by JVM?

26. Mention some high-level programming languages.

27. Write a program to swap two numbers.

28. What is polymorphism?

29. Define a Token in C++ programming language.

30. Write 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?

35. Write a code for bubble sort in C++

36. Define method overloading and method overriding?

PDFmyURL converts web pages and even full websites to PDF easily and quickly.
37. How C is different from C++?

38. What are the different levels of programming languages?

39. Write a code to check whether a given year is a leap year or notin JAVA

40. How a white-box testing is different from black-box testing?

41. Define a DSN(Data Source Name).

42. Define an array.

43. Write a code to replace a substring in a string in Python

44. Define a pointer.

45. Explain the functionality of the linked list.

46. Define a NULL pointer.

47. What is Normalization in DBMS?

48. Define Virtual functions.

49. Define the Software development life cycle.

50. How Clustered index is different from Non- Clustered index?

51. What are different types of inheritance?

52. Write a code of greatest common divisor.

53. Write a Program to Swap Two Numbers.

54. Write a Program to Swap Two Numbers without using the Third Variable.

55. Write a Program to Convert Decimal Number to Binary Number.

PDFmyURL converts web pages and even full websites to PDF easily and quickly.
56. Write a Program to Convert Decimal Number to Octal Number.

57. Write a Program to Convert Decimal Number to Hexadecimal Number

58. Write a Program to Convert Octal Number to Binary Number.

59. Write a Program to Convert Octal Number to Decimal Number.

60. Write a Program to find out the Spiral Traversal of a Matrix.

61. Write a Program to Rotate a Matrix by 90 degrees.

62. Write a Program to Find a Specific Pair in a Matrix


63. Write a program for swapping of two arrays.
64. Write a program for swapping of two strings.
65. Write a program to convert the string from upper case to lower case.
66. Write a program to convert the string from lower case to upper case.
67. Write a program to delete all consonants from a given string.
68. Write a program to count the different types of characters in given string.
69. Write 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?

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.

You might also like