PTC
MTPL Group Interview Questions and Answers
Q1. There are 4 people on one side of the river, let them be A, B, C and D. There is a boat on the same side of the river. A takes 1 minute to row to the other side, B takes 2 minutes, C takes 9 minutes and D takes...
read moreA, B cross first (2 mins), A returns (1 min), C, D cross (10 mins), B returns (2 mins), A, B cross again (2 mins)
A, B cross first (2 mins)
A returns (1 min)
C, D cross (10 mins)
B returns (2 mins)
A, B cross again (2 mins)
Q2. You have a birthday cake. You need to divide it in 8 equal parts, but you can cut it only 3 times. How will you do it?
Cut the cake in half horizontally, then stack the halves and cut vertically twice.
Cut the cake horizontally to get 2 equal halves.
Stack the halves on top of each other and cut vertically to get 4 equal quarters.
Finally, stack the quarters and cut vertically again to get 8 equal parts.
Q3. Two people, A and B, are running on a circular track. Both start at the same position. A is running at a speed of "x" and B is running at a speed of "y" (x is not equal to y). At what distance will they meet ag...
read moreThey will meet again after the starting point at a distance of LCM(x, y).
The distance at which they will meet again is the least common multiple (LCM) of their speeds.
For example, if A is running at a speed of 4 m/s and B is running at a speed of 6 m/s, they will meet again after 12 meters.
Another example, if A is running at a speed of 3 km/hr and B is running at a speed of 5 km/hr, they will meet again after 15 km.
Q4. There are three wires of same length. First is crafted into a circle, second is crafted into an equilateral triangle and third is crafted into a square. Which one will have the minimum area?
The wire crafted into a circle will have the minimum area.
The circle has the smallest perimeter to area ratio compared to the equilateral triangle and square.
The formula for the area of a circle is A = πr^2, where r is the radius.
For the equilateral triangle, the formula is A = (√3/4) * s^2, where s is the side length.
For the square, the formula is A = s^2, where s is the side length.
Q5. Swapping two numbers using different techniques. All possible test cases and where one can go wrong.
Swapping two numbers using different techniques and discussing possible test cases and errors.
Using a temporary variable to swap the numbers
Using arithmetic operations to swap the numbers
Using bitwise XOR operation to swap the numbers
Test cases: positive numbers, negative numbers, zero, large numbers, floating point numbers
Possible errors: not using a temporary variable correctly, overflow/underflow with arithmetic operations, not handling edge cases
Q6. How much was my understanding about PTC core values.
I have a strong understanding of PTC core values.
PTC core values include customer success, innovation, integrity, and teamwork.
I have demonstrated my understanding of these values through my work on projects that prioritize customer satisfaction and collaboration.
I have also shown my commitment to integrity by always following ethical guidelines in my work.
I stay updated on industry trends and technologies to contribute to innovation within the company.
Q7. Program to find if a number is prime or not.
A program to determine if a given number is prime or not.
Check if the number is less than 2, if so it is not prime
Iterate from 2 to the square root of the number and check for divisibility
If the number is divisible by any number other than 1 and itself, it is not prime
If no divisors are found, the number is prime
Q8. Program for Fibonacci Series.
A program to generate Fibonacci series using iterative or recursive approach.
Iterative approach: Use a loop to generate Fibonacci numbers by adding the previous two numbers.
Recursive approach: Define a function that calls itself to generate Fibonacci numbers.
Example: Fibonacci series up to 10 - 0, 1, 1, 2, 3, 5, 8, 13, 21, 34
More about working at PTC
Top Software Analyst Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month