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 indicates a successful or positive action?

A - .active

B - .success

C - .warning

D - .danger

Answer : B

Explanation

.success − Indicates a successful or positive action.

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 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 5 - 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 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 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 : A

Explanation

data-backdrop − Specify static for a backdrop, if you don't want the modal to be closed when the user clicks outside of the modal.

Answer : A

Explanation

data-animation − Applies a CSS fade transition to the tooltip.

Answer : C

Explanation

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

bootstrap_questions_answers.htm
Advertisements