Javatpoint Logo
Javatpoint Logo

IGATE Interview Questions

IGATE Interview Questions

About the Company: IGATE

IGATE (now a part of Capgemini group) is one of the leading company for Information technology. It is headquartered in Bridgewater, New Jersey, United States. IGATE is one of the world's leading provider of consulting, technology and outsourcing service with 180,000 employees in over the 40 countries. It was founded in 1996 and on April 27, 2015, it was acquired by French IT service group Capgemini.

KEY people:

  • Founder: Narendra Patni
  • Co-founder-Sunil Wadhwani
  • CEO of the Company: Srinivas Kandula

iGate Recruitment Process


The complete recruitment process goes through various rounds. Every round opens the door for the next round. Mainly the process involves three rounds. These rounds are:

  1. First: Written round
  2. Second: Technical interview round
  3. Third: HR interview round

First Round: Written round


Description

The very first round for IGATE recruitment process is written test. It consists of mainly two sections that are General Aptitude and English proficiency test. The complete test has 60 total numbers of questions, and there will be a negative marking of .25/wrong answer

Written test pattern:

English proficiency: 20 Questions

Quantitative aptitude: 15 Questions

Verbal Reasoning: 15 Questions


Verbal English Interview Questions


Fill the Correct option.

1) If Riya ________ ready ________ in the house, I will rent it out because it is vacant since long.

  1. were, stay
  2. is, staying
  3. would be, staying
  4. is, to stay

Answer: d


2) John _____________ along the road.

  1. ran
  2. fell
  3. sat
  4. stopped

Answer: a


3) ___________a match to light the candle in the room.

  1. Hit
  2. Rub
  3. Strike
  4. Fire

Answer: c


4) These instructions must be followed by every student __________ the semester _______exception.

  1. in, with
  2. throughout, without
  3. at, at
  4. with, without

Answer: b


5) In Rohan's family, when they sit at _______ dining table __________ family likes to do all____________ chitchatting.

  1. a, a, a
  2. a, the, a
  3. the, a, the
  4. the, the, the

Answer: d


6) I miss ________ the today's news, while I am travelling.

  1. watching
  2. watch
  3. to watch
  4. watched

Answer: a


7) Find the Antonym to the word "QUIESCENT."

  1. Active
  2. Dormant
  3. Weak
  4. Unconcerned

Answer: a


8) Arrange the following sentences in a correct order.

  • for the rest of the year
  • to buy anything else
  • if we use up the money
  • I think
  • we wouldn't be able

Correct Option will be

  1. 43521
  2. 45321
  3. 31542
  4. 35421

Answer: a


9) Priya was laughing so hard _______ Ravi's joke that she fell _______ her chair ________ the floor.

  1. on,of,to
  2. at,off,onto
  3. by,of,on
  4. of,at,upon

Answer: b


10) Success in the IAS examination depends ....... hard work only.

  1. At
  2. Over
  3. For
  4. On

Answer: d


Aptitude Questions


1) If 35% of 30 = 25% of X + 1, find the value of X.

  1. 38
  2. 28
  3. 42
  4. 32

Answer: a

Explanation:
35% of 30=25% of X+1
35*30/100= 25*X/100+1
105/10=X/4 +1
X=38


2) Shiva purchased 40 shirts for Rs.3000. he spends 10% on transportation. What should be the selling price per shirt to gain a profit of 20%?

  1. 100
  2. 80
  3. 99
  4. 110

Answer: c

Explanation:
Total cost price of 40 shirts including transportation = 3000+ (3000*10)/100 = 3300
Given profit = 20%
Hence, Selling price = (100+20)*3300/100
S.P of 40 shirts = 3960
So S.P. of 1 shirt = 3960/40= Rs.99


3) If a man travels with 5/6th of his usual speed, he is late by 15 mins. What is the usual time taken to travel?

  1. 60 min
  2. 40 min
  3. 75 min
  4. 30 min

Answer: c

Explanation:
Suppose man's usual speed = s, and usual time = t
So distance = speed *time ==> d= s*t
If he travels with 5/6th of his usual speed which is = s*5/6
And time= (t+15) and distance, d = (s*5/6)*(t+15) {as distance will be same}
s*t = (s*5/6)*(t+15)
t= (5t+75)/6
t= 75 min.


4) If the current age of Ram's father is thrice of age of Ram. Then After 10 years, the age of father will be 2 times the age of Ram. The current age of Ram is-----

  1. 10 years
  2. 15 years
  3. 22 years
  4. 18 years

Answer: a

Explanation:
Let take current age of Ram= x, current age of father = 3x
After 10 years, Ram age = x+10, Father's age= 3x+10

As per condition:
3x+10= 2*(x+10)
3x+10 = 2x+20
X= 10 years


5) The average age of five girls in a hostel is 11. The oldest girl among them is 15 years old. What is the average age of the other girls?

  1. 12 years
  2. 9 years
  3. 10 years
  4. None of the above

