Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 5 subjective questions Client-Server Communication and Routing

INT252 — Web App Development With Reactjs 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Define HTTP and explain the structure of an HTTP request and an HTTP response.

  2. Question 2 of 20

    Explain REST principles and describe how common HTTP methods are used in a RESTful API.

  3. Question 3 of 20

    Describe how the Fetch API can be used to retrieve JSON data in a React application. How should HTTP and network errors be handled?

  4. Question 4 of 20

    Explain common Axios usage patterns for GET, POST, and authenticated requests. Mention how Axios handles responses and errors.

  5. Question 5 of 20

    Compare the Fetch API and Axios for client-server communication in React applications.

  6. Question 6 of 20

    Describe how a React interface should handle loading, error, success, and empty states during data fetching.

  7. Question 7 of 20

    Explain how useEffect can be used for data fetching. Include the purpose of its dependency array and cleanup function.

  8. Question 8 of 20

    Distinguish between client state and server state in a React application, with suitable examples.

  9. Question 9 of 20

    Discuss the limitations of using useEffect and useState as the primary mechanism for synchronizing server data.

  10. Question 10 of 20

    Introduce React Query and explain the roles of QueryClient, QueryClientProvider, query keys, and query functions.

  11. Question 11 of 20

    Explain caching, freshness, invalidation, and background synchronization in React Query.

  12. Question 12 of 20

    Define client-side routing and explain how it differs from traditional server-side page navigation.

  13. Question 13 of 20

    Describe the basic routing configuration required to set up React Router in a React application.

  14. Question 14 of 20

    Explain declarative and programmatic navigation in React Router. When should each approach be used?

  15. Question 15 of 20

    What are dynamic routes? Explain how route parameters are declared, read, and used to fetch resource-specific data.

  16. Question 16 of 20

    Describe how query parameters are read and updated in a React application. How do they differ from route parameters?

  17. Question 17 of 20

    Explain nested routes and layout routes in React Router. What is the purpose of an outlet?

  18. Question 18 of 20

    Design and explain a protected-route strategy for an authenticated React application.

  19. Question 19 of 20

    Explain route-based code splitting and describe how lazy loading and a fallback interface improve application performance.

  20. Question 20 of 20

    Describe an end-to-end architecture for a routed React application that retrieves server data, caches it, handles mutations, and keeps the URL synchronized with the current view.

That's unit 5

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.