Cedcoss Technologies
40+ Genpact Interview Questions and Answers
Q1. What is constructor and constructor overloading?
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) {} }
Q2. What is Typecasting, difference between jvm and jit
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
Q3. What is String constant pool and heap memory
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
Q4. What is final,super and extends key?
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.
Q5. Explain Class loader and wrapper class?
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().
Q6. Difference between friend class and friend function
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
Q7. How much you updated tobyour software and knowledge about your creativity?
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
Q8. Java vs other language
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
Q9. What are the basic content framing types?
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
Q10. print * patter of equivalent triangle
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
Q11. Longest length of the Palindrome in string
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
Q12. Explain operator overloading
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
Q13. Can you store a cart items in local storage?
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']));
Q14. Explain Scope resolution operator
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';
Q15. Tell about the phases of buyer?
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
Q16. Explain project.
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
Q17. Print the following pattern: * ** *** ****
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.
Q18. What is the difference between Waterfall and Agile Methodology
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
Q19. What is the difference between sanity and regression
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
Q20. Explain ACID properties
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
Q21. Tuple and list difference
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
Q22. What is abstraction?
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
Q23. How to delete a character from a given string?
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)
Q24. Overloading, overriding difference
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
Q25. Content lifecycle to market a product
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
Q26. what is interface
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
Q27. Max in array Second maximum
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
Q28. How is SASS complied?
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.
Q29. What is flex - box ?
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;
Q30. What are the roles and how to handle new customers
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
Q31. Max frequency character in string
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.
Q32. What is Wrapper class in Java?
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.
Q33. What is an array in c++?
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"};
Q34. different ways of segmentation in marketing
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.
Q35. Describe all stages of SDLC in detail
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
Q36. oops concepts with git commands and mysql
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
Q37. What is V model
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
Q38. Explain AIDA model
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
Q39. OSI vs TCP IP
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
Q40. Lifecycle of activity
Top HR Questions asked in Genpact
Interview Process at Genpact
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month