Answer: c

Explanation:
As per question, the average age of five girls is 15, Lets X be the total age of the girls
X/5= 11
X= 55
Oldest girl age+ remaining 4 girls age= 55
Remaining 4 girls age= 55-15==> 40
Average age of 4 girls = 40/4= 10 years.


6) The cost price of a bed is Rs.2400 which is 20% below the market price if it is sold at a discount of 16% on the market price then find its market price, selling price and profit?

  1. Rs.3000, Rs.2520, 5%
  2. Rs.4000, Rs.3520, 6%
  3. Rs.5000, Rs.6250, 7%
  4. None of the above

Answer: a

Explanation:
Cost price of bed= Rs.2400
Let's take market price of bed = X
As the question
C.P= (X-20X)/100
C.P= 80*X/100 -> 2400=8*X/10
X = Rs.3000.
-> S.P = 3000 ? (16*3000)/100
Selling Price = 2520
-> Profit = 2520- 2400 ==> 120Rs.
%profit = 120*100/2400= 5%


7) In how many ways letters of world "LEADING" can be arranged, so that vowels always come together?

  1. 350
  2. 720
  3. 480
  4. 5040

Answer: b

Explanation:
LEADING word can be written as "L" "E" "A" "D" "I" "N" "G"
Taking vowels together = E A I, so vowels can be arranged as= !3 ways and lets Vowels be a unit X
So X L D N G, It can be arranged in = !5 Ways
So complete word can be written in= !3 *! 5 = 720 ways


8) If the first day of year is Monday. Then what is the last day of the year, if it's not a leap year.

  1. Sunday
  2. Tuesday
  3. Saturday
  4. Monday

Answer: d

Explanation:
Since the year is not leap year hence odd day will be = 1 day
So 1's day of next year will be = (Monday+ odd day) => Tuesday
So last day of that year = Monday


9) A and B can complete a work in 30 days, working together. Both worked for 20 days and then B left the work. The remaining work was completed by A alone in 20 more days. So in How many days B alone can complete the entire work.

  1. 50 days
  2. 60 days
  3. 48 days
  4. 54 days

Answer: b

Explanation:
(A+B)'s 1-day work, when working together= 1/30
(A+B)'s 20 days' work= 20/30==> 2/3
Remaining work = (1-2/3) ===> 1/3
Remaining work was done by A in 20 more days = 1/3
So A can complete the whole work alone in = 20* 3 ===>60 days
Hence A's 1-day work, working alone = 1/60
B?s 1 day work, working alone = 1/30-1/60======1/60
So B will take 60 days to for completing the entire word.


10) Find the Value of (483*483*483+ 517*517*517) / (517*517 - 517*483 + 483*483)

  1. 1000
  2. 23.4568
  3. 5436948
  4. 1

Answer: a

Explanation:
(483*483*483+ 517*517*517) / (517*517 - 517*483 + 483*483) a3+b3= (a+b)(a2-ab+b2) Hence [(a+b)(a2-ab+b2)] / (a2-ab+b2) = a+b In the given equation a=483 and b= 517 ==> 483+517=1000.


Reasoning Questions


1) If the word TEACHING is coded as CHEATING, then how can be code the word GRADIENT?

  1. RADIGENT
  2. DIERATING
  3. RGDIEANT
  4. DIRAGENT

Answer: d

Explanation:
T E A C H I N G is equivalent to word C H E A T I N G, hence the words are replaced as the following
1 Letter is replaced with 5 letter
2 Letter is replaced with 3 letter
3 Letter is replaced with 4 letter
4 Letter is replaced with 1 letter
5 Letter is replaced with 2 letter and last 3 letters are same
Hence we can code G R A D I A N T as D I R A G E N T


2) In a row of girls there are 16 girls between Neha and Ruchi. Neha is the thirty-second girl from the left end of the row. If Neha is nearer than Ruchi to the right end of the row, then how far away is Ruchi from the left end of the row?

  1. 16th
  2. 15
  3. 14th
  4. None of the above

Answer: b

Explanation:
As per 1 statement:
Neha --------------------16 girls ----------------------Ruchi
As per 2 statement:
Left end -------------------------------Neha (32nd)
As per 3rd statement:
Left end------------------- Ruchi ------------ 16 girls --------------------Neha ----------Right end
=======>32nd
Hence, Ruchi position form the left = 32-(16+1) = 15th position


3) Statement:

I. no rubies are pearls

II. some pearls are diamonds

Conclusions:

I. no rubies are diamonds

II. some diamonds are pearls

  1. only conclusion I follows
  2. only conclusion II Follows
  3. both conclusion I And II follow
  4. neither conclusion I Nor conclusion II FOLLOWS

Answer: b


4) If BLACK will be coded as 145 like that RED -81,

GRAY- 204 then GREEN can be coded as:

  1. 540
  2. 385
  3. 400
  4. 245

