Add office photos
Engaged Employer

Cedcoss Technologies

3.0
based on 341 Reviews
Filter interviews by

40+ Genpact Interview Questions and Answers

Updated 21 May 2024

Q1. What is constructor and constructor overloading?

Ans.

Constructor is a special method used to initialize objects. Constructor overloading is creating multiple constructors with different parameters.

  • Constructor is called when an object is created

  • It has the same name as the class

  • It can be overloaded by creating multiple constructors with different parameters

  • Constructor overloading allows creating objects with different initial values

  • Example: public class Person { public Person() {} public Person(String name) {} }

Add your answer

Q2. What is Typecasting, difference between jvm and jit

Ans.

Typecasting is converting one data type to another. JVM is a virtual machine that executes Java bytecode. JIT is a part of JVM that compiles bytecode to machine code at runtime.

  • Typecasting is done using casting operators like (int), (float), etc.

  • JVM stands for Java Virtual Machine and is responsible for executing Java bytecode.

  • JIT stands for Just-In-Time compiler and is a part of JVM that compiles bytecode to machine code at runtime.

  • JIT improves the performance of Java progra...read more

Add your answer

Q3. What is String constant pool and heap memory

Ans.

String constant pool is a part of heap memory where Java stores string literals to optimize memory usage.

  • String constant pool is a cache of string literals created by the JVM.

  • String literals are stored in the pool to optimize memory usage.

  • When a new string literal is created, the JVM first checks if it already exists in the pool.

  • If it does, a reference to the existing string is returned. If not, a new string is created and added to the pool.

  • Heap memory is where objects are st...read more

Add your answer

Q4. What is final,super and extends key?

Ans.

final, super, and extends are keywords in Java used for inheritance and method overriding.

  • final keyword is used to make a variable constant or a method unchangeable.

  • super keyword is used to refer to the immediate parent class.

  • extends keyword is used to create a subclass that inherits properties and methods from a superclass.

View 3 more answers
Discover Genpact interview dos and don'ts from real experiences

Q5. Explain Class loader and wrapper class?

Ans.

Class loader loads classes into JVM while wrapper class wraps primitive data types into objects.

  • Class loader is responsible for loading classes into JVM at runtime.

  • It searches for the class file in the classpath and loads it into memory.

  • Wrapper classes are used to wrap primitive data types into objects.

  • They provide utility methods to perform operations on primitive data types.

  • For example, Integer class wraps int data type and provides methods like parseInt() and toString().

Add your answer

Q6. Difference between friend class and friend function

Ans.

Friend class allows access to private and protected members of another class, while friend function allows access to private and protected members of a class.

  • Friend class is declared using the 'friend' keyword followed by the class name.

  • Friend function is declared using the 'friend' keyword followed by the function prototype.

  • Friend class can access private and protected members of the class it is declared as a friend of.

  • Friend function can access private and protected members...read more

View 1 answer
Are these interview questions helpful?

Q7. How much you updated tobyour software and knowledge about your creativity?

Ans.

I constantly update my software and knowledge to enhance my creativity.

  • I regularly attend workshops and seminars to stay updated with the latest software and design trends.

  • I actively participate in online forums and communities to learn from other designers and share my knowledge.

  • I subscribe to design magazines and follow design blogs to stay informed about industry developments.

  • I experiment with new design tools and techniques to expand my creative abilities.

  • I continuously s...read more

View 1 answer

Q8. Java vs other language

Ans.

Java is a popular language with strong community support and cross-platform compatibility.

  • Java is object-oriented and has automatic memory management

  • Other languages like C++ require manual memory management

  • Java has a large standard library and is used for web development, mobile apps, and enterprise software

  • Other languages like Python are popular for data science and machine learning

  • Java is compiled to bytecode and runs on a virtual machine, making it cross-platform compatibl...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. What are the basic content framing types?

Ans.

