Bootstrap - Mock Test



This section presents you various set of Mock Tests related to Bootstrap Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.

Questions and Answers

Bootstrap Mock Test II

Q 1 - Which of the following bootstrap style of button indicates a successful or positive action?

A - .btn

B - .btn-primary

C - .btn-success

D - .btn-info

Answer : C

Explanation

.btn-success − Indicates a successful or positive action.

Q 2 - Which of the following bootstrap style of button represents a contextual button for informational alert messages?

A - .btn

B - .btn-primary

C - .btn-success

D - .btn-info

Answer : D

Explanation

.btn-info − Contextual button for informational alert messages.

Q 3 - Which of the following bootstrap style of button indicates caution should be taken with this action?

A - .btn-warning

B - .btn-danger

C - .btn-link

D - .btn-info

Answer : A

Explanation

.btn-warning − Indicates caution should be taken with this action.

Q 4 - Which of the following bootstrap style of button indicates a dangerous or potentially negative action?

A - .btn-warning

B - .btn-danger

C - .btn-link

D - .btn-info

Answer : B

Explanation

.btn-danger − Indicates a dangerous or potentially negative action.

Q 5 - Which of the following bootstrap style of button deemphasize a button by making it look like a link while maintaining button behavior?

A - .btn-warning

B - .btn-danger

C - .btn-link

D - .btn-info

Answer : C

Explanation

.btn-link − Deemphasize a button by making it look like a link while maintaining button behavior.

Q 6 - Which of the following bootstrap style of button makes the button size large?

A - .btn-lg

B - .btn-sm

C - .btn-xs

D - .btn-block

Answer : A

Explanation

.btn-lg − This makes the button size large.

Q 7 - Which of the following bootstrap style of button makes the button size small?

A - .btn-lg

B - .btn-sm

C - .btn-xs

D - .btn-block

Answer : B

Explanation

.btn-sm − This makes the button size small.

Q 8 - Which of the following bootstrap style of button makes the button size extra small?

A - .btn-lg

B - .btn-sm

C - .btn-xs

D - .btn-block

Answer : C

Explanation

.btn-xs − This makes the button size extra small.

Q 9 - Which of the following bootstrap style of button creates block level buttons that span the full width of a parent?

A - .btn-lg

B - .btn-sm

C - .btn-xs

D - .btn-block

Answer : D

Explanation

.btn-block − This creates block level buttons that span the full width of a parent.

Q 10 - Which of the following bootstrap style of image gives the image rounded corners?

A - .img-rounded

B - .img-circle

C - .img-thumbnail

D - None of the above.

Answer : A

Explanation

.img-rounded − adds border-radius:6px to give the image rounded corners.

Q 11 - Which of the following bootstrap style of image makes the entire image round by adding border-radius:500px?

A - .img-rounded

B - .img-circle

C - .img-thumbnail

D - None of the above.

Answer : B

Explanation

.img-circle − makes the entire image round by adding border-radius:500px.

Q 12 - Which of the following bootstrap style of image adds a bit of padding and a gray border?

A - .img-rounded

B - .img-circle

C - .img-thumbnail

D - None of the above.

Answer : C

Explanation

.img-thumbnail − adds a bit of padding and a gray border.

Q 13 - Which of the following bootstrap style is used for a basic button group?

A - .btn-group

B - .btn-toolbar

C - .btn-group-lg

D - .btn-group-vertical

Answer : A

Explanation

.btn-group − This class is used for a basic button group. Wrap a series of buttons with class .btn in .btn-group.

Q 14 - Which of the following bootstrap style helps to combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components?

A - .btn-group

B - .btn-toolbar

C - .btn-group-lg

D - .btn-group-vertical

Answer : B

Explanation

.btn-toolbar − This helps to combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.

Q 15 - Which of the following bootstrap style can be applied to button group instead of resizing each button?

A - .btn-group

B - .btn-toolbar

C - .btn-group-lg

D - .btn-group-vertical

Answer : C

Explanation

.btn-group-lg − This class can be applied to button group instead of resizing each button.

Q 16 - Which of the following bootstrap style makes a set of buttons appear vertically stacked rather than horizontally?

A - .btn-group

B - .btn-toolbar

C - .btn-group-lg

D - .btn-group-vertical

Answer : C

Explanation

.btn-group-vertical − This class make a set of buttons appear vertically stacked rather than horizontally.

Q 17 - Which of the following bootstrap styles are used to create a tabbed navigation?

A - .nav, .nav-tabs

B - .nav, .nav-pills

C - .nav, .nav-pills, .nav-stacked

D - .nav, .nav-tabs, .nav-justified

Answer : A

Explanation

To create a tabbed navigation .menu: Start with a basic unordered list with the base class of .nav and add class .nav-tabs.

Q 18 - Which of the following bootstrap styles are used to create a pills navigation?

A - .nav, .nav-tabs

B - .nav, .nav-pills

C - .nav, .nav-pills, .nav-stacked

D - .nav, .nav-tabs, .nav-justified

Answer : B

Explanation

To create a pills navigation .menu: Start with a basic unordered list with the base class of .nav and add class .nav-pills.

Q 19 - Which of the following bootstrap styles are used to create a vertical pills navigation?

A - .nav, .nav-tabs

B - .nav, .nav-pills

C - .nav, .nav-pills, .nav-stacked

D - .nav, .nav-tabs, .nav-justified

Answer : C

Explanation

You can stack the pills vertically using the class ..nav-stacked along with the classes: .nav, .nav-pills.

Q 20 - Which of the following bootstrap styles are used to create a justified tabs navigation?

A - .nav, .nav-tabs

B - .nav, .nav-pills

C - .nav, .nav-pills, .nav-stacked

D - .nav, .nav-tabs, .nav-justified

Answer : D

Explanation

You can make tabs or pills of equal widths as of their parent at screens wider than 768px using class .nav-justified along with .nav, .nav-tabs or .nav, .nav-pills respectively. On smaller screens, the .nav links are stacked.

Q 21 - Which of the following bootstrap styles are used to create a disabled tab in tabs navigation?

A - .nav, .nav-tabs, .disabled

B - .nav, .nav-tabs

C - .nav, .nav-pills, .nav-disabled

D - .nav, .nav-pills

Answer : A

Explanation

For each of the .nav classes, if you add the .disabled class, it will create a gray link that also disables the :hover state.

Q 22 - Which of the following bootstrap styles are used to add a dropdown to a tab?

A - .nav, .nav-tabs, .menu

B - .nav, .nav-tabs, dropdown-.menu

C - .nav, .nav-pills, .dropdown

D - .nav, .nav-pills

Answer : B

Explanation

To add dropdowns to tab: Start with a basic unordered list with the base class of .nav; Add the class .nav-tabs.; Now add an unordered list with a .dropdown-menu class.

Q 23 - Which of the following bootstrap styles are used to add a dropdown to a pills?

A - .nav, .nav-tab, .menu

B - .nav, .nav-pills, .dropdown-.menu

C - .nav, .nav-pills, .dropdown

D - .nav, .nav-pills

Answer : B

Explanation

To add dropdowns to tab: Start with a basic unordered list with the base class of .nav; Add the class .nav-pills.; Now add an unordered list with a .dropdown-menu class.

Q 24 - Which of the following bootstrap style is used to add button to .navbar?

A - .navbar-.btn

B - ..btn

C - .form-.btn

D - None of the above.

Answer : A

Explanation

You can add buttons using class .navbar-.btn to <button> elements not residing in a <form> to vertically center them in the .navbar. ..navbar-.btn can be used on <a> and <input> elements.

Q 25 - Which of the following bootstrap style is used to add text to .navbar?

A - .navbar-text

B - .text

C - .form-text

D - None of the above.

Answer : A

Explanation

To wrap strings of text in an element use the class .navbar-text. This is usually used with <p> tag for proper leading and color.

Answer Sheet

Question Number Answer Key
1 C
2 D
3 A
4 B
5 C
6 A
7 B
8 C
9 D
10 A
11 B
12 C
13 A
14 B
15 C
16 C
17 A
18 B
19 C
20 D
21 A
22 B
23 B
24 A
25 A
bootstrap_questions_answers.htm
Advertisements