Answer: d

Explanation:
Put the value for A =1, B=2, C=3 ...Z= 26
BLACK = (2+12+1+3+11)*No of letters = 29*No of letters = 29*5====> 145
RED = (18+5+4)* no of letters = 27*3= 81
GRAY = (7+18+1+25) * no of letters = 51*4= 204
So, GREEN= (7+18+5+5+14) = 49*5= 245 ANS.


5) Statement:

I. Some plastics are bowl

II. Some bowl are plates

III. Some plates are flowers

Conclusions:

I. some flowers are plastics.

II. Some flowers are bowl

III. No plastic is a flower.

  1. None follows
  2. Only I follows
  3. Only II follows
  4. Only either I or III follows
  5. Only III follows

Answer: d

Explanation:
iGATE interview questions
As in all conclusion, no direct relationship is given hence answer will be d.) Only either I or III follow


6) Pointing to a girl in a photo album, Ajay said "she is the daughter of my father's son. How is Ajay related to her?

  1. Brother
  2. Cousin
  3. Father
  4. Uncle

Answer: d

Explanation:
My father's son = Ajay's brother (as he has not mentioned the only son)
Daughter of my father's son = daughter of my brother, Hence Ajay is an uncle of that girl


7) which statements of the following is necessary to answer this question

Q: How long would Ram takes to complete the work?

Statement 1: Ram and Mohan working together, take 30 days to do the work

Statement 2: Ram, Shyam, and Mohan working together and finish the work in 20 days

Statement 3: Mohan is two times more efficient than Shyam

  1. All three statements
  2. Statements 1and3
  3. Statements 2and3
  4. statements 1and2

Answer: a
(Ram + Mohan)'s 1-day work = 1/30
(Ram + Mohan + Shyam)'s 1-day work = 1/20
Shyam's 1 day work = 1/20- 1/30= 1/60
To find the Ram's total day we need 3 statement as well-
Mohan: Shyam efficiency ratio = 1:2
Mohan' total days of work = 2*60= 120
Ram' total days= 40 days
Hence all three statements are required to answer the given question


8) Find the best suitable analogy for PAIN:SEDATIVE:

  1. comfort: stimulant
  2. grief: consolation
  3. trance: narcotic
  4. ache: extraction

Answer: b


Second Round: Technical interview round


The candidates who will clear the first round will be shortlisted for the next round, i.e., Technical interview round in which candidate will be checked upon their technical skills. This interview round includes the question on the basis of different technologies such as C/ C++, JAVA etc. There will be no specific time limit and it totally depends on candidate knowledge. There is a list of some most asked technical interview questions in IGATE recruitment process, given with the most suitable answer.

1) Differentiate between low-level language and high-level language?

A computer cannot understand the human language, so we need a different type of language to communicate with the computer. There are various types of languages which a computer can understand and work accordingly so, there are two types of languages:

Low-level language and high-level language.

The main differences between both the languages are given below:

Low-level language High-level language
Low-level languages are machine dependent languages that means we cannot execute it on other platform. High-level languages are machine independent languages that mean we can execute it any platform (Mac, Windows, and Linux).
Low-level languages are more machine-readable. High-level languages are more human-readable.
It is difficult to write and compile a low-level language. It is easy to write and compile a high-level language as compared to low-level language
It is difficult to find errors and debug a program in a low-level language. Finding an error and debugging is easy in a high-level language.
Low-level languages are written in binary form, so these are faster than other languages. High-level languages are written in some human readable instruction which needs to convert to binary form so these are slower than
Example of low-level language is machine language. low-level languages
Example of high-level language is C++, Java etc.

2) Explain an interface in Java language?

Interface in Java is a way to achieve the abstraction. An Interface is like a class and also can have methods and variable as a class does but Interface only contains method signature and does not have a body.

  • An Interface cannot be instantiated in Java
  • An Interface includes methods which are public and abstract (by default).
  • A class can implement an interface.
  • For declaring an interface, we use the keyword interface.

Syntax:


3) How can we create an interface in Java?

To create an interface in Java, we can use the keyword "interface" followed by the interface name.

Example

We can implement an interface in a class by using keyword "implement" and can use abstract methods.


4) What is immutable class and how to create an immutable class in Java?

An immutable class is one in which once an object is created, then we cannot alter the values, or we cannot change its content. As in Java, we have wrapper classes like String, Boolean, Integer, etc., all these classes are immutable classes, and we can also create an immutable class by own.

Following are some requirement to create an immutable class in Java:

  • A class needs to declare as final so that it cannot be inherited.
  • All the data members of the class need to declare as final so its value can't be changed.
  • No option for setters method.
  • There should be getter methods for all variables.

5) "String class is immutable", explain the reason?

String class is immutable in Java that means we are unable to change its value. It is because a String object is always cached in the String pool, and these pools can be shared between various clients. So there will always a risk that if we change in client's string it will automatically affect all the client's action. So every time when we try to change the String value, it will create a new object


