Practice
Resources
Contests
Online IDE
New
Free Mock
Scaler Events New
Practice
Improve your coding skills with our resources
Contests
Compete in popular contests with top coders
Scaler
Explore Offerings by SCALER
Events
Checkout Scaler Academy Events
New

Before you go!

Take this "GenPact Interview Questions" interview guide with you

GenPact Interview Questions

About GenPact

As a budding Software Engineer of today, one would always want to work for companies that believe in their products and aim at creating a huge impact in the world. One such company is Genpact.

Genpact is a multinational professional services company that helps companies transform. The term "Genpact" stands for Generating Impact. They drive digitally-led innovation and digitally-enabled intelligent operations for their clients, guided by their objective of making the world a better place for people. Genpact drives real-world transformation at scale, guided by their experience reinventing and running thousands of processes for hundreds of clients, many of whom are Global Fortune 500 businesses. They use design to think, digital to dream, and data and analytics to solve issues.

They connect every dot, reimagine every process, and change the ways firms function from New York to New Delhi and more than thirty nations in between. Genpact is a fantastic place to start your career as a new hire. It offers a great working environment as well as a welcoming ambience that is good for both personal and corporate growth. Because of Genpact's fast-paced development environment, today's young Software Engineers can learn a lot in a short amount of time. Genpact has legacy code bases for their products. Also, it has a few products being built using the cutting edge technologies of today. Therefore, working at such a company would definitely prove to be beneficial for any Software Engineer looking to work on exciting projects that have a great impact on the world.

This article not only explains how to reply to common Genpact interview questions but also sets out a path for both experienced and inexperienced Software Engineers to land their ideal job at Genpact. The entire Interview Process has been explained in this article and along with that, the most frequently asked questions regarding the Genpact Recruitment Process have also been answered in this article.

Events | Powered By

GenPact Recruitment Process

1. Eligibility Criteria.

The fresher qualifying standards of most other organizations are comparable to GenPact's. Candidates should check the following eligibility criteria (both graduation and general criteria) before applying for the GenPact Recruitment Process:

Graduation Criteria: The following are the graduation criteria for the GenPact Recruitment Process of Software Engineers:-

