Question Bank

3705 approved questions from the community

What does the `fallback` option in `getStaticPaths` control?

HARD
SINGLE CHOICE
40s
Next.js
by Mohamed

What is the purpose of the `_app.js` file in Next.js Pages Router?

EASY
SINGLE CHOICE
30s
Next.js
by Mohamed

What is the difference between `_app.js` and `_document.js` in Next.js?

MEDIUM
SINGLE CHOICE
35s
Next.js
by Mohamed

How do you create a 404 page in Next.js?

EASY
SINGLE CHOICE
25s
Next.js
by Mohamed

What is the App Router in Next.js?

EASY
SINGLE CHOICE
30s
Next.js
by Mohamed

What is the purpose of the `'use client'` directive in Next.js?

MEDIUM
SINGLE CHOICE
30s
Next.js
by Mohamed

What is the purpose of the `'use server'` directive in Next.js?

MEDIUM
SINGLE CHOICE
30s
Next.js
by Mohamed

What are React Server Components (RSC) in Next.js App Router?

HARD
SINGLE CHOICE
40s
Next.js
by Mohamed

What is the purpose of the `loading.js` file in the App Router?

MEDIUM
SINGLE CHOICE
35s
Next.js
by Mohamed

What is the purpose of the `error.js` file in the App Router?

MEDIUM
SINGLE CHOICE
35s
Next.js
by Mohamed

What is the difference between `layout.js` and `template.js` in the App Router?

MEDIUM
SINGLE CHOICE
35s
Next.js
by Mohamed

What is the purpose of `generateStaticParams` in the App Router?

HARD
SINGLE CHOICE
40s
Next.js
by Mohamed

What does the `dynamic` export control in the App Router?

HARD
SINGLE CHOICE
40s
Next.js
by Mohamed

What is the purpose of `next/script` in Next.js?

MEDIUM
SINGLE CHOICE
30s
Next.js
by Mohamed

How do you handle redirects in Next.js?

MEDIUM
SINGLE CHOICE
30s
Next.js
by Mohamed

In Next.js, environment variables prefixed with NEXT_PUBLIC_ are exposed to the browser.

MEDIUM
TRUE FALSE
25s
Next.js
by Mohamed

Next.js automatically code-splits JavaScript bundles to load only the code needed for each page.

MEDIUM
TRUE FALSE
25s
Next.js
by Mohamed

How do you enable TypeScript in a Next.js project?

EASY
SINGLE CHOICE
25s
Next.js
by Mohamed

What is the 'override' keyword used for in C#?

MEDIUM
SINGLE CHOICE
30s
.NET
by Mohamed

What is the difference between a clustered and non-clustered index in SQL?

MEDIUM
SINGLE CHOICE
40s
.NET
by Mohamed
PreviousPage 100 of 186Next