0% found this document useful (0 votes)
4 views

Infosys Commonly Asked Questions

Infosys

Uploaded by

kummara meghana
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Infosys Commonly Asked Questions

Infosys

Uploaded by

kummara meghana
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Infosys Commonly Asked Questions

General Programming Concepts (1-27):

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


2. Define a Token in C++ programming language.
3. Define a pointer.
4. Define a NULL pointer.
5. Write a program to check whether a number is a palindrome or not in C++.
6. Write a code to check if the given string is palindrome or not in C.
7. Write a code for bubble sort in C++.
8. Write a Program to Swap Two Numbers.
9. Write a Program to Swap Two Numbers without using the Third Variable.
10. Write a Program to Convert Decimal Number to Binary Number.
11. Write a Program to Convert Decimal Number to Octal Number.
12. Write a Program to Convert Decimal Number to Hexadecimal Number.
13. Write a Program to Convert Octal Number to Binary Number.
14. Write a Program to Convert Octal Number to Decimal Number.
15. Write a Program to find out the Spiral Traversal of a Matrix.
16. Write a Program to Rotate a Matrix by 90 degrees.
17. Write a Program to Find a Specific Pair in a Matrix.
18. Write a program for swapping two arrays.
19. Write a program for swapping two strings.
20. Write a program to convert a string from uppercase to lowercase.
21. Write a program to convert a string from lowercase to uppercase.
22. Write a program to delete all consonants from a given string.
23. Write a program to count the different types of characters in a given string.
24. Write a program to sort the characters of a string.
25. Write a program for the addition of two matrices.
26. Write a program for the subtraction of two matrices.
27. Write a program to find the sum of diagonal elements of a matrix.

Object-Oriented Programming (OOP) Concepts (28-36):

28. Explain what object-oriented programming is.


29. Define abstraction in the context of object-oriented programming.
30. What are the four pillars of OOPS?
31. What is polymorphism?
32. Define Virtual functions.
33. What are the different types of inheritance?
34. What is the OOPS concept in JAVA? Also, explain them.
35. Can we implement multiple inheritances in JAVA?
36. Define method overloading and method overriding.

Programming Language Comparisons (37-43):

37. Difference between C, C++, and Python?


38. What are the differences between C++ and JAVA?
39. How will you choose between C and C++ while making a project for a client?
40. What are the different levels of programming languages?
41. Which programming language are you familiar with?
42. Write a program to check whether a given year is a leap year in JAVA.
43. How is C different from C++?

Data Structures (44-51):

44. How many types of data structures are there?


45. Tree data structure basics.
46. Explain the functionality of the linked list.
47. Applications of some data structures.
48. Difference between B-Tree and BST.
49. What is the difference between Stack and heap memory?
50. What is DS (Data Structure)?
51. Write a program for the greatest common divisor.

Databases (52-62):
52. What is DBMS?
53. What is Normalization?
54. Explain how to fetch all records from a table in a database using SQL.
55. What is the Primary and Foreign Key in SQL?
56. Types of join.
57. What are DDL and DML commands in SQL?
58. What is the difference between a char and a varchar?
59. What is a View?
60. Define a DSN (Data Source Name).
61. How is a Clustered index different from a Non-Clustered index?
62. When we perform a Cartesian product on two relations, what will be the number of tuples
and attributes in the result?

SQL Commands and Examples (63-67):

63. SQL command to fetch records.


64. Write a program to add two matrices.
65. Write a program to subtract two matrices.
66. Write a program to multiply two matrices.
67. Write a program to swap two numbers without using a third variable.

Cloud Computing (68-74):

68. What is cloud computing?


69. Cloud computing models and types.
70. What is a cloud-native application, and how does the cloud help IT companies?
71. What are GCP-related concepts (mentioned in the resume)?
72. What is the role of cloud computing in IT companies?
73. Explain the different types of cloud computing.
74. What is the importance of cloud computing in modern application development?

Software Development Life Cycle (SDLC) (75-80):

75. What is SDLC?


76. What are the steps involved in the software development life cycle (SDLC)?
77. What models are used in SDLC? Which one is best according to you?
78. What is the Agile model?
79. What are the advantages of the waterfall model?
80. How is white-box testing different from black-box testing?
Problem-Solving and Logical Reasoning (81-87):

81. Approach to solving a problem: Sorting students based on the number of codes done.
82. Write a program to find whether a number is prime or not.
83. Write a program to replace a substring in a string in Python.
84. Write a program to swap two strings.
85. Write a program to sort an array of integers.
86. Write a program to check if a number is even or odd.
87. Write a program to convert a decimal number to binary.

Miscellaneous Questions (88-101):

88. Tell me about a project you have worked on.


89. What are your strengths and weaknesses?
90. Where do you see yourself in 5 years?
91. Why Infosys?
92. The interview began with a brief introduction of mine.
93. I gave a short introduction that included things apart from my resume, such as qualities,
interests, and current trends I follow.
94. What is Exception Handling? Explain with an example.
95. Which is the best sorting algorithm? (Quick Sort for arrays, Merge Sort for linked lists,
Heap Sort overall).
96. What is a starter class? (A class that contains the main method).
97. Candidate key, foreign key, and primary key.
98. If a unique key has a null constraint, can it be said as a primary key?
99. Mention some high-level programming languages.
100. Define the Software Development Life Cycle.
101. Write a program to rotate a matrix by 90 degrees.
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

You might also like