Search Header Logo
Modern HTML and CSS from the Beginning (Including Sass) - Grid Basics & Columns

Modern HTML and CSS from the Beginning (Including Sass) - Grid Basics & Columns

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of setting 'display: grid' on a parent element?

To make the parent element a flex container

To convert child elements into grid items

To apply a default margin to child elements

To automatically align text within the parent

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property is used to define the number and width of columns in a grid?

grid-template-rows

grid-auto-flow

grid-gap

grid-template-columns

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'auto' value do when used in grid-template-columns?

Adds a margin between grid items

Aligns the grid items to the center

Automatically adjusts the column width to fill the container

Sets the column width to a fixed size

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you repeat a column width multiple times in a grid layout?

By setting 'grid-auto-columns'

Using the 'repeat' function

By applying 'grid-template-rows'

Using 'grid-gap'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What unit is commonly used in grid layouts to represent a fraction of the available space?

px

rem

em

fr

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property is used to add space between grid items without using margins?

grid-auto-flow

grid-gap

grid-template-rows

grid-template-areas

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you create a simple layout with a main area and a sidebar using CSS Grid?

By using 'display: flex' and setting flex-direction

By setting 'grid-template-areas'

By defining grid-template-columns with different 'fr' values

By applying 'grid-auto-flow: dense'

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?