Add office photos
Employer?
Claim Account for FREE

Robosoft Technologies

3.4
based on 277 Reviews
Filter interviews by

Amazon Interview Questions and Answers

Updated 1 Mar 2024
Popular Designations

Q1. Javascript is multi threaded or single threaded?

Ans.

Javascript is single threaded.

  • Javascript has a single call stack and event loop.

  • It can handle asynchronous operations through callbacks and promises.

  • Web workers can be used for multi-threading in Javascript.

Add your answer

Q2. What is prototype in javascript?

Ans.

Prototype is a property of an object that allows adding new properties and methods to an existing object.

  • Prototype is a blueprint for creating objects.

  • It is used to add new properties and methods to an existing object.

  • All objects in JavaScript have a prototype property.

  • The prototype property is used to share properties and methods between objects.

  • Modifying the prototype of an object affects all instances of that object.

Add your answer

Q3. Reverse an array, get substring, eliminates 0 from array

Ans.

Reverse array, get substring, remove 0s

  • Use array.reverse() to reverse the array

  • Use string.substring() to get a substring

  • Use array.filter() to remove 0s from the array

Add your answer

Q4. What is event loop?

Ans.

Event loop is a mechanism that allows JavaScript to perform non-blocking I/O operations.

  • Event loop is a part of JavaScript runtime that continuously checks the call stack and the task queue.

  • It executes the tasks in the task queue one by one, and once the task is completed, it is removed from the queue.

  • Event loop ensures that the JavaScript code does not block the main thread and allows for asynchronous programming.

  • Examples of asynchronous operations that use event loop are se...read more

Add your answer
Discover Amazon interview dos and don'ts from real experiences

Q5. Explain the concept of Virtual DOM

Ans.

Virtual DOM is a lightweight copy of the actual DOM that allows for efficient updates and rendering in web applications.

  • Virtual DOM is a concept used in frameworks like React to improve performance by minimizing direct manipulation of the actual DOM.

  • When changes are made to the virtual DOM, a comparison is done with the actual DOM to identify the minimal updates needed, reducing re-renders.

  • This approach helps in optimizing rendering speed and improving user experience in web ...read more

Add your answer

Q6. Difference between var and let

Ans.

var is function-scoped while let is block-scoped.

  • var declarations are hoisted to the top of their scope while let declarations are not.

  • var can be redeclared in the same scope while let cannot.

  • let is preferred over var for better code readability and avoiding unexpected behavior.

  • Example: var x = 10; if (true) { var x = 20; } console.log(x); // Output: 20 let y = 10; if (true) { let y = 20; } console.log(y); // Output: 10

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Amazon

based on 8 interviews
2 Interview rounds
Technical Round
HR Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

3.5
 • 164 Interview Questions
3.2
 • 46 Interview Questions
4.4
 • 23 Interview Questions
3.6
 • 20 Interview Questions
4.0
 • 12 Interview Questions
3.3
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter