Bootstrap - Online Quiz


Advertisements

Following quiz provides Multiple Choice Questions (MCQs) related to Bootstrap Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 2 - Which of the following class applies the hover color to a particular row or cell of a table?

A - .active

B - .success

C - .warning

D - .danger

Answer : A

Explanation

.active − Applies the hover color to a particular row or cell.

Answer : C

Explanation

Both of the above options are correct.

Q 4 - 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 5 - 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 6 - Which of the following bootstrap style is to be used if you want to create a .navbar that scrolls with the page?

A - .navbar-static-top

B - .navbar-fixed

C - .navbar-fixed-top

D - None of the above.

Answer : A

Explanation

To create a .navbar that scrolls with the page, add the ..navbar-static-top class. This class does not require adding the padding to the <body>.

Q 7 - Which of the following bootstrap style can be used to align .pager buttons?

A - .pager-previous, .pager-next

B - .previous, .next

C - .link-previous, .link-next

D - None of the above.

Answer : B

Explanation

.previous, .next − Use class .previous to left align and .next to right-align the links.

Q 8 - Which of the following class can be used to add a footer to a panel?

A - .panel-footer

B - .footer

C - .panel

D - None of the above.

Answer : A

Explanation

You can add footers to panels, by wrapping buttons or secondary text in a <div> containing class .panel-footer.

Answer : C

Explanation

data-placement − Specifies how to position the popover (i.e., top|bottom|left|right|auto).

bootstrap_questions_answers.htm
Advertisements