6) How can we inherit the constructor in a class, in Java?

We cannot inherit the constructor in the class. If we try to inherit a parent class constructor to the child class, then it will give the compile-time error because Constructor name should be same as the class name and constructor inheritance is against the constraint of Constructor.

Example:

Output:

Error message:
prog.java:10: error: invalid method declaration; return type required
   ConstructInheritance(){

Note: Although we can call parent class constructor in child class using super() method in a child class


7) What is a static keyword in Java? What is its significance?

Static keyword in Java can be used primarily for memory organization. A static member in Java class always belongs to its class, not an instance. A static keyword can be used with:

  • Blocks
  • Variables
  • Methods
  • Nested class

To create a static member, we need to declare it as static. The instance of a static member created only once, and it is shared across all the objects. A static member can be accessed before its object is created.

Output:

the value of i in static block=1
the value of i in static block=2
the value of i in static block=3
the value of i in static block=4
the value of i in static block=5
This is static mehtod 

8) What do you understand by Encapsulation, inheritance, and abstraction in JAVA?

The term encapsulation, Inheritance, and abstraction are the features of object-oriented programming. These features provide the facility to deal with the objects.

Encapsulation: Encapsulation is one of the primary features of OOPs concept. The process of binding the data and methods in a single unit is called as encapsulation.

With the help of encapsulation, we can hide the data members from other classes, and it is only accessible by its current class.

There are two ways to achieve encapsulation:

  • Modify the class variable as private.
  • Using public Setter and getter method to set and get the values.

Inheritance: - Inheritance in Java is a process by which on class can inherit the properties (methods and fields) of another class. It increases the reusability of methods and fields. We can use inherited methods and also can add new methods. Inheritance shows parent-child relationship also known as IS-A relationship.

There are the following terms used in inheritance:

Child class/Subclass: Child class or sub-class is one who inherits the other class.

Superclass/ Parent class: Superclass or Parent class is on which got inherited by another class. It is also known as base class. For inheriting one class, into another class we use extends keyword in Java.

Syntax for inheritance:

Where class A is child class, and class B is Parent class.

Abstraction: Abstraction is a one of the important Feature of OOPs concept, which helps a user to show only the functionality not the implementation details of the object. In Java languages we can achieve abstraction in two ways:

  • By using the abstract class (0 to 100%): A class which is declared using 'abstract' keyword is considered as an abstract class. An abstract class can have an abstract method as well as non-abstract methods.

Syntax:

  • By using interface (100%): An interface in Java is the same as a class in java, it can have abstract methods and variables. But it cannot have a method body. we can declare it by using the interface keyword

Syntax:


9) What is Normalization? Explain its types?

Normalization is a technique of efficient database designing and organizing to achieve two basic requirements:

  1. Minimum redundancy of data
  2. Logical data integrity.

Normalization increases the performance of the database, as it allows a database to take very less space in memory.

There are mainly four types of Normalization, which are given below:

IGATE Interview Questions
  • 1NF: A relation in the table be in first normal form if each attribute is single value attribute
  • 2NF:
  • 3NF
  • BCNF

10) Can we check whether a link list is circular or not?

Yes, we can check that a given link-list is circular or not. A link-list will be a circular link-list if it follows the two main requirements:

  1. If a link list is not null terminated( it points to the first node)
  2. If all nodes are connected in the form of cycle.

11) What does itoa() function in C?

The itoa() function in C language used to convert an integer value to its equivalent null-terminated String. It stores the result in an array.

Syntax:

Parameters:

value: A value which needs to be converted

str: A parameter which stores the converted value as an array

base: It represents the numerical value, which is used to give the conversion base, as base 2 for binary, base 10 for decimal.


12) How can determine the size of the class?

The size of a class depends on the size of its members. There are the following factors which determine the size of a class:

  • Size of all non-static members of the class
  • Size of its immediate parent class(if have)

13) What do you understand by aggregation? How it differs with the association?

In UML (Unified Modeling Language) there are various types of relationships for the object-oriented system. Association and Aggregation are also a type of relationship in UML.

Aggregation: Aggregation is a specific type of association between two or more objects. In Aggregation, objects can have their lifecycle with ownership. It is a one-directional association. If we destroy one object, it will not affect another one. It is also called as HAS-A relationship.

Association: Association is a relation between two objects with their own lifetime and without any ownership. An association relationship can be represented by the following type:

  • One-to-one
  • One-to-many
  • Many-to-many

The aggregation and composition are the part of the association.


14) Differentiate between constructor and destructor?(C++)

Differences between constructor and destructor are given below:

CONSTRUCTOR DESTRUCTOR
A Constructor is used to initializing the object of that class Destructor is used to destroy the previously created object of the class
Constructor name is always the same as class name with no any return type. Destructor name also same as the class name without any return type, but with ~ (tilde) prefix.
Constructor overloading is possible in a class Destructor does not allow overloading (it can only be specified once in a class).
Syntax:
class EmployeeCons{
                   EmployeeCons(){   }
                                           };
