KLA-Tencor
10+ Infosys BPM Interview Questions and Answers
Q1. What is the angle between minute and hour hand for a particular time ?
The angle between minute and hour hand for a particular time can be calculated using a formula.
The formula is: |(30*H) - (11/2)*M| degrees
Where H is the hour hand position and M is the minute hand position
If the result is greater than 180 degrees, subtract it from 360 degrees to get the acute angle
For example, at 3:15, H=3 and M=15, so the angle is |(30*3) - (11/2)*15| = 7.5 degrees
Q2. If new and malloc both allocated in heap then how to access them separately? How to count number of objects created by new and created by malloc.ques
To access objects allocated by new and malloc separately, keep track of the number of objects created by each method using counters.
Use a separate counter variable for objects created by new and malloc.
Increment the respective counter variable each time an object is created using new or malloc.
To access objects allocated by new, use the new counter variable.
To access objects allocated by malloc, use the malloc counter variable.
Q3. How default ” = ” operator and copy constructor is used and why we need to use them explicitlyques
The default = operator and copy constructor are used to assign values and create copies of objects.
The default = operator is used to assign the values of one object to another object of the same class.
The copy constructor is used to create a new object by copying the values of an existing object.
Explicitly defining these functions is necessary when the default behavior is not sufficient or when the class contains dynamically allocated memory.
For example, if a class has a poin...read more
Q4. How to compare two objects. Equal method belong to which class.quest
The equal method is used to compare two objects for equality.
The equal method is typically implemented in the class of the objects being compared.
It returns a boolean value indicating whether the two objects are equal.
The implementation of the equal method can vary depending on the requirements of the class.
For example, in the String class, the equal method compares the contents of the strings.
In the Integer class, the equal method compares the values of the integers.
Q5. In which case garbage collector cannot work explicitly
The garbage collector cannot work explicitly when objects have explicit references.
Garbage collector cannot collect objects that have explicit references.
Explicit references can be created using pointers or strong references.
If an object is explicitly referenced, it will not be considered garbage by the collector.
Examples of explicit references include global variables or objects referenced by other active objects.
Q6. How will you add/multiply very large number
To add/multiply very large numbers, use a programming language that supports big integer arithmetic.
Use a programming language like Python or Java that provides built-in support for big integer arithmetic.
Declare variables of appropriate data types (e.g., BigInteger in Java) to store the large numbers.
Use the addition or multiplication operator to perform the desired operation on the large numbers.
Handle any potential overflow or precision issues that may arise when dealing w...read more
Q7. obj2 = obj1….will destructor work for obj2?
Yes, the destructor will work for obj2.
The destructor is a special member function that is automatically called when an object is destroyed.
When obj2 is assigned the value of obj1, it will still have its own destructor that will be called when obj2 is destroyed.
The destructor is responsible for cleaning up any resources allocated by the object, regardless of how the object was assigned or copied.
Q8. What is Software testing?
Software testing is the process of evaluating a software application or system to identify defects or errors.
Software testing is essential to ensure the quality and reliability of software.
It involves executing test cases and comparing the actual results with expected results.
Testing can be done manually or using automated tools.
Types of testing include functional, performance, security, and usability testing.
Examples of software testing tools include Selenium, JUnit, and Loa...read more
Q9. Clone linked list with random pointers.
Clone a linked list with random pointers.
Create a new node for each node in the original list.
Store the mapping between the original and cloned nodes in a hash table.
Traverse the original list again and set the random pointers in the cloned list using the hash table.
Return the head of the cloned list.
Q10. why you need operator overloadingques
Operator overloading allows the same operator to be used for different purposes based on the operands.
Operator overloading provides a way to make operators work with user-defined types.
It allows us to define the behavior of an operator when applied to objects of a class.
It can simplify code and make it more readable by allowing intuitive use of operators.
Examples include overloading the '+' operator to concatenate strings or add custom objects.
Q11. Explain ” +” operator overloading
Operator overloading allows the '+' operator to be used with custom types.
Operator overloading is a feature in many programming languages that allows the same operator to have different behaviors depending on the types of the operands.
In the case of the '+' operator, it can be overloaded to perform addition between different types of objects.
For example, you can overload the '+' operator to concatenate strings, add numbers, or combine custom objects.
The behavior of the '+' op...read more
Q12. Design a software for car ECU
Design a software for car ECU
Identify the requirements and functionalities of the ECU
Choose a programming language and development environment
Implement the software to control the engine, transmission, and other systems
Test the software for reliability and performance
Ensure the software is secure and can handle errors and exceptions
Top HR Questions asked in Infosys BPM
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month