The basic content framing types include listicles, how-to guides, case studies, interviews, and product reviews.

  • Listicles - articles presented in a list format, such as 'Top 10 Ways to Improve SEO'.

  • How-to guides - step-by-step instructions on how to do something, like 'How to Write a Blog Post'.

  • Case studies - in-depth analysis of a specific situation or project, like 'Case Study: Increasing Website Traffic'.

  • Interviews - conversations with experts or influencers in a particula...read more

Add your answer

Q10. print * patter of equivalent triangle

Ans.

To print * pattern of equivalent triangle

  • Use nested loops to print the pattern

  • The outer loop controls the number of rows

  • The inner loop controls the number of * in each row

Add your answer

Q11. Longest length of the Palindrome in string

Ans.

The program finds the longest palindrome in a given string.

  • Loop through each character in the string

  • For each character, check if it is the center of a palindrome

  • If it is, expand outwards to find the longest palindrome

  • Return the length of the longest palindrome

Add your answer

Q12. Explain operator overloading

Ans.

Operator overloading allows operators to have different meanings based on the operands they work with.

  • Operator overloading is a feature in object-oriented programming languages.

  • It allows operators such as +, -, *, /, etc. to be redefined for user-defined types.

  • For example, the + operator can be overloaded to concatenate two strings or add two numbers.

  • Operator overloading can make code more readable and intuitive.

  • However, it can also lead to confusion and unexpected behavior i...read more

Add your answer

Q13. Can you store a cart items in local storage?

Ans.

Yes, you can store cart items in local storage.

  • Local storage is a web API that allows data to be stored in the browser.

  • You can store cart items as an array of strings in local storage.

  • To store cart items, you can use the 'setItem' method of the localStorage object.

  • Example: localStorage.setItem('cartItems', JSON.stringify(['item1', 'item2', 'item3']));

Add your answer

Q14. Explain Scope resolution operator

Ans.

Scope resolution operator (::) is used to access static members of a class or namespace.

  • Used to access static members of a class or namespace

  • Used to differentiate between a global identifier and a local identifier

  • Can be used to access nested classes or namespaces

  • Can be used to access overridden methods in inheritance

  • Example: std::cout << 'Hello World';

Add your answer

Q15. Tell about the phases of buyer?

Ans.

The phases of buyer include awareness, consideration, decision, and retention.

  • Awareness - when the buyer becomes aware of a need or problem

  • Consideration - when the buyer researches and evaluates different solutions

  • Decision - when the buyer makes a purchase decision

  • Retention - when the buyer becomes a repeat customer

Add your answer

Q16. Explain project.

Ans.

Developed a web-based project management tool for tracking tasks and deadlines.

  • Used HTML, CSS, and JavaScript for front-end development

  • Utilized Node.js and MongoDB for back-end development

  • Implemented user authentication and authorization features

  • Integrated third-party APIs for additional functionality

Add your answer

Q17. Print the following pattern: * ** *** ****

Ans.

Print a pattern of asterisks in a pyramid shape.

  • Use nested loops to iterate through the rows and columns of the pattern.

  • In each row, print spaces before the asterisks to create the pyramid shape.

  • Increase the number of asterisks in each row to form the pattern.

Add your answer

Q18. What is the difference between Waterfall and Agile Methodology

Ans.

Waterfall is a sequential, linear approach to software development, while Agile is an iterative, flexible approach.

  • Waterfall follows a sequential process, where each phase is completed before moving to the next.

  • Agile is iterative, with frequent feedback and collaboration between team members.

  • Waterfall is more rigid and less adaptable to changes, while Agile embraces change and allows for flexibility.

  • Waterfall is suitable for projects with well-defined requirements, while Agil...read more

Add your answer

Q19. What is the difference between sanity and regression

Ans.

Sanity testing is a subset of regression testing that focuses on testing the core functionalities of an application.

  • Sanity testing is performed to ensure that the critical functionalities of an application are working as expected.

  • It is a quick and shallow form of testing that is usually performed after a new build or a minor change.

  • Sanity testing helps in identifying major issues early in the development cycle.

  • Regression testing, on the other hand, is performed to ensure that...read more

