wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSS Day-4

Total questions: 25

Worksheet time: 16mins

Name
Class
Date
1.

Which class is used to create a Bootstrap button?

a)

.btn-group

b)

.button

c)

.btn

d)

.btns

2.

Which component is used to display alert messages?

a)

Badge

b)

Alert

c)

Modal

d)

Toast

3.

Which Bootstrap class is used to make text bold?

a)

.text-bold

b)

.fw-bold

c)

.font-bold

d)

.bold-text

4.

Which class is used to align text to the center?

(a)  

5.

Which class is used to display list items inline?

a)

.list-inline

b)

.inline-list

c)

.list-horizontal

d)

.list-row

6.

Which HTML tag is used for blockquotes?

a)

<quote>

b)

<block>

c)

<blockquote>

d)

<q>

7.

Which Bootstrap class is used to control font size responsively?

a)

.text-size-*

b)

.fs-*

c)

.font-*

d)

.text-font-*

8.

Which breakpoint represents small devices in Bootstrap?

a)

xs

b)

sm

c)

md

d)

lg

9.

How many columns are there in Bootstrap grid system?

a)

10

b)

11

c)

12

d)

16

10.

Which class is used to auto-size columns?

a)

.col-auto

b)

.col-size

c)

.col-fit

d)

.auto-col

11.

Which class arranges flex items vertically?

(a)  

12.

Which class vertically centers flex items?

a)

.align-items-center

b)

.justify-content-center

c)

.text-center

d)

.flex-center

13.

Bootstrap grid layouts are responsive using (a)   .

14.

Which class is used to group label and input together?

a)

.form-group

b)

.input-group

c)

.form-set

d)

.group-form

15.

What is the correct way to override a Bootstrap style?

a)

Edit the bootstrap.min.css file directly

b)

Write custom CSS after the Bootstrap inclusion

c)

Use !important on every HTML tag

d)

Bootstrap styles cannot be overrid

16.

To disable an input field, use (a)   attribute.

17.

Which layout places labels and inputs in the same row?

a)

Vertical form

b)

Inline form

c)

Horizontal form

d)

Floating form

18.

Which class was used to create inline forms in Bootstrap 4?

a)

.form-row

b)

.form-inline

c)

.d-inline

d)

.inline-form

19.

Inline forms display form elements in a (a)   line.

20.

Which class shows a valid input state in Bootstrap

a)

.valid

b)

.is-valid

c)

.input-valid

d)

.form-valid

21.

Which class is added after form submission to show validation result?

a)

.needs-validation

b)

.validated

c)

.was-validated

d)

.show-validation

22.

Which class is applied to a form input to show it has failed validation?

(a)  

23.

Which utility class hides an element on all screens but shows it only on medium and larger devices?

a)

.d-none .d-md-block

b)

.hide-sm .show-md

c)

.md-only

d)

.visible-md

24.

Which variable controls primary theme color in Bootstrap?

a)

$theme-color

b)

$primary-color

c)

$theme-colors

d)

$brand-color

25.

What attribute is used to trigger a modal?

(a)