Dew Solutions
10+ TORRENT MOTORS Interview Questions and Answers
Q1. Explain how you will implement the LUDO game
LUDO game can be implemented using object-oriented programming concepts and graphics libraries.
Create classes for game board, players, and game pieces
Implement game logic for dice rolls, moving pieces, and capturing opponent pieces
Use graphics libraries to create a visually appealing game interface
Incorporate sound effects and animations to enhance user experience
Q2. How can we Avoid then chain and still make API call effective through promise ?
To avoid then chain and make API call effective through promise, use async/await syntax.
Use async keyword before the function definition.
Use await keyword before the API call.
Wrap the API call in try-catch block to handle errors.
Use Promise.all() to make multiple API calls simultaneously.
Use Promise.race() to get the result of the fastest API call.
Use .finally() to perform actions after the API call is complete.
Q3. What is your current CTC What is your ECTC
I prefer not to disclose my current CTC. My expected CTC is based on industry standards and my experience.
Politely decline to disclose current CTC
Provide expected CTC based on industry standards and experience
Research industry standards and salary ranges for similar positions
Consider other benefits and perks besides salary
Q4. Reverse String without reversing integer in String What is iOS What is URLSession What is CoreData.
Reverse a string without reversing integer in it
Iterate through the string and swap characters from start and end until the middle is reached
Use two pointers, one at the start and one at the end of the string
Check if the character at the start pointer is a digit, if yes, move the pointer to the next character
Check if the character at the end pointer is a digit, if yes, move the pointer to the previous character
Q5. What do you understand by context API?
Context API is a feature in React that allows sharing data between components without passing props.
Context API provides a way to pass data through the component tree without having to pass props down manually at every level.
It consists of two parts: the Provider component and the Consumer component.
The Provider component is used to wrap the components that need access to the data, and the Consumer component is used to access the data.
Context API is useful for managing global...read more
Q6. what is filter in js
Filter in JavaScript is a method used to create a new array with elements that pass a certain condition.
Filter method creates a new array with elements that satisfy a provided function.
It does not modify the original array, but returns a new array.
Example: const numbers = [1, 2, 3, 4, 5]; const evenNumbers = numbers.filter(num => num % 2 === 0); // [2, 4]
Q7. Explain React life cycle hook ?
React life cycle hooks are methods that allow you to hook into the component's life cycle events.
There are three phases of a component's life cycle: Mounting, Updating, and Unmounting.
Mounting phase includes methods like constructor, render, and componentDidMount.
Updating phase includes methods like shouldComponentUpdate, render, and componentDidUpdate.
Unmounting phase includes method componentWillUnmount.
Hooks can be used to perform actions at specific points in the componen...read more
Q8. Difference between put and post method in api testing
PUT is used to update an existing resource while POST is used to create a new resource.
PUT replaces the entire resource while POST only updates part of it.
PUT is idempotent while POST is not.
PUT requires the client to send the entire updated resource while POST only requires the updated fields.
PUT is used for idempotent operations while POST is used for non-idempotent operations.
Q9. Create test cases for cart option in flipkart.
Test cases for cart option in Flipkart
Verify that items can be added to the cart
Verify that items can be removed from the cart
Verify that the cart displays the correct quantity and price
Verify that the cart can be emptied
Verify that the user can proceed to checkout from the cart
Q10. Create test cases for add an item to ur cart
Test cases for adding an item to the cart
Verify that the item is added to the cart
Verify that the item count in the cart is incremented
Verify that the total price in the cart is updated
Verify that the item details are correct in the cart
Top HR Questions asked in TORRENT MOTORS
Interview Process at TORRENT MOTORS
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month