Interview Questions of Js, React and Rest API Database
Interview Questions of Js, React and Rest API Database
54. Given an array of IDs, get the details against each ID through an API(using async await)
55. Given an array of objects, use reduce() to find the sum of all marks.
56. Use filter() to filter that array based on a condition.
57. Find max occurrences of 1's between 0's
58. Given an array, iterate through each element in the array using different ways
REACT
1. Difference between functional components and class components in react?
2. Why did you use functional components?
3. Did you have a styling component in React?
4. What is JSX
5. What is a component?
6. Difference between class based and functional based component?
7. What are hooks?
8. Can we replicate all the lifecycle methods using hooks?
9. benefit of one over the other?
10. What are props?
11. What is prop drilling?
12. What are controlled components?
13. What are the causes of re-rendering?
14. What are pure components?
15. What is state management?
16. What method is used to update a state?
17. What are stateless components?
18. What are stateful components?
19. What are the drawbacks of passing the index of an array as a "key" prop to a component?
20. What are refs?
21. Where does ref refer to an element?
22. What is reconciliation?
23. How is routing done in react?
24. Are there any other libraries?
25. Can we write our own router instead of using libraries?
26. How is form handling done in react?
27. Have you used context API?
28. What is redux?
29. Can we do a life cycle method in functional components?
30. What is context Api?( If u have used it before or in Skipq)
31. Why does it use state return?
32. If I write state=10 instead of setstate(10). What problem will occur?
33. What is state management?
34. If I create a class and constructor and no state variable. Will it start managing?
35. Virtual dom and Real dom. And what data structure virtual and real dom uses.
36. Explain working of react.
37. What are routers in react?
38. What is the purpose of key attributes in lists (react)?
39. What are the pros and cons of react?
40. How is virtual dom faster than real dom?
41. How is JSX compiled into javascript?
42. What are lists?
43. What are keys in lists?
44. Why assigning incremental values like, array index, to key is bad?
45. What is context api?
46. Which components would change if the value of context changes?
47. What are functional components?
48. What are class-based components?
49. What is the difference between them?
50. React keys and why are they important?
51. What would you prefer more? Frontend or backend?
52. useEffect hook?
53. Where does ref refer to an element?
54. What are stateless components?
55. What are the causes of re-rendering?
56. Where are useeffect hooks used?
57. What are props?
58. How to resolve the props drilling issue?
59. What is the react cycle.?
60. What are higher order components?
61. What is the use of useRef?
62. If you change something in the child component, when does that affect the parent component?
63. If you change something in the parent component will it have any effect on children components?
64. Follow up of last question: How to stop unnecessary rerendering of react?
65. What are reducers?
66. If you refresh your browser, will that have any effect on redux?
67. When to use browser sessions and when to use browser’s local memory.
68. When to use react useref?
69. Advantages of using react js?
70. Different methods to store data over multiple tabs?
71. What are the pros and cons of react?
72. States vs props
73. States vs variable