Syntax:
class EmployeeDestr{
                         ~EmployeeDestr(){   }
                                            };
Constructor allocates the memory while creating an object Destructor release the memory while destroying an object.

15) What do you understand by pre-processor? What are different types of header files in C?

The C pre-processor is used to scan and modify a source code before its compilation. The line starting with the symbol # followed by the directive name, in the source code, is known as pre-processor directive. Pre-processor directive invoked by the compiler to process some code before the compilation process.

  1. Each line in code can have a single pre-processor directive
  2. Pre-processor directive does not include a semicolon at the end.

Header files are the files which contain macro definitions and functions definition. It used with pre-processor directives with a file extension of ".h." There are two types of header files in C:

  • System header files: These header files come with the compiler
  • User-created header files: These files are written by the programmer.

Following are some mainly used header files in C

  • #include<stdio.h>
  • #include<conio.h>
  • #include<stdlib.h>
  • #include<string.h>
  • #include<math.h>, and many more.

16) What are some DBMS packages?

There are some built-in DBMS packages provided by Oracle. With the help of Oracle DBMS packages, we can create various Oracle applications.

Following are some basic packages provided by Oracle:

  • Oracle dbms_alert
  • Oracle dbms_application_info
  • Oracle dbms_aqadm
  • Oracle dbms_crypto
  • Oracle dbms_fga
  • Oracle dbms_job
  • Oracle dbms_job.submit
  • Oracle dbms_lob
  • Oracle dbms_metadata
  • Oracle dbms_monitor

17) Differentiate between compiler and interpreter?

A computer can only understand the code written in binary form, i.e., in the form of 0's and 1's, Therefore, to communicate with the computer we need to convert our code (source code) into machine code. And the compiler and interpreter both are the computer programs which convert a programming language from source code to machine code. The main differences between both of the translator are given below:

Compiler Interpreter
A compiler is a software program that converts a high-level language source code into a low-level language machine code The interpreter is a software program that is used to directly execute a source code written in a high-level programming language
It creates an intermediate source code. It does not create any intermediate code.
A Compiler converts the source code completely at a time Interpreter converts the source code line by line at a time.
A compiler converts source code in one go, hence these are faster. As interpreter converts a source code line-by-line, hence these are slower as compare to the compiler.
Finding an error is difficult. Finding an error is easy.
Used for the languages C, C++, C#, Scala, etc. Used for languages Java, PHP, Perl, Python, etc.

18) What type of operation can be performed using stack and queue in Data structure?

Organization of data in the computer can be done with the help of data structure so that data can be accessed easily and efficiently. There are different types of data structure used in computer, and two of them are Stack and Queue data Structure.

Stack: A stack is a type of linear-data structure, which logically represents and arrange the data in the form of a stack. As a real-life example of a stack is "plates arranged in the form of the stack." In a stack structure, any operation can be performed on data items from one end only.

A Stack structure follows a particular order for operation on data items, and that order can be LIFO (Last in First Out) or FILO (First in Last Out). A stack can be represented in the form of an array.

Types of Operations performed on Stack:

1. Push: Push is an operation that can be performed, to add an element in the stack.

IGATE Interview Questions

As in the above diagram, the top element was 93 (before addition of a new element), and after performing PUSH operation, a top element is 10. Now pointer will point at the top of the stack.

2. Pop: If we try to remove or delete an element from the Stack, then it is called as Pop operation.

IGATE Interview Questions

As in the above diagram, if we want to delete an element from the top of the Stack, then it can be done by the Pop operation.

3. isEmpty: If we wanted to check whether the stack is empty or not, then we can perform an isEmpty operation. It will return three values: If we will perform a Pop operation on empty Stack, then it is called underflow condition.

IGATE Interview Questions
Empty -1
Single element present 0
Stack is full N-1
Stack overflow N

4. Peek or Top: If we perform Peek operation it checks all the elements of the stack and returns the top element.

Queue: A Queue is an ordered collection of data elements same as a stack, but it enables insertion operation from one end called as REAR end and deletion operation from other end called as a FRONT end.

A Queue structure follows an order of FIFO (First in First Out) for insertion and deletion of the data element.

Real life example of a queue is people waiting to buy a movie ticket in a line.

IGATE Interview Questions

Types of Operations performed on Stack: The two main operations which can be performed

On Stack are Enqueue and Dequeue.

Enqueue:

This operation is performed to add an element in the queue at the rear end. After adding an element in a queue, the count of Rear pointer increased by 1. Below is the Array representation of queue with Enqueue operation.

IGATE Interview Questions IGATE Interview Questions

Dequeue:

