In this article you will know about Infosys interview questions with answers and tips to crack Infosys – Guidelines – Infosys Technical & HR Interview

Technical Interview:

1. What is null pointer?

When referring to computer memory, a null pointer is a command used to direct a software program or operating system to an empty location in the computer memory. Commonly, the null pointer is used to denote the end of a memory search or processing event. In computer programming, a null pointer is a pointer that does not point to any objects or function.

In the programming language C, NULL is an available command that can be used, where nil is an available command used in the Pascal programming language.

2. What you mean by Object Relational DBMS?

An object-relational database (ORD), or object-relational database management system (ORDBMS), is a database management system (DBMS) similar to a relational database, but with an object-oriented database model: objects, classes and inheritance are directly supported in database schemas and in the query language. In addition, just as with proper relational systems, it supports extension of the data model with custom data-types and methods.

3. Structural difference between bitmap and b-tree index ?


It is made of branch nodes and leaf nodes. Branch nodes holds prefix key value along with the link to the leaf node. The leaf node in turn contains the indexed value and rowed.


It simply consists of bits for every single distinct value. It uses a string of bits to quickly locate rows in a table. Used to index low cardinality columns.

4. What is database Schema?

The formal definition of database schema is a set of formulas (sentences) called integrity constraints imposed on a database.

5.What are the different levels of database schema?

Conceptual schema- a map of concepts and their relationships.

Logical schema- a map of entities and their attributes and relations

Physical schema- a particular implementation of a logical schema

Schema object- Oracle database object

6. What is difference between foreign key and reference key ?

Reference Key is the primary key that is referenced in the other table (linked via the other tables Foreign Key). Foreign Key is how you link the second table to the primary tables Primary Key (or Reference Key).

7. Tell me about DSN?

A Data Source Name (DSN) is the logical name that is used by Open Database Connectivity (ODBC) to refer to the drive and other information that is required to access data. The name is used by Internet Information Services (IIS) for a connection to an ODBC data source, such as a Microsoft SQL Server database.

8. Tell how to check whether a linked list is circular.

Create two pointers, each set to the start of the list. Update each as follows:

while (pointer1) {

pointer1 = pointer1->next;

pointer2 = pointer2->next; if (pointer2) pointer2=pointer2->next;

if (pointer1 == pointer2) {

print (“circular\n”);



9. Why is it difficult to store linked list in an array?

Both Arrays and Linked List can be used to store linear data of similar types.

Linked list provide dynamic size while the size of array is fixed, So we must know the upper limit on the number of elements in advance.

Linked lists have following drawbacks:

1) Random access is not allowed. We have to access elements sequentially starting from the first node. So we cannot do binary search with linked lists.

2) Extra memory space for a pointer is required with each element of the list.

3) Arrays have better cache locality that can make a pretty big difference in performance.

10. Different types of keys in SQL?

The different types of Keys in sql server are,

A candidate key acts as a unique key. A unique key can be a Primary key. A candidate key can be a single column or combination of columns. Multiple candidate keys are allowed in a table.

Primary Key

To uniquely identify a row, Primary key is used.

A table allows only one Primary key

A Primary key can be a single column or combination of columns.

Foreign Key

A foreign key in a table is a key which refer another table’s primary key . A primary key can be referred by multiple foreign keys from other tables. It is not required for a primary key to be the reference of any foreign keys. The interesting part is that a foreign key can refer back to the same table but to a different column. This kind of foreign key is known as “self-referencing foreign key”.

11. Write a program to swap two numbers without using a temporary variable.

void swap(int &i, int &j)







12. Memory Allocation in C/C++

calloc() allocates a memory area, the length will be the product of its parameters(it has two parameters). calloc fills the memory with ZERO’s and returns a pointer to first byte. If it fails to locate enough space it returns a NULL pointer.

malloc() allocates a memory area, length will be value entered as parameter.(it has one parameter). It does not initializes memory area

