Infogain
60+ Teleperformance Interview Questions and Answers
Q1. What is deadlock .what are the conditions of deadlock?
Deadlock is a situation where two or more processes are unable to proceed because they are waiting for each other to release resources.
Deadlock occurs when two or more processes are blocked and unable to proceed.
It happens when each process is holding a resource and waiting for another resource to be released.
There are four necessary conditions for deadlock: mutual exclusion, hold and wait, no preemption, and circular wait.
Examples of resources that can cause deadlock include...read more
Q2. Which deployment strategy have you used?
I have used blue-green deployment strategy in previous projects.
Blue-green deployment involves running two identical production environments, with one active and one inactive.
Switching between the two environments allows for zero downtime deployments and easy rollback in case of issues.
I have implemented blue-green deployment using tools like Kubernetes and Jenkins in past projects.
Q3. What are all the devops tools you have used in your application deployment?
I have experience with a variety of devops tools including Jenkins, Docker, Kubernetes, Ansible, and Terraform.
Jenkins
Docker
Kubernetes
Ansible
Terraform
Q4. What is Checked and Unchecked Exception.An Example of each?
Checked and Unchecked Exceptions are types of exceptions in Java. Checked exceptions are checked at compile-time while unchecked exceptions are not.
Checked exceptions are those which are checked at compile-time and must be handled by the programmer using try-catch or throws keyword.
Examples of checked exceptions include IOException, SQLException, ClassNotFoundException.
Unchecked exceptions are those which are not checked at compile-time and can occur at runtime.
Examples of un...read more
Q5. What is the probability to find blue colored ball from a bag on second draw when bag is half filled with red and half with blue colored ball
The probability of finding a blue colored ball on the second draw from a bag with half red and half blue balls.
The probability of drawing a blue ball on the first draw is 1/2 since the bag is half filled with blue balls.
After the first draw, there will be one less blue ball and one less total ball in the bag, affecting the probability for the second draw.
The probability of drawing a blue ball on the second draw can be calculated using conditional probability.
Q6. Can we use super and this in a single constructor?
Yes, we can use super and this in a single constructor.
Using 'super' in a constructor calls the parent class constructor.
Using 'this' in a constructor calls another constructor in the same class.
We can use both 'super' and 'this' in the same constructor to call both parent and same class constructors.
Example: public MyClass(int x) { this(x, 0); super(); }
Q7. Will protected member be inherited in subclasses in hierarchy?
Yes, protected members are inherited in subclasses in hierarchy.
Protected members are accessible within the class and its subclasses.
They are not accessible outside the class hierarchy.
Subclasses can access protected members of their parent class.
Example: class A has a protected member x, class B extends A can access x.
Example: class C extends B can also access x.
Q8. What is the super class of Exception?
The super class of Exception is Throwable.
Throwable is the root class of all exceptions in Java.
It has two direct subclasses: Exception and Error.
Exceptions are used for recoverable errors while Errors are used for unrecoverable errors.
All exceptions and errors inherit from Throwable.
Throwable provides methods like getMessage() and printStackTrace() to handle exceptions.
Q9. Area of interest.Then why we need data Structures
Data structures are essential for efficient storage and retrieval of data.
Data structures allow for faster access and manipulation of data.
They help in organizing and managing large amounts of data.
Examples include arrays, linked lists, trees, and graphs.
Without data structures, algorithms would be less efficient and more complex.
Data structures are used in various fields such as computer science, finance, and engineering.
Q10. In docker, how will the containers communicate?
Containers in Docker can communicate through networking using bridge networks, overlay networks, or user-defined networks.
Containers can communicate with each other using IP addresses and port numbers.
Docker provides default bridge networks for communication between containers on the same host.
Overlay networks allow communication between containers across multiple hosts.
User-defined networks can be created for custom communication requirements.
Containers can also communicate ...read more
Q11. JS: create a calculator function. everytime you call it, it should print the next elem in sequence (condition: shouldn't pass any param) - 5,11,29,83
Create a calculator function that prints the next element in sequence each time it is called.
Create a function that keeps track of the current number in the sequence
Each time the function is called, calculate the next number in the sequence based on the previous number
Print the next number in the sequence each time the function is called
Q12. Explain the pipeline process in Jenkins
Pipeline process in Jenkins automates the software delivery process.
Pipeline is defined as code in a Jenkinsfile
It consists of stages, steps, and post actions
Each stage can have multiple steps like build, test, deploy
Pipeline can be triggered manually or automatically based on events
Q13. what is Polymorphism? how can you apply it?
Polymorphism is the ability of a function or method to behave differently based on the object it is called on.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
It enables a single interface to be used for different data types or classes.
Examples include method overloading and method overriding in object-oriented programming languages like Java.
Q14. write a spark code to implement SCD type2.
Implementing SCD type2 in Spark code
Use DataFrame operations to handle SCD type2 changes
Create a new column to track historical changes
Use window functions to identify the latest record for each key
Update existing records with end dates and insert new records with start dates
Q15. Explain migration process of Github to Azure Repos.
Migration process of Github to Azure Repos involves exporting repositories from Github and importing them into Azure Repos.
Export repositories from Github using tools like Git or Github API
Prepare repositories for migration by cleaning up and resolving any dependencies
Import repositories into Azure Repos using tools like Azure DevOps Services or Git commands
Update any references or configurations to point to the new Azure Repos location
Test the migrated repositories to ensure...read more
Q16. HTML: Change the CSS of a parent element by accessing only it's child element
Use CSS selectors to target parent element based on child element
Use the child element's class or ID to target the parent element
Use the > combinator to select a parent element based on a direct child element
Use the ~ combinator to select a parent element based on a sibling element
Q17. React: create a context and provide it such that the language will be changed on a button click
Create a context in React to change language on button click
Create a context using createContext() method
Provide a state for language and a function to change it
Wrap the components that need access to language context with Context.Provider
Use useContext hook to access language context in components
Update language state on button click
Q18. What is React and how it is different from Angular and Vue ?
React is a JavaScript library for building user interfaces. It is different from Angular and Vue in terms of architecture, data binding, and learning curve.
React is a library, while Angular and Vue are frameworks.
React uses a virtual DOM for better performance, while Angular and Vue use a real DOM.
React follows a unidirectional data flow, while Angular and Vue use bidirectional data binding.
React has a smaller learning curve compared to Angular, which has a steeper learning c...read more
Q19. Do you know how to write tests in React or have any idea about jest ?
Yes, I have experience writing tests in React using Jest.
I have experience writing unit tests for React components using Jest.
I am familiar with testing libraries like Enzyme for React component testing.
I understand how to write snapshot tests to ensure UI consistency in React applications.
Q20. What is Redux and how it works behind the scene (code flow)
Redux is a predictable state container for JavaScript apps. It helps manage the state of an application in a single immutable state tree.
Redux stores the entire state of an application in a single immutable state tree.
The state tree is read-only, and changes are made by dispatching actions.
Reducers specify how the state changes in response to actions.
The store holds the state tree, allows access to state via getState(), and allows state to be updated via dispatch(action).
Midd...read more
Q21. Write a program to find the min and max no from the array
Program to find min and max no from array of strings
Iterate through the array and compare each element to find min and max
Use Integer.parseInt() to convert strings to integers for comparison
Initialize min and max variables with first element of array
Q22. How are you managing state in your current applications ?
I manage state using React's useState hook and context API for global state management.
Using React's useState hook to manage local component state
Utilizing React's context API for global state management
Implementing Redux for complex state management scenarios
Q23. A programme to check palindrome?
A programme to check if a given string is a palindrome.
Create a function that takes a string as input.
Convert the string to lowercase and remove any non-alphanumeric characters.
Reverse the string and compare it to the original string.
If they are the same, return true. Otherwise, return false.
Q24. difference between the @controller vs @restcontroller
The @Controller annotation is used to create a controller class in Spring MVC, while @RestController is used to create RESTful web services.
The @Controller annotation is used to create a controller class in Spring MVC, which is used to handle traditional web requests.
The @RestController annotation is used to create RESTful web services, which return data in JSON or XML format.
The @RestController annotation is a specialized version of the @Controller annotation that includes t...read more
Q25. difference between cache and persist.
Cache stores data temporarily for faster access, while persist saves data permanently.
Cache is temporary storage used to store frequently accessed data for faster retrieval.
Persist saves data permanently, typically to a disk or database.
Cache is often used in web applications to store frequently accessed data like images or scripts.
Persist is commonly used to store user data or application settings that need to be retained even after the application is closed.
Q26. What is snapshot in Maven?
Snapshot in Maven is a version of a project that is still in development and not yet released.
Snapshots are versions of a project that are still in development and not yet released.
They are identified by the suffix '-SNAPSHOT' in the version number.
Snapshots can be deployed to a Maven repository for sharing with other developers for testing purposes.
They are not intended for production use as they are subject to frequent changes.
Q27. Have you worked on the Data Structures
Yes, I have worked on various data structures like arrays, linked lists, stacks, queues, trees, and graphs.
I have implemented algorithms using data structures like sorting, searching, and traversal.
I have optimized code by choosing the appropriate data structure for the problem.
I have used data structures in projects to efficiently store and manipulate data.
Q28. Have you worked on the Multithreading
Yes, I have experience working on Multithreading in Java.
Implemented multithreading using Java's Thread class
Used synchronized keyword to handle thread synchronization
Utilized Executor framework for managing thread pools
Q29. What is String Buffer and String Builder class?
String Buffer and String Builder are classes in Java used for manipulating strings.
String Buffer and String Builder are mutable classes, meaning they can be modified.
String Buffer is synchronized, making it thread-safe but slower than String Builder.
String Builder is not synchronized, making it faster but not thread-safe.
Both classes have methods for appending, inserting, deleting, and replacing characters in a string.
Example: StringBuilder sb = new StringBuilder("Hello"); sb...read more
Q30. What is difference between verification and validation
Verification ensures the product is built right, while validation ensures the right product is built.
Verification focuses on whether the software meets the specified requirements.
Validation focuses on whether the software meets the customer's needs and expectations.
Verification is done through reviews, inspections, walkthroughs, and static analysis.
Validation is done through testing, user feedback, and acceptance criteria.
Example: Verification would involve checking if a logi...read more
Q31. What is difference between functional and non functional testing
Functional testing focuses on the behavior of the system, while non-functional testing focuses on performance, security, and usability.
Functional testing checks if the system functions as expected based on requirements.
Non-functional testing evaluates aspects like performance, security, and usability.
Examples of functional testing include unit testing, integration testing, and system testing.
Examples of non-functional testing include load testing, security testing, and usabil...read more
Q32. Explain OOPS CONCEPTS
OOPS concepts are the principles of Object-Oriented Programming that help in designing and implementing software solutions.
Encapsulation - bundling of data and methods that operate on that data
Inheritance - ability of a class to inherit properties and methods from a parent class
Polymorphism - ability of objects to take on multiple forms or behaviors
Abstraction - hiding of complex implementation details and providing a simplified interface
Q33. Difference between the @service vs @Repository
The @Service annotation is used to mark a class as a service, while the @Repository annotation is used to mark a class as a repository.
The @Service annotation is typically used on service layer classes, which contain business logic.
The @Repository annotation is typically used on repository classes, which interact with a database or other data source.
Both annotations are used for component scanning and dependency injection in Spring framework.
Example: @Service UserService { .....read more
Q34. Difference between the Arrylist vs Linkedlist
ArrayList is implemented using a dynamic array while LinkedList is implemented using a doubly linked list.
ArrayList provides fast access to elements using index, but slow insertion and deletion.
LinkedList provides fast insertion and deletion, but slow access to elements.
Example: ArrayList is suitable for scenarios where random access is required, while LinkedList is suitable for scenarios where frequent insertion and deletion are needed.
Q35. Use of super and this
super and this are used in object-oriented programming to refer to the parent class and current instance respectively.
super is used to call a method or constructor from the parent class
this is used to refer to the current instance of the class
super() must be the first statement in a constructor
this() can be used to call another constructor in the same class
Q36. How to handle toxic work culture?
Address toxic work culture by open communication, setting boundaries, seeking support, and considering leaving if necessary.
Open communication with colleagues and management about issues
Set boundaries to protect your mental and emotional well-being
Seek support from HR, a mentor, or a therapist if needed
Consider leaving the toxic work environment if the situation does not improve
Q37. CSS: Create a triangle using only CSS
Use CSS to create a triangle shape
Use border properties to create a triangle shape
Set the width and height of the element to 0
Use borders of different colors to create the triangle shape
Q38. Any problem about bond and location
The question is about bond and location.
Discuss the concept of bond and its importance in software development
Explain the significance of location in software development
Provide examples of how bond and location can impact software development projects
Q39. EMD ticketing and different types of EMD transactions
EMD ticketing refers to Electronic Miscellaneous Document used for ancillary services in airline industry.
EMD transactions are used for services like excess baggage, lounge access, seat upgrades, etc.
There are different types of EMD transactions such as EMD-A, EMD-S, EMD-T, EMD-E, etc.
EMD-A is used for additional services, EMD-S for seat selection, EMD-T for excess baggage, and EMD-E for upgrades.
EMD transactions are stored electronically and can be linked to the passenger's ...read more
Q40. 2.Risk based testing in Manual testing
Risk based testing is a method of prioritizing testing efforts based on the likelihood and impact of potential failures.
Identify potential risks and their impact on the system
Prioritize testing efforts based on the identified risks
Allocate resources accordingly to mitigate the identified risks
Continuously monitor and reassess risks throughout the testing process
Q41. What is Object Oriented programming?
Object Oriented Programming is a programming paradigm that focuses on objects and their interactions.
OOP is based on the concept of classes and objects
It emphasizes encapsulation, inheritance, and polymorphism
Examples of OOP languages include Java, C++, and Python
Q42. Explain the any senior of real time
The question is unclear and does not make sense.
Q43. What is materialised view
A materialized view is a database object that contains the results of a query and is stored as a table for faster access.
Materialized views store the results of a query and can be refreshed periodically.
They are used to improve query performance by pre-computing and storing the results.
Materialized views are especially useful for complex queries that involve aggregations or joins.
They can be refreshed manually or automatically based on a schedule or trigger.
Example: Creating ...read more
Q44. What is java. Oops concepts
Java is a high-level, object-oriented programming language used for developing applications and software.
Java is platform-independent and can run on any operating system
It follows the OOPS concepts like inheritance, polymorphism, encapsulation, and abstraction
Java programs are compiled into bytecode and run on the Java Virtual Machine (JVM)
Java has a vast library of pre-built classes and APIs for various functionalities
Java is widely used for developing web applications, mobi...read more
Q45. How to troubleshoot and debugging
Troubleshooting and debugging involves identifying and resolving issues in software or systems.
Identify the problem by gathering information and reproducing the issue
Use debugging tools like logs, breakpoints, and profilers to pinpoint the issue
Isolate the root cause of the problem and develop a plan to fix it
Implement the solution and test to ensure the issue is resolved
Document the troubleshooting process and solution for future reference
Q46. Edifact messages for Ticketing transaction
EDIFACT messages are standardized messages used in ticketing transactions.
EDIFACT messages are used in the travel industry for exchanging ticketing information.
They follow a specific format defined by the EDIFACT standard.
Examples of EDIFACT messages for ticketing transactions include TKT (ticketing) and TKU (ticketing update).
Q47. What is your expected ctc
I am open to negotiation based on the company's policies and industry standards.
I am looking for a fair compensation package that aligns with my skills and experience.
I have researched the industry standards and the company's policies to have a realistic expectation.
I am open to discussing the salary and benefits package during the interview process.
I am more interested in gaining valuable experience and learning opportunities than just the salary.
Q48. Airline messages TTY for passive segment
Airline messages TTY for passive segment
TTY (Teletypewriter) messages are used for communication with passengers who are deaf or hard of hearing
Passive segment refers to a portion of a flight where passengers are not actively engaged in activities like eating or watching a movie
Airline messages sent via TTY for passive segment may include updates on flight status, safety information, and entertainment options
Q49. Explain redux thunk
Redux Thunk is a middleware that allows asynchronous actions to be dispatched in Redux.
Redux Thunk is a middleware that extends the Redux store's abilities.
It allows actions to return functions instead of plain objects.
These functions can perform asynchronous operations and dispatch actions when needed.
Thunk functions have access to the store's dispatch and getState methods.
Example: dispatching an asynchronous action to fetch data from an API.
Q50. Explain your framework?
My framework is a hybrid framework that combines data-driven and keyword-driven approaches.
The framework uses Excel sheets to store test data and test cases.
It also uses keywords to perform actions and validations.
The framework is modular and can be easily extended.
It supports both manual and automated testing.
The framework provides detailed reports and logs for easy debugging.
Q51. Process of selecting the framework
The process of selecting a framework involves evaluating requirements, researching available options, conducting proof of concepts, and considering factors like scalability, maintainability, and community support.
Understand project requirements and constraints
Research available automation frameworks
Conduct proof of concepts to evaluate framework suitability
Consider factors like scalability, maintainability, and community support
Select a framework that best fits the project ne...read more
Q52. concurrent hashMap working
ConcurrentHashMap is a thread-safe implementation of the Map interface in Java.
ConcurrentHashMap allows multiple threads to access and modify the map concurrently.
It achieves thread-safety by dividing the map into segments, allowing concurrent access to different segments.
Each segment acts as an independent hash table, reducing contention between threads.
ConcurrentHashMap provides atomic operations like putIfAbsent(), replace(), etc.
Example: ConcurrentHashMap
map = new Concur...read more
Q53. What are business ethics
Business ethics are principles and values that guide the behavior of individuals and organizations in the business world.
Business ethics involve honesty, integrity, fairness, and respect for others.
They also include social responsibility, sustainability, and compliance with laws and regulations.
Examples of ethical dilemmas in business include conflicts of interest, bribery, and discrimination.
Adhering to ethical principles can enhance a company's reputation and build trust wi...read more
Q54. Explain Agile methodology.
Agile methodology is an iterative approach to software development that emphasizes flexibility and collaboration.
Agile values individuals and interactions over processes and tools
It emphasizes working software over comprehensive documentation
Agile teams work in short iterations called sprints
The team continuously delivers working software to the customer
Agile encourages frequent communication and collaboration between team members and stakeholders
Q55. Api integration in react
Api integration in React involves fetching data from external APIs and displaying it in the application.
Use fetch or axios to make API calls in React components
Handle API responses using promises or async/await
Update component state with fetched data to render it on the UI
Q56. Delete duplicated rows
To delete duplicated rows in a table, use the DISTINCT keyword in a SELECT statement.
Use the SELECT DISTINCT statement to retrieve unique rows.
Use the DELETE statement with a subquery to delete duplicate rows.
Use the ROW_NUMBER() function to identify and delete duplicate rows.
Use the GROUP BY clause to group rows by a specific column and delete duplicates.
Use the CTE (Common Table Expression) to delete duplicate rows.
Q57. What is peer review
Peer review is a process where work is evaluated by others in the same field for quality and accuracy.
Peer review involves experts in the same field evaluating the work of their peers
It helps ensure the quality and accuracy of the work being reviewed
Feedback from peer review can help improve the overall quality of the work
Common in academic research, scientific publications, and software development
Q58. Metrics calculation for team
Metrics calculation for team
Identify key performance indicators (KPIs) to measure team performance
Collect relevant data to calculate the metrics
Define formulas or methods to calculate each metric
Analyze the metrics to identify trends, patterns, and areas for improvement
Present the metrics in a clear and concise manner to stakeholders
Q59. write code for java progams
Writing code for Java programs
Use proper syntax and conventions in Java programming
Understand the problem statement clearly before writing the code
Test the code thoroughly before finalizing it
Q60. Array String in java
String is a sequence of characters in Java, stored as an array of Unicode characters.
Strings are immutable in Java, meaning their values cannot be changed once created.
String objects can be created using string literals or the new keyword.
String class provides various methods for manipulating strings, such as substring(), length(), etc.
String concatenation can be done using the + operator or the concat() method.
String comparison can be done using the equals() method or the co...read more
Q61. Explain GCP dataflow
GCP Dataflow is a fully managed service for processing and analyzing streaming and batch data.
GCP Dataflow allows for parallel processing of data in real-time or batch mode
It automatically optimizes and scales the processing resources based on the workload
Dataflow pipelines can be written in Java, Python, or Apache Beam SDK
It integrates with other GCP services like BigQuery, Pub/Sub, and Datastore
Q62. OOPS concept of java
OOPS concept of Java refers to Object-Oriented Programming principles like inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the implementation details and showing only the necessary features to the outside w...read more
Q63. diffing algorithm
Diffing algorithm is used to compare two sets of data and identify the differences between them.
Diffing algorithms are commonly used in version control systems to track changes in code.
They compare two sets of data and identify additions, deletions, and modifications.
Examples of diffing algorithms include Myers' diff algorithm and the patience diff algorithm.
Q64. OOps concept in java
Object-oriented programming concepts in Java focus on classes, objects, inheritance, encapsulation, and polymorphism.
Classes are blueprints for objects
Objects are instances of classes
Inheritance allows a class to inherit properties and behaviors from another class
Encapsulation hides the internal state of an object and only exposes necessary functionalities
Polymorphism allows objects to be treated as instances of their parent class
More about working at Infogain
Top HR Questions asked in Teleperformance
Interview Process at Teleperformance
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month