This operation is performed to remove an element from the queue at the front end. After removing an element from the queue, the count of Front pointer gets decremented by 1. Below is the diagram which shows the removal of the data element from a queue.

IGATE Interview Questions

Other operations performed on the queue are:

Peek: This operation is used to get all the data elements of queue without deletion of an element, at the front end.

Isfull: This operation is performed to check whether a queue is full or not.

Isempty: This operation is performed to check whether a queue is empty or not.


19) What is use the of fprintf and fscanf?(C)

Function fprintf(): In C language this function is used to write the character, integer, and String values into a single file.

Syntax:

Example:

Output:

12 rollno student present

Function fscanf(): In C language fscanf() function is used to read set of characters or mixed data from the file.


20) What is a linked list? Explain its applications?

  • A Linked list is a linear data structure similar to an array, which is used to store the data in an organized way.
  • In Linked list data elements are not stored in contiguous blocks.
IGATE Interview Questions

Applications of the Linked list:

  • A linked list can be used for implementations of stacks and queues.
  • Implementation of graphs can be done using the linked list
  • A linked list can be used for dynamic memory allocation
  • A linked list can be used for implementation of graph
  • It can be used for performing arithmetic operations on long integers.
  • A linked list can be used with the music player for playing the songs.

21) How C++ is more advantageous as compared to C?

C and C++ both are the computer programming languages. Both the languages enable us to write efficient code. As C++ is an advanced version of C language, therefore it has some extra features than C languages. The main advantages of C++ over the C language are given below:

  • As C++ is an object-oriented language, hence support the function overloading, whereas C language does not support function overloading.
  • C++ provides the property of data hiding, whereas C does not provide this feature
  • C++ supports exception handling, whereas C does not support the exception handling concept
  • C++ provides a concept of classes and objects, wherein C language there is no such concept.

22) Which is the smallest package in Java API?

The smallest package in Java API is java. applet package.

23) What are searching techniques? Explain the linear search?

Searching is the process of finding the value or place of a data element in a given list. A searching technique will be successful if the data element are found else it will be unsuccessful. There are primarily two types of standard searching techniques, which are:

  • Linear search or Sequential search
  • Binary Search

Linear search: Linear search technique is the easiest way of searching an element. We can perform a linear search operation in both sorted and unsorted list (usually an array list). To understand the linear search, let's take an example of an array list of 8 elements

Example:

IGATE Interview Questions

The Basic algorithm for linear search:

  • Step 1: Traverse the array list.
  • Step 2: Match the key element with all elements present in the array
  • Step 3: if key element found, return the index position of an element in the array list
  • Step 4: If the key element does not found, return -1

Implementation of linear search using Java program:

Output:

90 is found at index: 6

Drawback:

  • In a linear search, we need to traverse the complete list
  • Searching speed is slow

To overcome these disadvantages, we can implement the Binary search.


24) Write a program to swap two given strings without using any third variable?

Following is a program for swapping two strings without using the third variable in Java

Output:

Before swap: Hello world
After swap: world Hello

25) What is data abstraction in a Database system?

Data abstraction:

Data abstraction is a technique to hide the irrelevant internal details of data from the user. It makes an easier user interaction with the database. This technique creates an easier way of database designing.

There are three levels of data abstraction:

1. Physical level

  • Physical level is the base level of data abstraction
  • It gives information that how data stored actually in the database
  • Give information to a developer about memory size, requirements, and accessing frequency of record.
  • This level uses the organization methods such as hashing, sequential, B+ tree, etc.

2. Logical level

  • Logical level is the intermediate level for data abstraction
  • It describes what type of data is stored in the form of tables.
  • It also relates the data and tables with the help of mapping.
  • Any type of changes does not affect other levels

3. View level

  • View level is the highest level of data abstraction.
  • At this level, a user can view the part of the actual database
  • A user can look at the data in the form of rows and column.
  • In this level, a user can interact with the database in an easier way
  • A User can see the data in various views for the same database.

26) Write a program to find the factorial of a number?

Following is a program for factorial of a number using Recursion in Java.

Output:

Factorial of 5 is: 120

27) Explain about daemon thread?

  • Daemon threads are the low priority thread for JVM. Which work as a service provider for the user threads.
  • Daemon threads are background programs, which perform tasks such as garbage collection.
  • Daemon threads cannot prevent JVM from exiting if all user thread has finished their execution.
  • If the program has only daemon thread and it is executing, still it will terminate the thread and will shut down itself.
  • The lifetime of daemon thread totally depends on user threads.

Methods for daemon thread:

  1. public void setDaemon(boolean status): This method sets the current thread as user thread or daemon thread.
  2. Boolean isDaemon(): This method checks whether the current thread is daemon or not. It returns the true or false Boolean value.

28) What do you understand by a foreign key in SQL?

A foreign key is a field in a table, used to create a link between two tables. It defined in one table but refer to the primary key of another table. A table which contains the foreign key is called the child table. And the table which includes the candidate key is called as parent table.

