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 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 class is required to be added to form tag to make it inline?

A - .inline

B - .form-inline

C - .horizontal

D - None of the above.

Answer : B

Explanation

To create a form where all of the elements are inline, left aligned and labels are alongside, add the class .form-inline to the <form> tag.

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 styles are used to create a justified tabs navigation?

A - .nav, .nav-tabs

B - .nav, .nav-pills

C - .nav, .nav-pills, .nav-stacked

D - .nav, .nav-tabs, .nav-justified

Answer : D

Explanation

You can make tabs or pills of equal widths as of their parent at screens wider than 768px using class .nav-justified along with .nav, .nav-tabs or .nav, .nav-pills respectively. On smaller screens, the .nav links are stacked.

Q 6 - Which of the following bootstrap style is to be used if you want to create an inverted .navbar with a black background and with white text?

A - .navbar-reverse

B - .navbar-inverse

C - .navbar-inverted

D - None of the above.

Answer : B

Explanation

To create an inverted .navbar with a black background and with white text, simply add the .navbar-inverse class to the ..navbar class.

Q 7 - Which of the following bootstrap style can be used to get a muted look on a pager buttons?

A - .pager-disabled

B - .disabled

C - .link-disabled

D - None of the above.

Answer : B

Explanation

.disabled − Add this class to get a muted look.

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 tooltip (i.e., top|bottom|left|right|auto).

Answer : B

Explanation

data-html − Inserts HTML into the popover. If false, jQuery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.


bootstrap_questions_answers.htm

Advertisements