Infosys Interview Questions (Technical)
Introduction
This article will be a primer for anyone interested in preparing as a software developer or software engineer in a prestigious company named Infosys. This blog will not only contain Infosys interview questions but will also provide answers for acing the interview. The Infosys interview generally consists of questions from C++, Java, SQL and other computer science fundamentals. So what are you waiting for? Let's begin with the important questions that are likely to be asked in your next interview with Infosys?
Infosys Interview questions
Describe some of the major concepts of OOPs?
The concept of Object-Oriented Programming stands on four major pillars, which are discussed below.
1. Data abstraction - Excluding the unnecessary or the redundant code while programming is known as data abstraction.
2. Polymorphism - It is nothing but function overloading. When a particular function takes multiple forms in a program, it is known as polymorphism.
3. Data encapsulation - As the name suggests, it is the Method of wrapping data variables and methods in a single class.
4. Inheritance - When we want to save our time using the code reusability function, then inheritance comes into the role as this helps to inherit the class properties to a subclass.
Why does Java not support multiple inheritances?
Multiple inheritances create so much ambiguity and complexity in the code, which is hard to handle. Thus Java generally does not support multiple inheritances, But there are ways that can make multiple inheritances in Java work!
What are the differences between method overloading and Method overriding?
Method overloading is a phenomenon that occurs when two functions have the same name but they differ in the number of parameters or the type of arguments they accept. Compile-time polymorphism is what it's called because it happens during the compilation process.
In contrast to this, Method overriding refers to the ability to construct subclass and super-class methods with the same name and signatures, with the subclass method taking precedence over the super-class method. Run-time polymorphism is a type of polymorphism that occurs during the execution of a programme.
What are Pointers in C++?
Pointers in C++ are a data type which stores the address of different data types variables. It has two different types of operators.
1. * - Reference operator.
2. & - Address operator.
Why does Java not use pointers?
The pointer can store the address of the variable, and with its use, anyone can find out the exact memory address of any variable, which leaves a void in security. Hence to prevent security issues, Java does not support the concept of pointers.
Describe the DDL and DML commands in SQL?
DML is the Data Manipulation Language. It involves commands like INSERT, DELETE, and UPDATE. These commands help to manipulate data in the table. And DDL is Data definition language, it is used to define the database or the schema, and it involves commands like CREATE, ALTER, TRUNCATE, DROP etc.
Name some points of difference between TRUNCATE and DELETE commands in SQL?
The following table consists of the difference between truncate and delete commands.
Name some of the disadvantages of the waterfall model?
Following are some of the disadvantages of the waterfall model.
It is not recommended for complex or object-oriented programmes.
It's difficult to track progress at each step.
It is not recommended for projects with regular requirements that could result in a significant risk of change. As a result, this model has a high level of risk and unpredictability.
Because integration is completed towards the end, it is impossible to discover any commercial or technology bottlenecks or issues early on.
Only at the end of the life cycle is working software developed.
What are some of the different levels of programming language?
The various different levels of programming language are discussed below.
Low-level Language: A low-level language is one that is directly understood by the machine (binary language or machine language). It is difficult for a person to read and code in this language directly.
Mnemonics will be used in this assembly level language, which will reduce programme complexity. It's comparable to computer comprehensible machine code, except instead of numbers, it employs words.
Middle-level Language: This type of language interacts with a computer's abstraction layer and bridges the gap between high-level and machine-level languages. Programming languages such as C and C++, for example.
High-level language (HLL): This is the most advanced programming language available, with strong abstraction from computer hardware specifics. That is to say. This programming language does not necessitate a thorough understanding of computer hardware. Humans may easily learn this programming language because it is written in a human-readable format. Java, Perl, PHP, Python, and other programming languages are examples.
Write a C++ program to check whether a given input number is a Palindrome or not.
Following is a C++ program to check whether the number is a Palindrome or not.
With this code, we come to the end of this blog, I hope these Infosys interview questions will be helpful in your next interviews.
Comments
Post a Comment