Bootstrap - Online Quiz



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 styles a table as a nice basic table with just some light padding and horizontal dividers?

A - .table

B - .table-striped

C - .table-bordered

D - .table-hover

Answer : A

Explanation

If you want a nice, basic table style with just some light padding and horizontal dividers, add the base class of .table to any table.

Q 3 - 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 4 - 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 5 - 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 6 - Which of the following bootstrap style is to be used if you want the .navbar fixed to the top of the page?

A - .navbar-top

B - .navbar-fixed

C - .navbar-fixed-top

D - None of the above.

Answer : C

Explanation

If you want the .navbar fixed to the top of the page, add class .navbar-fixed-top to the .navbar class.

Answer : C

Explanation

To create a striped progress bar: Add a <div> with a class of .progress and .progress-striped. Next, inside the above <div>, add an empty <div> with a class of .progress-bar and class progress-bar-* where * could be success, info, warning, danger.

Answer : D

Explanation

data-selector − If a selector is provided, tooltip objects will be delegated to the specified targets.

Answer : C

Explanation

Both of the above options are correct.

bootstrap_questions_answers.htm
Advertisements