wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Advanced - Middle Module Evaluation

Total questions: 22

Worksheet time: 22mins

Name
Class
Date
1.

What command is used to create a new project in Next.js?

a)

npm install next

b)

next start

c)

npx create-next-app@latest

d)

next build

2.

Which of the following features is NOT specific to Next.js?

a)

Static Site Generation (SSG)

b)

Native use of Angular

c)

Server-Side Rendering (SSR)

d)

Support for TypeScript

3.

What is the main advantage of using the Next.js Image API?

a)

Improved State Management

b)

Easy Implementation of Image Galleries

c)

Better Code Splitting

d)

Automatic Image Optimization

4.

How does Next.js define routes with the App Router?

a)

Using the pages directory

b)

Using the app directory

c)

Using a routes.js file

d)

Using a router.config.js file

5.

What file is used to define a global layout in Next.js?

a)

app/layout.ts

b)

pages/_layout.ts

c)

app/_app.ts

d)

pages/_document.ts

6.

How do you implement a dynamic route in Next.js?

a)

Using square brackets [] around the file name in the app folder

b)

Defining a dynamic route in routes.json

c)

Using query parameters in the URL

d)

Using a dynamic route configuration in next.config.js

7.

What component is used in Next.js to create navigable links between pages?

a)

<RouterLink>

b)

<Link>

c)

<NavLink>

d)

<Href>

8.

Which attribute should be used in the <Link> component to specify the link destination?

a)

to

b)

source

c)

href

d)

destination

9.

What does CI mean in the context of CI/CD?

a)

Continuous Improvement

b)

Continuous Integration

c)

Comprehensive Integration

d)

Constant Implementation

10.

What is the main purpose of Jenkins in CI/CD?

a)

Build and Test Automation

b)

Version control

c)

Performance monitoring

d)

Project management

11.

What is a key benefit of implementing CI/CD?

a)

Reduction of hardware costs

b)

Improved code security

c)

Faster and more frequent delivery of updates

d)

Simplification of user management

12.

What does CD represent in CI/CD?

a)

Continuous Deployment

b)

Continuous Development

c)

Constant Deployment

d)

Continuous Deployment or Continuous Delivery

13.

What is the term for obtaining the latest source code and combining it with work in progress?

a)

Continuous integration

b)

Continuous deployment

c)

Continuous delivery

d)

Continuous construction

14.

Is Jenkins an open source tool?

a)

Yes

b)

No

15.

What is the command to start a local development server in Next.js?

a)

next start

b)

next dev

c)

npm run dev

d)

npm start

16.

Which Next.js tag is used to optimize images for the web?

a)

<Img>

b)

<Image>

c)

<Picture>

d)

<Photo>

17.

In Next.js, how do you handle 404 (Not Found) pages using the App Router?

a)

By creating a not-found.ts file in the app directory

b)

By defining a route in routes.js

c)

By setting up in next.config.js

d)

By using a middleware

18.

Which file is used to define a custom error boundary in Next.js using the App Router?

a)

app/error.ts

b)

pages/_error.ts

c)

app/_app.ts

d)

pages/_document.ts

19.

How do you create nested routes in Next.js using the App Router?

a)

By creating nested folders and adding page.ts files inside them in the app directory

b)

By defining nested routes in next.config.js

c)

By creating nested route definitions in routes.json

d)

By adding nested route components in app/_app.ts

20.

How do you add metadata to your Next.js pages using the App Router?

a)

By creating a metadata.ts file in the app directory

b)

By using a special metadata field in page.ts files

c)

By defining metadata in next.config.js

d)

By adding a metadata section in the layout.ts file or static page.ts file

21.

How do you configure global CSS in Next.js using the App Router?

a)

By importing the CSS file in pages/_app.ts

b)

By importing the CSS file in next.config.js

c)

By adding a globalStyles field in the app/config.ts

d)

By importing the CSS file in app/layout.ts

22.

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

a)

By renaming JavaScript files to .ts or .tsx

b)

By adding a typescript key in next.config.ts

c)

By adding a tsconfig.json file to the root directory

d)

By creating a types.ts file in the app directory