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 indicates a dangerous or potentially negative action?

A - .active

B - .success

C - .warning

D - .danger

Answer : D

Explanation

.danger − Indicates a dangerous or potentially negative action.

Q 3 - Which of the following class is required to be added to form tag to make it horizontal?

A - .horizontal

B - .form-horizontal

C - .horizontal

D - None of the above.

Answer : B

Explanation

To create a form that uses the horizontal layout, Add a class of .form-horizontal to the parent

element.

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 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 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).

Answer : A

Explanation

To create a progress bar with different styles: Add a <div> with a class of .progress. 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 : C

Explanation

Both of the above options are correct.

Answer : B

Explanation

data-trigger − Defines how the tooltip is triggered: click| hover | focus | manual. You may pass multiple triggers; separate them with a space.


bootstrap_questions_answers.htm

Advertisements
E-Books Store