Graduation Criterias Information
Branch of Study or Department of Study
  1. Bachelor's of Engineering (B.E.) / Bachelor's of Technology (B. Tech) in one of the following disciplines: CSE/ECE/IT/EEE/TELECOM/EI
  2. M.Sc (Master of Science) in Computer Science & Information Technology or related fields.
  3. M.Tech (Master of Technology) / M.E. (Master of Engineering) in Computer Science & Information Technology or related fields.
  4. B.C.A (Bachelor's of Computer Application) or M.C.A. (Master of Computer Application)
Mode of Study

Full-Time courses recognised by the Central or State governments of India.

(Not the part-time or correspondence courses available.)

Minimum Percentage criteria with which Graduation needs to be done Sixty Percent (60%)
Backlogs No Backlogs are active during the GenPact Recruitment Process.

Academic Criteria: Given below is the mandatory academic criteria for the GenPact Selection Process:-

Academic Criteria Information
Minimum Percentage required in Senior Secondary or Diploma Seventy Percent

General Requirements (or Required Skills): For securing a job at GenPact, a candidate must have a set of general abilities. Listed below are a handful of them:-

  • Interpersonal and communication abilities should be exceptional.
  • Should have a technical bent of mind.
  • Professionalism is one's attitude toward one's work should be there.
  • Excellent organizational and detail-oriented skills.
  • One should be able to understand and perform his or her tasks in an independent manner.
  • Having flexibility in the day and night shifts.

2. Interview Process.

Engineering teams, like any other digital business, are vital to the success of Genpact's mission. As a result, Genpact is always looking to grow its technical team, hiring a mix of seasoned specialists and recent grads for a variety of internal developer positions.

At Genpact, the interview process is usually broken down into three stages:

  • One round of online evaluation (The Coding Round is usually conducted on portals like Hackkerank, etc.)
  • A single round of Technical interviews.
  • One Behavioral or Human Resources Round.

3. Interview Rounds.

The Genpact Interview Process for Freshers is virtually comparable to the Genpact Selection Process for Experienced, with the exception of the severity of questions posed in the successive rounds and the number of rounds (Experienced Folks may be directly interviewed and may be allowed to skip the first round as decided by the Recruiter). 

The recruitment process at Genpact is usually broken down into three stages:

1. The Online Evaluation Round or the Coding Round:  The first round of the Genpact is the online valuation round which is usually held on online platforms like Hackkerank, HackerEarth, etc. In this round, the candidates are asked to write down the solution codes for two or three questions which are based on Data Structures and Algorithms. Also, around ten to twenty Multiple Choice Questions are asked in this round which is mostly based on Computer  Science Fundamentals. One must have a solid grasp of the various concepts of Programming and subjects like Database Management Systems, Operating Systems, SQL, Computer Networks, Object-Oriented Programming, a few Programming Languages like Java, C ++, C, Javascript, etc. in order to ace this round. This round is usually eliminative in nature and only the candidates who score well in both these sections are given the green flag for the next round of interviews in the Genpact Recruitment Process. The Genpact technical multiple choice questions and Genpact programming questions are of an easy to medium complexity level, and anyone familiar with the fundamentals of computer science should be able to breeze through this round with ease.

2. The Technical Interview Round:  The second round of the Genpact Hiring Process is a Technical Round in which the applicants are first asked a couple of questions on Data Structures and Algorithms. They might also be asked to code their solutions for the interviewers at Genpact and the code quality, code logic, etc. are thoroughly assessed by the interviewers. After that follows a series of questions that are used to test the technical knowledge of the candidate. Candidates might be asked to write down the SQL queries to do various types of operations on Relational Databases. Questions about a candidate's experience as well as questions about any Cloud-based technologies also may be asked. Knowing how Application Programming Interfaces (APIs) function and how distributed systems are designed can be a huge plus in this interview, making the candidate stand out in the eyes of the interviewers. Questions about any aspect of the candidate's education are likely to be asked during this round. To pass this Genpact walk-in interview round, you must have a solid understanding of computer science basics. Candidates should be familiar with data structures, algorithms, database management systems, operating systems, networking, object-oriented programming ideas, and their preferred programming language, such as C++, Java, Python, and others. A few Unit Testing, Functional Testing questions, etc. can also be asked in this round if the candidate is an experienced Software Engineer. The panel will also ask you questions regarding your resume, so be sure you know what you have written.

3. The Human Resources (HR) or Behavioral Round: The Human Resources or the HR round is the final phase of the Genpact Recruitment Process, and it tries to determine whether or not the candidate is a cultural match for Genpact. Candidates can learn more about Genpact and Genpact tools on the following website: https://www.genpact.com/ in order to ace this interview. Questions based on puzzles can also be asked in this round in order to check how smart the candidate is in general and how well he or she reacts to awkward and tough situations. The following are some of the questions that may be asked during the Human Resources or HR round:

  • What are your strengths and weaknesses?
  • Tell me a little bit about Genpact.
  • What value do you bring to Genpact or what is your vision for generating an impact in the world while working at Genpact?
  • Will you be able to relocate to other parts of India?
  • Explain what you know about yourself.
  • Why are you interested in working at Genpact?
  • How much do you expect to be paid? This is a challenging question to respond to. Even the most seasoned employees get asked this question. You might wish to learn what the company's typical employee raise is before responding to this question.

If an applicant meets all of the above criteria and has demonstrated great technical skills in the previous rounds, he or she will almost certainly be recruited at Genpact, India.

GenPact Technical Interview Questions: Freshers and Experienced

1. List the few types of Operating Systems which you know about. Also list some examples of Operating Systems.

A few types of Operating Systems which I know about are as follows:

  • Batch Operating System: A batch operating system is a computer program that automatically sequences jobs without the need for human interaction.
  • Time-Sharing Operating System: Many people can share computer resources with a time-sharing operating system. There is maximum resource utilization in this type of operating system.
  • Distributed Operating Systems: A distributed operating system (DOS) is software that manages a number of computers and makes them appear to be one.
  • Network Operating System: In-Network Operating Systems, computers with various operating systems can connect to a common network. It is used usually for security purposes.
  • Real-Time Operating Systems: Real-Time Operating Systems (RTOS) are employed in situations where a great number of events, most of which are external to the computer system, must be accepted and processed quickly or under tight deadlines. Industrial control, telephone switching equipment, aircraft control, and real-time simulations are examples of such uses.

Some examples of Operating Systems are as follows:

  • Windows (Graphical User Interface Operating System based for Personal Computers)
  • GNU or Linux (for Personal Computers, File and Print server, Workstations, ISP, Three-tier Clients and Servers)
  • iOS (Apple’s OS for iPhone, iPad, and iPod Touch)
  • macOS (for Apple’s Personal Computers and Workstations like MacBook, iMac, etc.
  • Android (Google’s Operating System for Google's smartphones, tablets, smartwatches, etc.)

2. What are the different types of Real Time Operating Systems?

The term "Real-Time Operating System" refers to a system that is subjected to real-time constraints, i.e., the response must be guaranteed within a certain time restriction or the system must satisfy a specific deadline. 

For instance, a flight control system, real-time monitoring, and so on. Real-time systems with timing constraints include the following types:

  • Hard Real-Time Operating System — A system of this type will never miss a deadline. The implications of missing the deadline might be disastrous. If tardiness increases, the utility of a hard real-time system's result declines abruptly, and it may even become negative. Tardiness refers to how late a real-time system does a task in comparison to its deadline. As an example, consider a flight controller system.
  • Soft Real-Time Operating System — This type of system can occasionally miss its deadline with a low likelihood. There are no dire implications if you miss the deadline. With the increasing delay, the utility of a soft real-time system's result rapidly reduces. Switches on phones are examples of Soft Real-Time Operating Systems.

3. What do you understand about Threads in Operating Systems?

A thread is a single sequential flow of task execution in a process, and it is also known as a thread of execution or a thread of control. Thread execution is possible within any operating system's process. Aside from that, several threads can exist within a process. A distinct program counter and a stack of activation records and control blocks are used by each thread of the same process. Threading is frequently referred to as a light technique. A process can be broken down into numerous threads. Many tabs in a browser, for example, can be considered as threads. MS Word employs many threads to prepare the text in one thread, receive input in another thread, and so on. Within a process, a thread is a single sequence stream. Threads have the same qualities as the process, hence lightweight processes are referred to as threads. Threads are executed one after the other, giving the appearance that they are running in parallel. Each thread has a unique state. Each thread is unique and has the following in them:

  • A counter for a program.
  • A series of registers.
  • A stacking area.

Threads are not self-contained since they share code, data, and other Operating System resources. There are two types of threads:

  • User Level Thread (ULT) — This type of thread is created in the user-level library rather than using system functions. Thread switching does not necessitate a call to the Operating System or a kernel interrupt. The kernel is unaware of the user-level thread and treats them as single-threaded processes.
  • Kernel Level Thread (KLT) - Kernel Level Thread or KLT is in charge of thread management. Instead of each process having its own thread table, the kernel maintains a master thread table that keeps track of all the threads in the system. In addition, the Kernel Level Thread keeps track of the processes using the standard process table. The kernel of the operating system includes system calls for creating and managing threads.

4. What are the advantages of thread over processes?

The advantages of thread over processes are as follows:

  • Faster thread context switching: Thread context switching is faster than process context switching. Process context shift necessitates greater CPU overhead.
  • Responsiveness: If the process is separated into numerous threads, the output of one thread can be returned promptly as it completes its execution.
  • Resource sharing: Within a process, resources such as code, data, and files can be shared throughout all threads. It is worth noting that the stack and registers can't be shared between threads. Each thread has its own registers and stack.
  • Effective multiprocessor system utilization: If a single process has numerous threads, we can schedule several threads on multiple processors. The process will run more quickly as a result of this.
  • Increased System Throughput: When a process is separated into several threads, each thread function is treated as a single task, the number of jobs done per unit of time increases, boosting the system's throughput.
  • Communication: Because the threads share a similar address space, communication between them is easier. During the process, we must use a special communication approach to communicate between the two processes.

5. What do you understand about Multithreading in Operating Systems?

Multithreading is the ability of a central processing unit (CPU) (or a single core in a multi-core processor) to run many threads of code at the same time, with the operating system supporting it. Multiprocessing is not the same as Multiprocessing. Threads in a multithreaded application share resources from a single or several cores, such as computational units, CPU caches, and the Translation Lookaside Buffer or TLB (A translation lookaside buffer or TLB is a memory cache that speeds up access to user memory. It is a component of the Memory Management Unit or MMU on the chip. The TLB, also known as an address translation cache, records recent virtual memory to physical memory translations). Multithreading tries to increase the use of a single core by exploiting thread-level parallelism as well as instruction-level parallelism in multiprocessing systems with several full processing units in one or more cores. Because the two approaches are complementary, they are used together in practically all modern system architectures that include multiple multithreading CPUs and multithreading cores. 

We can see that in the above image, one single process has two threads of execution that run on one processor.

6. State some advantages and some disadvantages of User Level Threads.

Some advantages of User Level Threads are as follows:

  • User Threads can be easily implemented over kernel threads.
  • User-level threading can be applied to operating system types that do not support kernel-level threading.
  • It is faster and more efficient. Context switch times are shorter than kernel-level threads.
  • It does not require any changes to the operating system and representing streams at the user level is simple.
  • Small registers, PCs, stacks, and flow control blocks are stored in the address space of a user-level process.
  • It is easy to create, change, and synchronize streams without process intervention.

Some Disadvantages of User Level Threads are as follows:

  • User Level Threads lack coordination between thread and kernel.
  • If one thread causes a page fault, the whole process is blocked.

7. State some benefits and drawbacks of Kernel Level Threads.

Some of the benefits of kernel-level threads are as follows:

  • Kernel level threads can manage and schedule all threads.
  • The scheduler may decide to use more CPU time in a large threaded process.
  • Kernel level threads are great for frequency blocking applications.

Some of the drawbacks of Kernel Level threads are as follows:

  • Implementing kernel threads is harder than implementing user-level threads.
  • The kernel-level thread is usually slower than the user-level thread.

8. Explain the concept and two types of Data Independence.

Data independence is a concept according to which, the change in data at one level of the DBMS three-tier architecture should not influence data at another level. Data independence is of two types of data independence:

  • Physical Data Independence: According to Physical Data Independence, any change in the physical location of tables and indexes should have no bearing on the conceptual level or the external display of data. This data independence is simple to achieve and is supported by the majority of Database Management Systems.
  • Conceptual Data Independence: According to Conceptual Data Independence, data at the conceptual and external levels must be independent. This means that any changes to the conceptual schema should have no impact on the external schema. Adding or removing characteristics from a table, for example, should have no effect on the user's view of the table. However, unlike physical data independence, this form of independence is more difficult to achieve since changes in conceptual schema are mirrored in the user's view.

9. What are Database objects in Database Management Systems?

A database object is any object defined in a database that is used to store or reference data. Everything we create from the create command is called a database object. It can be used to store and manipulate data. Some examples of database objects are as follows: 

  • Table - Table is a basic storage unit with compound rows and columns. Its syntax is as follows:
CREATE TABLE [schema.]table (column datatype [DEFAULT expr][, ...]);
  • Views - Views are a logical representation of subsets of data from one or more tables. A view is a logical table that is based on another view or a table. A view is similar to a window through which data from tables can be viewed or updated, but it does not include any data of its own. Base tables are the tables that a view is built on. In the data dictionary, the view is saved as a SELECT statement. Its syntax is as follows:
CREATE [OR REPLACE] [FORCE|NOFORCE] VIEW view
                      [(alias[, alias]...)]
                      AS subquery
                      [WITH CHECK OPTION [CONSTRAINT constraint]]
                      [WITH READ ONLY [CONSTRAINT constraint]];
  • Sequence - Sequences generate primary key values. A sequence is a database object that has been created by a user and can be shared by several users to generate unique integers. The creation of a primary key value, which must be unique for each row, is a common use for sequences. An internal Oracle routine generates the sequence and increments (or decrements) it. Its syntax is as follows:
CREATE SEQUENCE sequence
                   [INCREMENT BY n]
                   [START WITH n]
                   [{MAXVALUE n | NOMAXVALUE}]
                   [{MINVALUE n | NOMINVALUE}]
                   [{CYCLE | NOCYCLE}]
                   [{CACHE n | NOCACHE}];
  • Indexes - Indexes are used to improve the performance of some queries on the databases. This database object is used to create an index in the database. It is a schema object that can speed up row fetching by using a pointer. Indexes can be created explicitly or automatically. If you don't have an index on the column,  full crawling of the table will occur. Indexes provide direct and fast access to table rows. Its goal is to reduce disk Input and Output needs by using an indexed path to quickly locate data. The index is used and maintained automatically by the database server. Once an index is created, no direct action is required by the user. Indexes are logically and physically independent of the table they index. This means they can be created or deleted at any time and do not affect the base tables or other indexes. Its syntax is as follows:
CREATE INDEX index
           ON table (column[, column]...);
  • Synonyms - This database object is used to build database indexes. It creates a synonym to make object access easier (another name for an object). You can use synonyms to make referring to a table owned by another user easier and to shorten long object names. You must prefix the table name with the name of the user who created it, followed by a period, to refer to a table owned by another user. Creating a synonym for a table, view, sequence, procedure, or other object avoids the requirement to qualify the object name with the schema and gives you an alternate name. This approach is very handy when dealing with long object names, such as views.
    In terms of syntax, the meaning of various things are as follows:
    • PUBLIC: creates a synonym accessible to all users
    • SYNONYM: it is the name of the synonym to be created
    • OBJECT: identifies the object for which the synonym is created

Its syntax is as follows:

CREATE [PUBLIC] SYNONYM synonym FOR  object;

10. State some benefits of using views in a Database Management System.

Some benefits of using views in a Database Management System are as follows:

  • Views can represent a subset of the data in a table. As a result, a view can limit the extent to which the underlying tables are exposed to the outside world: a user may be allowed to query the view but not the whole of the base database.
  • Views can be used as aggregated tables, in which the database engine aggregates data (sum, average, and so on) and displays the generated results alongside the data.
  • Views allow us to combine and simplify numerous tables into a single virtual table.
  • Views take up extremely minimal storage space; the database simply maintains the specification of a view, not a copy of all the data it displays.
  • Views can obscure data complexity.
  • Views can give additional security depending on the SQL engine utilized.

11. What do you understand about the concept of Data Warehousing?

Data warehousing is the process of collecting, extracting, processing, and importing data from numerous sources and storing it in a single database. A data warehouse can be thought of as a central repository for data analytics that receives data from transactional systems and other relational databases. A data warehouse is a collection of historical data from an organization that aids in decision making. The data from a data warehouse is further used for Data visualization, reporting, business intelligence and many more activities.

12. State your understanding of Entity Relationship (or the ER) model. Also, define the following terms: Entities, Entity Types, and Entity Sets in Database Management Systems.

A diagrammatic approach to database architecture in which real-world things are represented as entities and relationships between them are indicated is known as an Entity-Relationship model. Given below is an image of a sample ER diagram for a student studying in college.

The definition of the given terms are as follows:

  • Entity: A real-world object with attributes that indicate the object's qualities is defined as an entity. A student, an employee, or a teacher, for example, symbolizes an entity.
  • Entity Type: A group of entities with the same attributes is referred to as an entity type. An entity type is represented by one or more linked tables in a database. Entity type or attributes can be thought of as a trait that distinguishes the entity from others. A student, for example, is an entity with properties such as student id, student name, and so on.
  • Entity Set: An entity set is a collection of all the entities in a database that belongs to a given entity type. For instance, a group of all students, employees, teachers, and so on represents an entity set.

13. What do you understand about the ACID properties in Database Management Systems?

ACID is an acronym for Atomicity, Consistency, Isolation, and Durability. A transaction is a logical unit of work that reads and updates the contents of a database in some instances. Transactions employ read and write operations to access data. To maintain database consistency, certain properties are followed before and after a transaction. They are referred to as ACID properties. Let us now take a closer look at each of these characteristics:

  • Atomicity: When a transaction is atomic, it means that it either happens all at once or it does not happen at all. There is no intermediate ground, which means that there are no steps to transactions. Each transaction is viewed as a single entity that is either completed or not. It entails the two processes listed below.
    • Abort: Any database updates are lost if a transaction aborts.
    • Commit: When a transaction commits, the changes contained within it become visible. 
      Atomicity is often known as the "all or nothing rule.

Think about the following scenario: T, which is made up of two separate transactions: T1 and T2. A $100 transfer was made from account X to account Y.
The amount deducted from X but not added to Y is deducted if a transaction fails after T1 but before T2 (for example, after write(X) but before write(Y)). As a result, the database is in a state of inconsistency. As a result, to ensure that the database state is legitimate, the transaction must be completed in its entirety.

  • Consistency: To ensure that the database is consistent, integrity constraints must be maintained both before and after the transaction. It relates to the accuracy of a database. As seen in the sample above, the total amount before and after the transaction must be maintained.
    The total before T is 500 + 200 = 700.
    The total after T is 400 + 300 = 700.
    As a result, the database is well-organized. There is inconsistency when T1 succeeds but T2 fails. As a result, T isn't finished.
  • Isolation: This property ensures that several transactions can run concurrently without generating database state inconsistencies. Transactions are carried out in a non-disruptive manner. Changes in one transaction are not visible to other transactions until the change for that transaction is put to memory or committed. This feature ensures that concurrently running transactions provide the same state as if they were run sequentially in some order. To better understand Isolation, consider the following scenario. Let us say X and Y are both 500, and there are two transactions T and T."


Assume T has been operating until Read (Y), after which T" will start. T" reads the correct value of X but the incorrect value of Y as a result of this interleaving, and the sum computed by T" (X+Y = 50, 000+500=50, 500) is inconsistent with the sum at the end of the transaction: T = 50, 000 + 450 = 50, 450 (X+Y = 50, 000 + 450 = 50, 450).
This results in a database inconsistency due to the loss of 50 units. As a result, transactions must be carried out in isolation, and modifications should be seen only after they have been written to the main memory.

  • Durability: This property ensures that database updates and modifications are stored and written to disk after the transaction has concluded and that they survive even if the system fails. These modifications are now permanently recorded in nonvolatile memory. As a result, the transaction's effects are never lost.

Each transaction is a series of actions that works as a single unit, provides consistent outcomes, is separated from other processes, and the modifications it makes are durably stored, according to the ACID properties.

14. Define the terms: Aggregation and Atomicity in Database Management Systems.

 The definition of the given terms are as follows:

  • Aggregation: Aggregation is an Entity Relationship model feature that allows one relationship set to interact with another relationship set.
  • Atomicity: The atomicity attribute specifies that a database alteration must either adhere to all of the rules or not at all. As a result, if one portion of the transaction fails, the transaction as a whole fails.

15. State the various levels of data abstraction in Database Management Systems.

In Database Management Systems, there are three basic levels of data abstraction. They are as follows:

  • Physical Level: The physical level of abstraction specifies how data is stored and is the lowest degree of abstraction.
  • Logical or Conceptual Level: After the Physical level, there is the Logical level of abstraction. This layer decides what data is saved in the database and how the data pieces relate to one another.
  • View Level: The greatest level of abstraction, the View Level describes only a portion of the entire database.

16. What is meant by Proactive Updates, Retroactive Updates and Simultaneous Update in Database Management Systems?

The meaning of the given terms are as follows:

  • Proactive Updates: These changes are made to the database before it is put into use in the actual world.
  • Retroactive Updates: These updates are applied to a database after it has been operational in the real world.
  • Simultaneous Updates: These updates are applied to the database at the same moment as they become effective in the actual world.

17. What is meant by Intension and Extension in Database Management Systems?

The meaning of Intension and Extension are as follows:

  • Intension: Intension, often known as Database Schema, is a term that refers to the description of a database. This is defined during database design and is largely unmodified.
  • Extension: The number of tuples available in the database at any given time is referred to as the extension. The value of this variable changes as tuples are created, updated, and destroyed. As a result, the data in the database at a certain point in time is referred to as the database's extension or, more generally, the database's snapshot.

18. Define Index Hunting. What is it used for in Database Management Systems?

Index hunting is the process of enhancing a collection of indices. The purpose of doing Index Hunting is that indexes make the performance of the queries better and also reduce the time required to process a query. Given below are the various ways in which Index Hunting improves the  performance of the queries:

  • The most optimal queries are suggested with the usage of the query optimizer.
  • For checking the effect, measurements such as index, query distribution, and performance are used.
  • Optimization is also done on the databases for a few of the problem queries.

19. What do you understand about transactions in SQL? What are the properties of transactions in SQL?

A transaction is a logical unit of work performed on a database. Transactions are logically ordered units or sequences of work that can be completed manually by a human or automatically by a database application. The propagation of one or more changes to the database is referred to as a transaction. For instance, whether you create, update, or delete a record from a table, you are completing a transaction on that table. To preserve data integrity and address database issues, it's critical to keep track of these transactions. In practice, you will group several SQL queries together and run them all at the same time as part of a transaction. Transactions n SQL contain the four standard qualities listed below, which are frequently abbreviated as ACID.

  • Atomicity: Atomicity ensures the successful completion of all processes inside the work unit. Otherwise, the transaction will be aborted at the point of failure, and all preceding activities would be reversed.
  • Consistency: When a transaction is successfully committed, consistency ensures that the database changes states properly.
  • Isolation: Isolation allows transactions to execute independently of one another while remaining transparent to them.
  • Durability: Durability ensures that a committed transaction's outcome or effect is preserved in the event of a system failure.

20. Define Subqueries in SQL. Given a table of employees, write down a SQL query using subqueries to find all the employees with salaries greater than five thousand.

A subquery in SQL is a query that is defined inside another query to retrieve data or information from the database. The outer query of a subquery is referred to as the main query, while the inner query is referred to as the subquery. Subqueries are always processed first, and the subquery's result is then passed on to the main query. It can be nested inside any query, including SELECT, UPDATE, and OTHER. Any comparison operators, such as >, or =, can be used in a subquery. The syntax of a subquery in SQL is given as follows:

SELECT columnName [, columnName ]
FROM   tableOne [, tableTwo ]
WHERE  columnName OPERATOR
  (SELECT columnName [, columName ]
  FROM tableOne [, tableTwo ]
  [WHERE])

A SQL query using subqueries to find all the employees with salaries greater than five thousand in the employee's table is given below:

SQL> SELECT *    FROM EMPLOYEES
  WHERE EMPLOYEE_ID IN (SELECT EMPLOYEE_ID 
        FROM EMPLOYEES
        WHERE SALARY > 4500) ;

21. State a few benefits of using C ++ as a language.

A few benefits of using C ++ as a language are as follows:

  • C++ not only preserves all parts of the C language but also simplifies memory management.
  • C++ is a highly portable language, which implies that code written in it may operate on any platform.
  • Classes, objects, inheritance, polymorphism, and abstraction are all ideas of C++, which is an object-oriented programming language.
  • Inheritance is a notion in C ++. Through inheritance, unnecessary code can be removed and existing classes can be reused.
  • Data hiding aids the programmer in creating secure applications that are not vulnerable to intruders.
  • Message passing is a communication method that allows objects to communicate with one another.
  • C++ has a large library of functions.

22. State the pros and cons of using Object Oriented Programming Languages.

The pros of using Object-Oriented Programming  Languages are as follows:

  • Object-Oriented Programming  Languages follow a bottom-up approach which helps programmers in simulating the real world and its entities.
  • It makes code re-usability possible.
  • Using abstraction, the user is not exposed to superfluous data.
  • Object-Oriented Programming  Languages requires designers to go through a lengthy and thorough design phase, which yields a better design with fewer faults.
  • Object-Oriented Programming  Languages break down a large problem into smaller pieces.
  • Programmers are able to achieve their objectives more quickly via Object-Oriented Programming  Languages.
  • The usage of Object-Oriented Programming Languages reduces the amount of complexity of code written by programmers.
  • Code may be easily redesigned and extended without affecting other features.

The cons of using Object-Oriented Programming  Languages are as follows:

  • It is necessary to do a lot of planning in order to use these languages.
  • There is a tendency for classes to be overly generalized in Object-Oriented Programming Languages.
  • These are not suitable for small problems as they lead to over-complication.
  • In certain instances, programs written in Object-Oriented Programming Languages can consume a lot of memory which is obviously unwanted.

23. State your understanding of Pure Object Oriented Programming Languages. Is Java one? If not, then why?

A programming language is referred to as a pure object-oriented language if everything within the program is treated as an object. The pure Object Oriented Programming language does not support primitive types. A pure object-oriented programming language must also satisfy the following properties:

  • Encapsulation: Encapsulation can be defined as the wrapping up of data members and member functions into a single entity. In encapsulation, data and the functions that alter it are bound together in Object-Oriented Programming.
    Let us take a real-world example of encapsulation into consideration: a company has various departments, including accounting, finance, and sales, to name a few. All financial transactions are handled by the finance department, which also keeps track of all financial data. The sales department, therefore, is in charge of all sales-related activities and keeps track of all sales. For whatever reason, an official from the finance department may occasionally request all of the sales data for a specific month. He is not allowed to access the data in the sales area directly in this case. He must first speak with another sales officer and request that he deliver the needed information. It is all about encapsulation. The data from the sales department, as well as the personnel who can affect it, are grouped under the heading "sales division." Data abstraction or hiding is also a result of encapsulation. Because encapsulation hides data, it is a good idea to use it. The data of any of the sections, such as sales, finance, or accounting, is hidden from any other component in the above example.
  • Inheritance: Inheritance refers to a class's capacity to derive features and traits from another class. One of the most significant characteristics of Object-Oriented Programming is inheritance.
    • Sub Class or Derived Class: A Sub Class or Derived Class is a class that inherits properties from another class.
    • Base Class or Super Class: A Base Class or Super Class is a class whose properties are inherited by subclasses.
      Inheritance supports the concept of "reusability," which means that if we want to create a new class but there is already one that contains some of the code we need, we can derive our new class from the old one. We are reusing the old class's fields and functions in this way.
      Dog, Cat, and Cow are examples of Animal Base Class Derived Classes.
  • Polymorphism: Polymorphism refers to the fact that something exists in multiple forms. Polymorphism, in simple terms, is the ability of a message to be displayed in multiple formats. At the same time, a person might have a variety of characteristics. At the same time, he is a father, a spouse, and a worker. As a result, the same person behaves differently in different settings. Polymorphism is the term for this. In different situations, an operation may behave differently. The behaviour is determined by the data types utilised in the operation. Operator and function overloading are supported in C++ which inherit Polymorphism.
    • Operator Overloading: Operator overloading is the process of forcing an operator to behave differently in different situations.
    • Function Overloading: When a single function name is used to accomplish many tasks, this is known as function overloading.
      Inheritance is frequently implemented via polymorphism. An example of Polymorphism is given below:
      Consider the following scenario: We need to construct a function to add several integers; sometimes there are two integers, and other times there are three integers. We can write the sum Method with the same name but different parameters and the method concerned will be invoked based on the parameters.
  • Abstraction: One of the most fundamental characteristics of object-oriented programming in C++ is data abstraction. Abstraction refers to revealing only the most important information while concealing the details. Data abstraction refers to exposing only the most important aspects of the data to the outside world while concealing the implementation specifics. Consider the case of a man at the wheel of a car. The man only knows that pressing the accelerators will increase the car's speed and that applying the brakes will stop it, but he has no idea how the speed is increased by pressing the accelerators, nor does he understand the car's inner mechanism or how the accelerator, brakes, and other controls are implemented in the car. This is the definition of abstraction. There are two ways in which Abstraction can be implemented:
    • Abstraction using Classes: We may use classes to implement Abstraction in C++. Using the available access specifiers, the class assists us in grouping data members and member functions. A-Class has the ability to control which data members are visible to the outside world and which are not.
    • Abstraction in Header Files: Header files are another sort of abstraction that can be used in C++. Consider the pow() method in the math.h header file, for example. We just call the function pow() in the math.h header file whenever we need to calculate the power of a number and supply the numbers as arguments, without knowing the underlying algorithm through which the function calculates the power of numbers.
      • Objects are all predefined types.
      • Objects are all user-defined types.
      • All operations on objects must be done through methods that have been exposed to the objects.

Because predefined data types are not recognized as objects in Java, it is not a pure object-oriented programming language.

GenPact Interview Preparation

Tips to Prepare for GenPact Interview

Readers of this article should strongly consider the following interview tips for preparing for a Genpact Hiring Process:

  • Put yourself to the test to see how quickly you can solve a set of coding problems. This will help you improve your problem-solving skills as well as your logic frameworks.
  • Recognize your strengths and weaknesses, as well as the experiences and talents that make you qualified for the job. Consider coming up with a one of a kind example to assist you to stand out. The interviewer wants to know what motivates you, why you are interested in the company, and how your previous work experience has prepared you for this position.
  • Prepare to demonstrate leadership, teamwork, professional and academic success, communication skills, and the ability to overcome obstacles by sharing your experiences.
  • Be aware of the Genpact tools and technologies which are being used by them nowadays by reading up on their blog or website. Know more about the company more in general.
  • The better prepared you are for an interview, the more likely you are to get hired. Learn everything there is to know about interviews, including how to prepare for them, the stages, rounds, and questions. For human resource development (HRD) and management interviews, answers to frequently asked questions should be prepared ahead of time. You can also learn about, among other things, firm performance, organizational structure, vision, and work-life balance.
  • Maintaining a positive and welcoming attitude is always beneficial. Introduce yourself confidently to start the conversation on a favourable note. Practice introducing yourself before the interview in front of a mirror to be confident during the entire hiring process.
  • Look over the company's interview experience articles. This will give you a good idea of what to expect and how the interview will go.
  • Consider conducting a mock interview. This will provide you with an idea of how the interview will go. You may use the InterviewBit platform for it. You will be partnered with your peers, and both of you will be permitted to interview, which will be advantageous to you.

Frequently Asked Questions

1. How to answer the following behavioral question: What do you know about GenPact?

You can begin with a brief overview of GenPact. For example, Genpact is a multinational professional services firm that assists businesses in their transformation. Genpact is an acronym for "Generating Impact". They help their clients achieve their goal of making the world a better place for people by driving digitally-led innovation and digitally-enabled intelligent operations. After that, you can discuss one or two key Genpact initiatives that you particularly enjoyed and how they impacted your life, in order to persuade the interviewer that you are also interested in working for the company. You can also discuss a couple of the company's core values as well as some of the company's most recent projects.

2. How to answer the following behavioral question: Why do you want to join GenPact?

GenPact attracts and retains top people by providing comprehensive and rapid growth possibilities through a digital learning environment that is available at any time, from any location, and on any device. GenPact is a fantastic place to start your career as a new hire. It provides a great working environment as well as a welcoming atmosphere with a positive vibe that promotes personal and corporate progress. These are a few of the reasons why any budding coder of today should join GenPact.

3. How should you answer the following behavioral question: Explain all your strengths and weaknesses?

This is definitely one of the most frequently asked topics in the Human Resource (HR)  interview rounds. You should not be too confident in your answer to this question. On the other hand, dealing with errors seems unreliable. Honesty is always a good idea. Here are some benefits that can be discussed in the interview:

  • I am a goal-oriented team player and eager to learn new things every day.
  • My communication skills are exceptional.
  • My ability to handle pressure and stay calm during difficult times sets me apart.
  • I have strong leadership qualities that will benefit me in the long run.

Now let's look at some of the flaws  worth mentioning in the interview:

  • When I am new to a certain technology or situation, I have a lot of doubts about myself.
  • I am a self-critical person.
  • I am afraid of standing on a stage and delivering speeches(afraid to speak in public)

Admitting your mistakes is essential, but it is also important to explain 
how you have worked to fix them. This will give the interviewer the impression that you are always looking for ways to improve yourself.

4. Is the Genpact interview easy?

It does not matter whether the GenPact interview is challenging or easy. The truth is that the more you prepare for the interview, the easier it will be to pass. Acquire sufficient understanding of, among other things, interview stages, rounds, and questions. The candidate's CV (prior experience, past works) and the job requirements are used to conduct the interview. Programming languages, logical thinking, and products, software and projects on which the candidate has recently or previously worked are among the topics covered.

5. Is Genpact good for freshers?

Yes, GenPact is a good company for freshers as it provides a fast-paced development environment which will help them to learn a variety of things in a very short duration of time. The codebases at GenPact are of both types: legacy code bases as well as code bases are written using the cutting edge technologies of today. Hence, the learning curve at GenPact is pretty steep.

6. What should you say in response to the following question: Why are you qualified for this position?

When asked questions like these, emphasize your skills and abilities that are relevant to the position. An instance of a typical response to the given question could be as the following:

"For a variety of reasons, but most significantly because of my will to succeed, I am confident that I am qualified for this position. I have all of the skills required to succeed in this profession. I am constantly attempting to educate myself on the most recent technologies. My abilities and skills are a fantastic match for the requirements of this post. Above all, my communication and leadership skills make me an excellent fit for that position."

7. What is the salary of a fresher at Genpact?

The average compensation for a Genpact Fresher is Rs. 2,01,795 per year. At Genpact, fresher wages can range from Rs. 1,22,171 to Rs. 2,48,684 per year.

Get Placed at Top Product Companies with Scaler Know More 
Get Placed at Top Product Companies with Scaler Know More 
Get Placed at Top Product Companies with Scaler
Sat transparent 640a34d454880bf68e3bfdf33f2389f2214043f59ad18b4c7f7b114e834fb257.svg

Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Personalised feedback report with solutions
Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Real life Interview Questions
Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Identify exact topics to improve

Your feedback is important to help us improve.
Free Mock Assessment
Fill up the details for personalised experience.
All fields are mandatory
Current Employer *
Enter company name *
Graduation Year *
Select an option *
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
Phone Number *
OTP will be sent to this number for verification
+91 *
+91
Change Number
Phone Number *
OTP will be sent to this number for verification
+91 *
+91
Change Number
Graduation Year *
Graduation Year *
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
*Enter the expected year of graduation if you're student
Current Employer *
Company Name *
Please verify your phone number
Edit
Resend OTP
By clicking on Start Test, I agree to be contacted by Scaler in the future.
Already have an account? Log in
Free Mock Assessment
Instructions from Interviewbit
Start Test