Some important points for foreign key:

  • A value for a foreign key can be NULL.
  • All values for foreign key should be present for all equivalent values of a primary key.

29) What do you understand by serialization?

  • Serialization in Java is a process of converting the state of an object into a byte stream that can be sent across a network, or it can be saved as a file.
  • The reverse process is called as deserialization that means converting a byte stream into an object.
  • The byte stream in the process is platform independent or JVM independent.
  • We can use java.io.Serializable interface to create an object serializable. This interface is a marker interface, which does not contain any data member or method.
  • The two classes ObjectInputStream and ObjectOutputStream implement serialization in Java.

30) Differentiate between ArrayList and LinkedList?

The basic difference between the ArrayList and LinkedList are given below:

ArrayList LinkedList
ArrayList implements dynamic array to store the elements LinkedList implements doubly linked list to store the elements
Insertion of the new element is difficult due to the risk of resizing Insertion of the new element is easy as compared to ArrayList
Removal of the data element is difficult Removal of the data element is easy
ArrayList is fast in accessing and storing the data elements LinkedList is fast in the manipulation of data elements.
List<type> al=new ArrayList<Type>(); // Creation of ArrayList List<Type> al2=new LinkedList<Type>(); // Creation of LinkedList

31) Why we use garbage collection in Java?

Whenever we create an object, it occupies some space in memory. And once it completes its task, we need to delete this object to free the memory, so that it can be used by another object. For this purpose, we have used garbage collection in Java.

  • Garbage collection in Java is a process which is used for automatic memory management.
  • It destroys or deletes the unused objects from the heap area of the memory.
  • We do not use any explicit method or function in Java for garbage collection as it is automatically performed by JVM.

32) Differentiate between static and non-static variables?

In the Java language, we can use two types of variables that are static variable and non-static variable. The main differences between both the variables are given below:

Static Variable Non- static Variable(instance variable)
To specify a static variable we need to use keyword static with the variable name To specify a non-static variable we do not need to use any keyword, we can simply give a variable name
Static variable belongs to its class, not the instance Non-static variable belongs to the instance of the class.
Memory is allocated to the static variable, at the time of loading of the class Memory is allocated to non-static variable whenever we create a new object.
We can access the static variable with class reference We can access the non-static variable with an object reference
A static variable can be shared between all the instances of class A non-static variable can be used for a single instance.

33) Explain the Scope resolution operator in C++?

Scope resolution operator in C++ used for the following purpose:

  • Defining a function or variable outside a class.
  • If we want to use a global variable which is also used as a local variable with the same name.
  • If we want to access a class?s static variable.

The symbol for scope resolution operator is,: : used in C++.

Output:

Local variable: 10
	Global variable: 5

34) What is the difference between object and class?

The class and object are the main features of OOP concept. The primary differences between the object and class are given below:

Object Class
An Object is a physical entity. A Class is a logical entity.
An object is defined as an instance of its class Class is the template for an object.
An object can be created using the new Keyword A class can be created using the class keyword.
An object occupies memory when it is created. A class does not consume any memory when it is created.
An object can be created many times according to requirement. A class can be created only once.

35) What do you understand by Value type and Reference type in .Net framework?

In the .NET framework, the Types are of either Value type or reference type depending on, how they stored the value.

1. Value type: if the data-type stores the value into its own memory space, it is called as a Value type. In value type, we can directly provide the values to the variable. Datatypes such as int, char, float, double, enum, struct, etc., are of value type.

IGATE Interview Questions

2. Reference type: Reference type does not store value directly in the variable. It stores a pointer to another memory location, which stores the data. As reference type stores the address of the data, not actual data, so if we change in an address it will create another copy for the reference which will point to the same data. Example are objects, array, Classes, Interfaces, etc.

IGATE Interview Questions

36) Differentiate between graph and tree?

A tree and a graph both are the non-linear data structure, which consists of nodes and edges. The main differences between both tree and graph are given below:

Graph Tree
In a graph, more than one path is allowed In a tree only one path is allowed between two nodes.
In a graph, there is no any root node It contains one root node
A graph represents a network model A tree represents a hierarchal structure.
In a graph, there is no any pre-defined number of edges. In a tree, the number of edges should be n-1(where n= no of nodes)

37) Explain the difference between Abstract class and Interface?

The Interface and Abstract class both are the way to achieve abstraction In Java. But there are some differences between both of the ways:

Interface Abstract class
An Interface can only have abstract methods(methods without body) An abstract class can have abstract and non-abstract, both type of methods,
For the declaration of an interface, we use the keyword "interface." For the declaration of an abstract class, we use "abstract" keyword.
The Interface supports the multiple inheritance Abstract class does not support multiple inheritances.
An Interface can be implemented in a class using keyword "implements" An abstract class can be used in other class using the keyword, "extends."
Interface methods are implicitly public and abstract. Hence we cannot use other modifiers In abstract class we can different types of modifiers such as public, private, protected as well as abstract.

