Infosys is an Indian MNC that is among the most prominent IT players in the world. It could be a dream company for many Indian developers and an excellent platform to start your career in IT.
List of Infosys Interview Questions
Here I've compiled with top question asked in infosys interview for developers. Know the answers from this blog on Infosys Interview Questions.
- Name some high-level programming languages.
- C is sometimes considered a low-level programming language. Why so?
- What is a preprocessor in C?
- Name basic OOPs concepts.
- What is inheritance? Name its types.
- Please enumerate the various types of inheritance.
- What are tokens in C++?
- What is the difference between multi-level and multiple inheritances?
- Give some differences between C++ and Java.
- How encapsulation and abstraction are complementary?
- What are arrays?
- What is a pointer in C?
- Give some differences between C and C++.
- What is a NULL pointer?
- Give logic to swap two numbers without using a temporary variable.
Conclusion
In this article, we have provided the top Infosys technical interview questions. After reading all the Infosys technical interview questions, you will notice that most of the questions are from C and C++, which also includes OOPs concept with data structure because these are the basis of programming languages, and a developer should have knowledge of basic technical stuff.
Top comments (5)
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;
class Solution {
}
class OrderDetails {
private Long phoneNo;
private String orderedItemType;
private String orderedItem;
private Double orderPrice;
private Integer orderQuantity;
private String isOneDayDelivery;
private String deliveryAddress;
}
function(int k,int nums){
char[] s=String.valueof(nums).toCharArray();
int cnt
for(i=0-->N){
int div=getNo(k,i,s);
if(nums%div==0 && div!=0){
cnt++
return cnt
getNO(int start,[]s,k)
num=0;
while(K>0){
num=num*10;
num=(S[start]-'0')+num;
start++;
k--;
}
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;
@SuppressWarnings("all")
class Solution {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
OrderDetails orderDetails = new OrderDetails(
input.nextLong(), input.next(), input.next(),
input.nextDouble(), input.nextInt(), input.next(), input.next()
);
String orderDateInput = input.next();
}
class OrderDetails {
private Long phoneNo;
private String orderedItemType;
private String orderedItem;
private Double orderPrice;
private Integer orderQuantity;
private String isOneDayDelivery;
private String deliveryAddress;
}
import math
def is_perfect_square(n):
sqrt_n = int(math.sqrt(n))
return sqrt_n * sqrt_n == n
def find_last_three_digits_factorial(n):
factorial = math.factorial(n)
factorial_str = str(factorial)
def process_input_string(input_str):
input_numbers = [int(num) for num in input_str.split(',')]
Example usage
input_str = "2,4,6,9,35,100"
output_result = process_input_string(input_str)
print("Output:", output_result)