Add your answer

Q20. Explain ACID properties

Ans.

ACID properties ensure database transactions are reliable and consistent.

  • ACID stands for Atomicity, Consistency, Isolation, and Durability.

  • Atomicity ensures that a transaction is treated as a single, indivisible unit of work.

  • Consistency ensures that a transaction brings the database from one valid state to another.

  • Isolation ensures that concurrent transactions do not interfere with each other.

  • Durability ensures that once a transaction is committed, it will remain committed ev...read more

Add your answer

Q21. Tuple and list difference

Ans.

Tuple is immutable and ordered while list is mutable and ordered.

  • Tuple uses () while list uses []

  • Tuple is faster than list for accessing elements

  • Tuple can be used as keys in dictionaries while list cannot

  • Tuple is used for heterogeneous data while list is used for homogeneous data

Add your answer

Q22. What is abstraction?

Ans.

Abstraction is the concept of hiding complex implementation details and showing only the necessary features to the user.

  • Abstraction allows developers to focus on what needs to be done rather than how it is done

  • It helps in reducing complexity and improving code readability

  • Examples include abstract classes and interfaces in object-oriented programming

Add your answer

Q23. How to delete a character from a given string?

Ans.

Use string slicing to delete a character from a given string.

  • Use string slicing to remove the character at the desired index

  • Example: 'hello' -> 'helo' (remove 'l' at index 3)

Add your answer

Q24. Overloading, overriding difference

Ans.

Overloading is having multiple methods with same name but different parameters. Overriding is having a method with same name and parameters as parent class.

  • Overloading is compile-time polymorphism while overriding is runtime polymorphism.

  • Overloading is used to provide different implementations of same method for different inputs.

  • Overriding is used to provide a new implementation of a method in child class which is already present in parent class.

  • Overloading is achieved within...read more

Add your answer

Q25. Content lifecycle to market a product

Ans.

Content lifecycle involves planning, creating, distributing, and analyzing content to market a product.

  • Research target audience and keywords

  • Create high-quality and engaging content

  • Distribute content through various channels like social media, email, and SEO

  • Track and analyze content performance to make improvements

  • Update and repurpose content as needed

Add your answer

Q26. what is interface

Ans.

An interface in software development defines a contract for how a software component should interact with other components.

  • Interfaces contain method signatures but no implementation details

  • Classes can implement multiple interfaces

  • Interfaces allow for polymorphism and loose coupling

Add your answer

Q27. Max in array Second maximum

Ans.

Finding max and second max in an array of strings

  • Convert strings to integers

  • Use sorting or loop to find max and second max

  • Handle edge cases like empty array or duplicates

Add your answer

Q28. How is SASS complied?

Ans.

SASS is compiled using a command line tool or a build system.

  • SASS is compiled into CSS using a preprocessor.

  • The compilation process involves converting SASS code into CSS code.

  • There are several ways to compile SASS, such as using the command line tool 'sass' or build systems like Gulp or Webpack.

  • The compiled CSS can then be included in the HTML file.

Add your answer

Q29. What is flex - box ?

Ans.

Flexbox is a layout mode in CSS that allows you to arrange and align items within a container.

  • Flexbox is used for creating responsive and flexible layouts.

  • It allows you to easily align and distribute space among items in a container.

  • Flexbox has properties like flex-direction, justify-content, align-items, and flex-wrap.

  • It is supported by all modern browsers.

  • Example: display: flex; justify-content: center; align-items: center;

Add your answer

Q30. What are the roles and how to handle new customers

Ans.

Roles and handling of new customers in Customer Success Manager role

  • Understand the customer's needs and goals

  • Provide personalized onboarding and training

  • Regular check-ins to ensure customer satisfaction

  • Address any issues or concerns promptly

  • Collect feedback and use it to improve the customer experience

Add your answer

Q31. Max frequency character in string

Ans.

