Unit 1: Fundamentals of Next.js and Routing - Subjective Questions

INT257 — Modern Web Application Development • Practice Questions with Detailed Answers

20 questions

1

What is Next.js, and how does it extend the capabilities of React for modern web application development?

2

Explain the major features of Next.js that make it suitable for developing scalable web applications.

3

Describe the typical project structure of a Next.js application using the App Router and explain the purpose of its important files and directories.

4

What is the App Router in Next.js? Explain its working principles and advantages over a basic page-oriented routing approach.

5

Describe the standard development workflow for creating, testing, and deploying a Next.js application.

6

Explain file-based routing in Next.js with suitable examples for creating home, about, and contact routes.

7

What are dynamic routes in Next.js? Explain how a dynamic route can be used to display different product details.

8

Distinguish between static routes and dynamic routes in Next.js. Include examples and suitable use cases for each.

9

Explain nested routes in Next.js and show how a multi-level route such as /dashboard/settings/profile can be created.

10

Describe layouts in the Next.js App Router. How do root layouts and nested layouts improve application design?

11

Compare a root layout with a nested layout in Next.js, and explain how both layouts are composed for a deeply nested route.

12

Explain the different methods of navigation available in a Next.js application and state when each method should be used.

13

What is client-side navigation in Next.js, and how does it differ from a traditional full-page browser navigation?

14

Explain the purpose of loading.js in the Next.js App Router and describe how it improves the user experience during asynchronous rendering.

15

What is an error UI in Next.js? Explain the role of error.js and the requirements for using an error boundary.

16

Differentiate between loading UI and error UI in the Next.js App Router. Explain how both contribute to resilient application interfaces.

17

Design a suitable route structure for a blog application containing a home page, an article listing page, individual article pages, and an author profile section.

18

Explain how dynamic routes and nested routes can be combined to create a route such as /courses/nextjs/lessons/1.

19

Explain the difference between Server Components and Client Components in the context of the Next.js App Router.

20

Describe the purpose of route groups in Next.js and explain how they can organize routes without changing the public URL.