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.
- What is the difference between a token and a refresh token?
- How do tokens work in real-world applications?
- What are cookies, and how are they used in web applications?
- Why do we need a refresh token?
- What is the difference between authentication and authorization?
- What is the difference between useCallback and useMemo?
- What are real-world use cases of useCallback and useMemo?
- What is the difference between Context API and Redux?
- When should you choose Context API over Redux Toolkit?
- How do you optimize a React application?
- How can you prevent unnecessary re-renders?
- How do React.memo, useMemo and useCallback improve performance?
- Predict the output of a for loop using var and setTimeout: for (var i = 0; i < 3; i++) { setTimeout(() => { console.log(i); }, 1000); }
- Solve array-based coding problems.
- What is hoisting in JavaScript? What is the Temporal Dead Zone (TDZ)?
- What is event delegation, and where is it used in real-world applications?
- 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.
- What is the difference between localStorage and sessionStorage?
- When should you use each in real-world applications?
- How can browser storage be integrated into a React CRUD application to persist product data?
- What is your knowledge of cloud platforms such as AWS, Azure or Google Cloud?
- What is your understanding of deployment and production environments?