Find the character with the highest frequency in a given string.

  • Use a hash table to count the frequency of each character.

  • Iterate through the string and update the hash table.

  • Find the character with the highest frequency in the hash table.

Add your answer

Q32. What is Wrapper class in Java?

Ans.

Wrapper class is a class that wraps a primitive data type to provide additional functionality.

  • Wrapper classes are used to convert primitive data types into objects.

  • They provide methods to convert between primitive data types and objects.

  • Examples include Integer, Double, Boolean, etc.

  • Wrapper classes are immutable.

  • They are often used in collections and generics.

Add your answer

Q33. What is an array in c++?

Ans.

An array in C++ is a collection of elements of the same data type stored in contiguous memory locations.

  • Arrays in C++ are declared by specifying the data type of the elements and the number of elements in square brackets.

  • Elements in an array can be accessed using their index, starting from 0.

  • Example: string names[] = {"Alice", "Bob", "Charlie"};

Add your answer

Q34. different ways of segmentation in marketing

Ans.

Segmentation in marketing involves dividing a market into distinct groups based on certain criteria.

  • Demographic segmentation - dividing the market based on age, gender, income, etc.

  • Psychographic segmentation - dividing the market based on lifestyle, values, attitudes, etc.

  • Behavioral segmentation - dividing the market based on purchasing behavior, usage patterns, etc.

  • Geographic segmentation - dividing the market based on location, region, climate, etc.

Add your answer

Q35. Describe all stages of SDLC in detail

Ans.

SDLC is a process followed by software development teams to design, develop and test high-quality software.

  • Planning: Define project scope, requirements, and objectives

  • Analysis: Gather information and analyze requirements

  • Design: Create a detailed design plan

  • Implementation: Develop the software

  • Testing: Verify the software meets requirements

  • Deployment: Release the software to users

  • Maintenance: Fix bugs and make updates as needed

Add your answer

Q36. oops concepts with git commands and mysql

Ans.

Understanding OOP concepts, Git commands, and MySQL database operations are essential for a Full Stack Developer.

  • OOP concepts include encapsulation, inheritance, polymorphism, and abstraction.

  • Git commands like git add, git commit, git push, and git pull are used for version control.

  • MySQL operations involve creating databases, tables, querying data, and managing relationships.

  • Understanding how OOP concepts can be applied to database design is crucial for developing efficient a...read more

Add your answer

Q37. What is V model

Ans.

The V model is a software development model that emphasizes the relationship between testing and development phases.

  • It is also known as the Verification and Validation model.

  • It is a sequential development process that follows a V-shaped path.

  • Each phase of the development life cycle has a corresponding testing phase.

  • It ensures that testing activities are integrated throughout the software development process.

  • The left side of the V represents the planning and design phases, whi...read more

Add your answer

Q38. Explain AIDA model

Ans.

AIDA model is a marketing framework that outlines the steps a consumer goes through when making a purchasing decision: Attention, Interest, Desire, Action.

  • Attention: Grab the consumer's attention with a compelling message or advertisement.

  • Interest: Keep the consumer engaged by highlighting the benefits or unique selling points of the product or service.

  • Desire: Create a desire or need for the product by showcasing how it can solve a problem or improve the consumer's life.

  • Actio...read more

Add your answer

Q39. OSI vs TCP IP

Ans.

OSI is a theoretical model with 7 layers, while TCP/IP is a practical implementation with 4 layers.

  • OSI model has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, Application

  • TCP/IP model has 4 layers: Network Interface, Internet, Transport, Application

  • OSI model is a theoretical framework, while TCP/IP is the protocol suite used for internet communication

  • TCP/IP model is more widely used in practice compared to OSI model

Add your answer

Q40. Lifecycle of activity

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Genpact

based on 37 interviews
Interview experience
3.4
Average
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 559 Interview Questions
4.0
 • 471 Interview Questions
4.4
 • 430 Interview Questions
3.5
 • 346 Interview Questions
3.9
 • 343 Interview Questions
3.9
 • 152 Interview Questions
View all
Top Cedcoss Technologies Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter