Free Practice Quiz Question List

4 Responsive Web Design Online Quiz Questions

Use this free practice quiz with 20 questions to review 4 Responsive Web Design, test your knowledge, and prepare for your next test or exam.

20 questions
01
True or false
1 point

True or false: A responsive page should require a separate version for each device size.

  1. A

    True

  2. B

    False

02
Choose one
1 point

Which viewport element setting helps a mobile browser lay out a page using the device's CSS-pixel width?

  1. A

    <meta name="viewport" content="width=100%; initial-scale=1">

  2. B

    <meta name="viewport" content="width=device-width, initial-scale=1">

  3. C

    <meta name="viewport" content="device-width=width, scale=1">

  4. D

    <meta name="viewport" content="width=device-width, maximum-scale=1">

03
Fill in the blank
1 point

The viewport is the of the browser window available for page content.

04
Written response
1 point

What CSS feature applies styles only when a condition, such as a viewport-width condition, is met?

05
Choose one
1 point

You need to arrange navigation items in a single row. Which layout tool is especially useful for arranging items in one direction?

  1. A

    CSS Grid

  2. B

    Flexbox

  3. C

    A viewport meta element

  4. D

    A media query

06
Fill in the blank
1 point

A is a point at which a layout changes to better suit the available space.

07
Choose all
1 point

Which three CSS sizing approaches can help a layout use available space flexibly or avoid excessive width? Select all that apply.

  1. A

    Use percentage sizing where appropriate.

  2. B

    Use flexible grid units such as fr.

  3. C

    Give every content area a fixed pixel width.

  4. D

    Use a constraint such as max-width.

  5. E

    Prevent content from wrapping at every viewport width.

08
True or false
1 point

True or false: Ordinary text should generally reflow at a width equivalent to 320 CSS pixels without two-dimensional scrolling, although some content such as a wide data table may need it.

  1. A

    True

  2. B

    False

09
Written response
1 point

In the example page layout, what minimum viewport width in rem triggers the change from a single column to the wider layout?

10
Choose one
1 point

In the example page layout, what happens when the viewport reaches at least 50rem wide?

  1. A

    The sidebar is hidden at wider widths.

  2. B

    The main content and sidebar remain stacked at all widths.

  3. C

    The main content and sidebar appear side by side at widths of at least 50rem.

  4. D

    The layout changes to three equal-width columns.

11
Choose all
1 point

Which checks help evaluate a responsive page's usability across viewport sizes? Select all that apply.

  1. A

    Resize the browser and inspect both narrow and wide viewports.

  2. B

    Zoom in and check whether content remains usable.

  3. C

    Try navigating the page with a keyboard.

  4. D

    Look for clipped text, overlapping elements, tiny controls, or unintended horizontal scrolling.

  5. E

    Choose breakpoints to match particular device models.

  6. F

    Check that ordinary text reflows at a width equivalent to 320 CSS pixels without two-dimensional scrolling.

12
Open ended
1 point

You are planning a page with a main content area and a sidebar. Describe how you would make its layout responsive from narrow phones to wider screens, and name checks you would perform to evaluate its usability.

13
Choose one
1 point

Which CSS rule matches the material's approach for a centered text column that can grow on a large screen but stops at a readable width?

  1. A

    width: 70rem; margin-inline: auto;

  2. B

    width: min(100% - 2rem, 70rem); margin-inline: auto;

  3. C

    width: 100vw; margin-inline: 0;

  4. D

    width: 1000px; margin-inline: auto;

14
True or false
1 point

True or false: Providing an image's width and height attributes helps the browser reserve space while the image loads.

  1. A

    True

  2. B

    False

15
Choose one
1 point

Why should a responsive page include an appropriate viewport meta element in its head?

  1. A

    It forces every page to use a fixed width on all devices.

  2. B

    It tells mobile browsers to use the device's CSS-pixel width for the page layout.

  3. C

    It automatically switches the page to a desktop layout.

  4. D

    It prevents CSS media queries from running.

16
Choose one
1 point

A page's images and videos sometimes overflow their containers. Which CSS rule best applies the recommended starting fix?

  1. A

    img, video { width: 100vw; height: 100vh; }

  2. B

    img, video { min-width: 100%; height: auto; }

  3. C

    img, video { max-width: 100%; height: auto; }

  4. D

    img, video { max-height: 100%; width: auto; }

17
Choose one
1 point

You need to arrange a row of related controls along one direction. Which layout tool is specifically useful for arranging items in one direction?

  1. A

    Flexbox

  2. B

    CSS Grid

  3. C

    A viewport meta element

  4. D

    A media query

18
Written response
1 point

What is the name of the approach that starts with a simple layout for narrow screens and adds complexity when there is enough room?

19
Choose one
1 point

A page uses one grid column by default, then applies a two-column grid inside @media (min-width: 50rem). How should its main content and sidebar arrange themselves?

  1. A

    The main content and sidebar are side by side below 50rem and stacked above it.

  2. B

    The main content and sidebar are stacked below 50rem and side by side at and above 50rem.

  3. C

    The sidebar is hidden at and above 50rem.

  4. D

    The page uses two columns at every viewport width.

20
Written response
1 point

At what width, in CSS pixels, should content generally reflow without requiring two-dimensional scrolling to read ordinary text?