Product Development Engineer
10+ Product Development Engineer Interview Questions and Answers
You have been given a long type array/list 'ARR' of size 'N'. It represents an elevation map wherein 'ARR[i]' denotes the elevation of the 'ith' bar. Print the total amount of rainwater that c...read more
Q2. Integer to roman, sort an array containing only 0,1,2 in single iteration.
Use two pointers to swap 0s to the beginning and 2s to the end while keeping 1s in the middle.
Initialize two pointers, one for 0s (left) and one for 2s (right).
Iterate through the array and swap 0s to the left pointer and 2s to the right pointer.
Example: Input array = ['2', '1', '0', '2', '1', '0'], Output array = ['0', '0', '1', '1', '2', '2']
Product Development Engineer Interview Questions and Answers for Freshers
Q3. find first character repeating in the string, ex : 'abcddbc' ans = 'b'
Find the first character that repeats in a given string.
Iterate through the string and keep track of characters seen so far.
If a character is already seen, return it as the first repeating character.
If no repeating character is found, return null.
Q4. Advantages of async and threading and their scope.
Async and threading offer advantages in improving performance and responsiveness in software development.
Async allows for non-blocking operations, improving responsiveness by allowing other tasks to continue while waiting for a response.
Threading enables parallel execution of tasks, utilizing multiple CPU cores to improve performance.
Async is more suitable for I/O-bound operations, while threading is better for CPU-bound tasks.
Combining async and threading can maximize perfor...read more
Q5. 1)What is stack? 2)Overflowing condition for stack 3)What is binary tree? 4)Data structure used in DFS traversal.
A stack is a data structure that follows the Last In First Out (LIFO) principle.
Stack is a linear data structure with two main operations: push (adds an element) and pop (removes the top element).
Overflowing condition for stack occurs when trying to push an element into a full stack.
A binary tree is a hierarchical data structure where each node has at most two children.
Depth First Search (DFS) traversal uses a stack data structure to keep track of nodes to visit.
Q6. How can swap the numbers without using the third variable
To swap numbers without using a third variable, use arithmetic operations.
Add the two numbers to get the first number
Subtract the second number from the sum to get the second number
Subtract the original first number from the sum to get the original second number
Share interview questions and help millions of jobseekers 🌟
Q7. Pull the trending hashtags from twitter using public API
Use Twitter's public API to extract trending hashtags.
Authenticate with Twitter API using OAuth 1.0a
Make a GET request to the trends/place endpoint
Extract the hashtags from the response and return as an array of strings
Q8. Exchanging numbers without third variable
To exchange numbers without a third variable, use addition and subtraction operations.
Add the two numbers to get the sum.
Subtract the first number from the sum to get the second number.
Subtract the second number from the sum to get the first number.
Product Development Engineer Jobs
Q9. Explain about Global interpreter lock.
Global Interpreter Lock (GIL) is a mutex that protects access to Python objects, preventing multiple threads from executing Python bytecodes simultaneously.
GIL is a mechanism used in CPython to ensure that only one thread executes Python bytecode at a time.
It prevents multiple threads from executing Python code concurrently, which can cause issues with thread safety.
GIL can impact the performance of multi-threaded Python programs, as only one thread can execute Python code at...read more
Q10. Two sum leetcode model
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
Use a hashmap to store the difference between the target and each element as keys and their indices as values.
Iterate through the array and check if the current element's complement exists in the hashmap.
Return the indices of the two numbers that add up to the target.
Q11. What is the GD&T symbol for runout
The GD&T symbol for runout is TIR (Total Indicated Runout)
TIR stands for Total Indicated Runout
It is used to specify the maximum allowable difference in location of a feature when the part is rotated 360 degrees
TIR is represented by a circular symbol with two arrows pointing in opposite directions
Q12. Mechanical engineering favourite subjects
My favorite subjects in mechanical engineering are thermodynamics, fluid mechanics, and materials science.
Thermodynamics: Study of energy and heat transfer in mechanical systems. Example: analyzing the efficiency of an engine.
Fluid mechanics: Study of fluids in motion and at rest. Example: designing a pump system for a manufacturing plant.
Materials science: Study of properties and behavior of materials. Example: selecting the right material for a specific application.
Q13. DBMS Locking exmple with a scenario
DBMS locking is a mechanism to manage concurrent access to data in a database to prevent data corruption.
Locking is used to ensure data integrity and consistency in a multi-user environment.
Types of locks include shared locks, exclusive locks, and update locks.
Example scenario: Two users trying to update the same record simultaneously - one user gets an exclusive lock while the other waits.
Deadlocks can occur when two transactions are waiting for each other to release locks.
Q14. How to implement queue
A queue can be implemented using arrays or linked lists. It follows the FIFO principle.
Create an empty array or linked list
Enqueue elements at the end of the queue
Dequeue elements from the front of the queue
Implement methods like isEmpty, isFull, peek, etc.
Example: Queue implemented using an array - https://www.geeksforgeeks.org/queue-set-1introduction-and-array-implementation/
Q15. What is starter motor??
A starter motor is an electric motor used to start an internal combustion engine.
Used to crank the engine to start it
Powered by the vehicle's battery
Engages with the flywheel or flexplate to turn the engine over
Commonly found in automobiles and other vehicles
Q16. LRU cache program
LRU cache program is a data structure that stores the most recently used items.
LRU cache is typically implemented using a doubly linked list and a hashmap.
When a new item is accessed, it is moved to the front of the list.
If the cache is full, the least recently used item is removed from the end of the list.
Example: If the cache has a capacity of 3 and items A, B, C are accessed in that order, the cache will store C, B, A.
Example: If item B is accessed again, it will move to t...read more
Interview Questions of Similar Designations
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month