free() used to free the allocated memory(allocated through calloc and malloc), in other words, this used release the allocated memory

new also used to allocate memory on heap and initialize the memory using constructor

delete also used release memory allocated by new operator

13. What is virtual function and pure virtual function?

Virtual function:-To achieve polymorphism, function in base class is declared as virtual , By declare virtual we make base class pointer to execute function of any derived class depends on content of pointer (any derived class address).

Pure Virtual Function :-This is function used in base class, and its defination has to be provide in derived class, In other pure virtual function has not defination in base it defined as :

virtual void fun()=0;

This means that this function not going to do anything, In case of pure virtual funtion derived function has to implement pure virtual function or redeclare it as pure virtual function

HR Interview

Question 1. Tell me about yourself ?

Answer: It is the most often asked question in interviews and also the most tricky question. Start by telling why you are well qualified for the position. Remember, always match your educational & experience qualification to what the interviewer is looking for. In other words you should give information what the interviewer is looking for. Be careful that it should not seem rehearsed.

Question 2. What are your greatest strengths?

Answer:  Number of answers are good to give, but in positive manner. Some good instances are:

About your problem solving skills, ability to work hard, professional expertise, leadership skills, positive attitude etc.

Question 3. Do you have any blind spots?

Answer: Disguise your strength as a weakness. Beware this is an eliminator question, designed to shorten the candidate list.

Question 4.  Why should I hire you?

Answer: Try to know the interviewer’s greatest needs and demands, this question will give you advantage over other candidates and give him best facts for hiring you than someone else.

Sample : “What is my responsibility as a son of my father that much of the responsibility I have in my infosys family.”

Question 5.  Where do you see yourself five years from now?

Answer: Don’t be too specific. Make assure interviewer that you want to make a long-term commitment with the organisation and this is the exact position you are looking for.

Question 6.  Describe your management style?

Answer: Tell about some common labels as  progressive or consensus etc. can have several meanings or descriptions depending on which management expert you listen to. The situational style is safe, and fits to all.

Question 7.  Are you a team player?

Answer:  Of course, I’m a team player. Always say this and should have examples ready. Tell that you often perform for the good of the team rather than mean is good evidence of your team attitude.

Question 8.  How would you be an asset to our organization?

Answer:  Highlight and let them know about your strengths. This is the exact question where you can win their heart and with confidence.

Question 9.  Do you have any questions for me?

Answer:  Always have some questions prepared for the interviewer. How soon will I be able to be join? etc.

Question 10. Why Infosys?

If I would get a chance to work with you, it will be the best opportunity I ever got. You are the competitors of many other companies of the same domain.

So, If I start my career with such company then I am sure how great I am going do in future. Your company gives the best platform to utilize my skills effectively.

Question 11. What is Smart work & Hard Work. Which 1 do you prefer?

Hard work – Work and Think

Smart work – Think and Work

Hard work emphasizes giving more time and energy to achieve something contentiously. It needs determination and persistence. However, the latter focuses on finding effective ways or solutions to achieve something with high efficiency. In addition, it needs effective thoughtful thinking.

Question 12. Motto of Infosys?

Powered by intellect, driven by values

Before the Interview:

1. Visit the company’s website

  • Be able to articulate what you learned including your understanding of the mission and philosophy
  • Know what the organization offers including services and product lines
  • Employers expect you to know what the organization is and what it does and how that fits into your employment plans

2. Perfect Your Resume

  • Employers will only consider resumes and cover letters that are flawless in format, grammar, and spelling
  • Resumes should also be tailored to the specific job for which you have applied and should emphasize relevant work experience and academic qualifications

3. Professional dress requirements

  • Conservative dark suit (Men and women, tie for men)
  • Polished closed-toe dress shoes
  • Conservative hair style
  • Minimal make-up
  • No visible body piercing, tattoos



These are all the Guidelines – Infosys technical & Hr interview.