THIRD ROUND: HR interview round.


HR round is the final round of recruitment process. This is also the most crucial round as you will be going to represent yourself as personal and as well as professional level. In this round, the questions will be based on your resume, Job profile, about the company, about yourself, etc. HR round is mainly to check your confidence and communication skills. So here are some mostly asked HR questions with most appropriate answer, which will prepare you completely to crack this Interview.

1) Brief about yourself within a minute?

This question would be the first most question for HR round, by which the interviewer wanted to check your confidence level with fluency and, how well you can explain about yourself. To answer this question here are some basic tips:

  • Tell the interviewer your brief introduction.
  • Tell about your academics.
  • Tell about your skills, strength and hobbies.
  • Tell about your goals.

Example:

Hi/hello sir, my name is Riya, and I am from Chandigarh, I have completed my B.Tech from Chandigarh University in Electronics and communication with 75% aggregate. I am skilled in Java and C/C++. I did my academic project, which was based on the technology of AI. If I talk about my hobbies, so I am very passionate about writing poems and new thoughts. My strength is my confidence. With this, I can handle any situation. My goal of life is to become a well-known name in the field of information technology. Thank you!

2) Do you have any prior experience?

This is the question, which hiring managers want to have a better understanding about your work experience. To answer to this question will depend upon whether you have any prior experience or not.

If having an experience:

Yes, I do have an experience of 1 year as a software tester in ABC Company. In this position, I was responsible for testing the software and generating the best output. During this one year experience, I have learned lots of things in Software testing and also got awarded as the most dedicated employee of the company.

If you are Fresher:

Currently, I do not have any prior experience as I am just graduated and seeking an opportunity.

3) If you got an option to choose between money and career, what will you prefer?

This is the question where the hiring manager checks about your preferences of money in your decision making. So answer this question is a little bit tricky as money and career have both its importance. Here is an example, that how to answer such type of question.

Example:

Yes, money is important for me, as it is helpful to fulfil my personal needs of life. But on the other hand, career is also more important for me which will provide me the success and will open the door of the growth path and various opportunities.

4) Who is your inspiration for life and why?

Example:

My inspiration for life is my father, as for me he is a superhero who can stand in any situation and can fight with it without any fear. I am very inspired by his motivation, his leadership quality, his dedication and many more. He has faced many lousy situations in his life but never give up, and always remain happy. I wanted to be like my father.

5) What is your short-term and long-term goal for the career?

This is the most common question of an interview. By this question, the interviewer evaluates your interest and check that how much career oriented you are, which relates to that organization. To answer this question make sure that your long-term goal and the short-term goal should relate to each other.

Example:

My short-term goal is to learn practically about the technologies, and my long-term goal is to be the best employee of this well-established organization.

6) What is your greatest strength and weakness?

By answering this question, you should tell your actual strength by which you can make yourself different from others, and try to relate it with your job profile. For answering about weakness, you should not tell your negative things as I got tired very quickly. It can impact badly.

Example:

My greatest strength is that I am very confident, which enables me to deal with any type of situation and my weakness is that I got very emotional sometimes.

7) Tell something about our company?

By this question, the interviewer wants to check whether you know anything about the company or not. So before going for an interview, you should know about the company profile, company services, and product, etc.


8) Are you ready to relocate to other location?

By answering this question, the candidate should not ask about whether a company will pay for it, or never answer in a negative way.

Example:

I would be happy to relocate for an excellent opportunity for my career growth, and I believe this company is that opportunity.

9) Do you have also applied for other jobs?

By this question, the interviewer wants to know that how much you are engaged in interviews and how much serious you are about getting a job. The answer for this question should be short and not be overconfident if you have other offers.

Example: If you have some opportunity

Yes, I although have job offers from two companies but I would love to work with this organization, as it is my dream company.

Example: If you have not applied yet

Currently, I have not applied for other jobs, but I have prepared to apply for another job in this field.

10) Do you have any problem while working with the team?

The answer to this question should never be in a negative way, as in every organization there might be various projects where employees need to work in a team.

Example:

As I am a team player so, I would love to work with the team. It will make a great environment to do work for me.

11) Would you like to ask any question to me?

This question is generally asked at the end of the interview session, or this might be the last question. By this question, the interviewer gives you an opportunity to ask a question, if you are having any doubt related to job profile, growth path, etc. By asking a good question, a candidate can make a good impression which can help him for further steps.


12) Do you know anyone who is already working with us?

This question is also a tricky question by which interviewer wants to know about your relation to the person who is already working in their company. So before answering this question, you should go through the following tips:

  • First check the company policy, as is there any restriction for relatives or blood relations.
  • If the person you know is well reputed in the company, then it will be good to take his name
  • If the person, you know is having some bad impression so avoid to take his name, or if wanted to take name then answer very carefully in a positive way