Learning Partner

Infosys React.js Interview Questions for Not specified

Shared question set for Not specified of experience, React.js & JavaScript. Topics and wording follow the supplied notes; these are questions, not official company guidance.

  1. What is the difference between a token and a refresh token?
  2. How do tokens work in real-world applications?
  3. What are cookies, and how are they used in web applications?
  4. Why do we need a refresh token?
  5. What is the difference between authentication and authorization?
  6. What is the difference between useCallback and useMemo?
  7. What are real-world use cases of useCallback and useMemo?
  8. What is the difference between Context API and Redux?
  9. When should you choose Context API over Redux Toolkit?
  10. How do you optimize a React application?
  11. How can you prevent unnecessary re-renders?
  12. How do React.memo, useMemo and useCallback improve performance?
  13. Predict the output of a for loop using var and setTimeout: for (var i = 0; i < 3; i++) { setTimeout(() => { console.log(i); }, 1000); }
  14. Solve array-based coding problems.
  15. What is hoisting in JavaScript? What is the Temporal Dead Zone (TDZ)?
  16. What is event delegation, and where is it used in real-world applications?
  17. Build a Product Management CRUD application using React.js in an online compiler: add new products, display the product list, update and delete products, manage state with useState, and render data dynamically without refreshing the page.
  18. What is the difference between localStorage and sessionStorage?
  19. When should you use each in real-world applications?
  20. How can browser storage be integrated into a React CRUD application to persist product data?
  21. What is your knowledge of cloud platforms such as AWS, Azure or Google Cloud?
  22. What is your understanding of deployment and production environments?

Browse React.js question sets