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 stripes on rows?

A - .table

B - .table-striped

C - .table-bordered

D - .table-hover

Answer : B

Explanation

By adding the .table-striped class, you will get stripes on rows within the <tbody>.

Q 3 - Which of the following bootstrap style of button provides extra visual weight and identifies the primary action in a set of buttons?

A - .btn

B - .btn-primary

C - .btn-success

D - .btn-info

Answer : B

Explanation

.btn-primary − Provides extra visual weight and identifies the primary action in a set of buttons.

Q 4 - 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 5 - 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.

Q 6 - Which of the following bootstrap style is used to create a .breadcrumb?

A - .breadcrumb

B - .navbar

C - .menu

D - None of the above.

Answer : A

Explanation

A .breadcrumb in Bootstrap is simply an unordered list with a class of .breadcrumb. The separator is automatically added by CSS (bootstrap.min.css).

Q 7 - Which of the following bootstrap styles can be used to create a default progress bar?

A - .progress, .progress-bar

B - .nav-progress

C - .link-progress-bar

D - None of the above.

Answer : A

Explanation

To create a basic progress bar: Add a <div> with a class of .progress. Next, inside the above <div>, add an empty <div> with a class of .progress-bar.

Answer : C

Explanation

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

Answer : C

Explanation

Both of the above options are correct.

bootstrap_questions_answers.htm
Advertisements