Question 1
When using the Next.js 'Image' component with a remote URL, which of the following is a mandatory step to avoid errors?
Wrapping the 'Image' component in a 'div' with 'position: relative'
Using the 'loader' prop with a custom function
Adding the 'remote' property to the 'Image' component
Configuring the remote domain in 'next.config.js'
Question 2
For a locally stored image, when can you omit the 'width' and 'height' props on the 'Image' component?
When you statically import the image file
When the image is in the 'public' folder and referenced with a static path
When the 'layout' is set to 'fill'
When the image is an SVG file
Question 3
If you set the 'layout' prop to 'fill', what CSS property is required on the parent element of the 'Image' component?
'display: flex'
'aspect-ratio: 1'
'position: relative'
'overflow: hidden'
Question 4
Which of the following is NOT a direct benefit of Next.js's built-in image optimization?
Automatic image resizing for different viewports
Automatic alt text generation for images
Improved Core Web Vitals
Automatic conversion to modern image formats like WebP
Question 5
To add a favicon to a Next.js static site, the simplest method that requires no code changes is to place the 'favicon.ico' file in which directory?
The 'public' directory
The 'styles' directory
The 'src' directory
The 'pages' directory
Question 6
If you want to add a favicon with a custom file name (e.g., 'my-icon.png'), what is the correct way to link it in your Next.js application?
import Head from 'next/head';
Place 'my-icon.png' in the 'public' folder and rename it to 'favicon.ico'
import Image from 'next/image';
In 'next.config.js', add: images: { favicon: '/my-icon.png' }
Question 7
When is it appropriate to use the 'unoptimized' prop on the Next.js 'Image' component?
When you are using a local image that is smaller than 10KB
When you want to serve an image from a remote URL
When you want to serve the original, unmodified image
When you are using an SVG image
Question 8
Which 'layout' prop value makes the 'Image' component scale up and down with the viewport width, while maintaining its aspect ratio?
fill
intrinsic
responsive
fixed
Question 9
To use a custom image loader function, you can define it in 'next.config.js' or pass it directly to the 'Image' component's 'loader' prop. Which approach takes precedence?
It depends on the order they are defined in
Neither, you can only use one approach at a time
The loader defined in 'next.config.js'
The loader passed to the 'loader' prop
Question 10
Why is it recommended to use the Next.js 'Image' component over the standard '' tag?
Because it automatically provides lazy loading, responsive images, and other performance optimizations
Because it's easier to style with CSS-in-JS
Because it supports more image formats
Because it has better accessibility features
There are 10 questions to complete.