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 can be used to create a responsive table?

A - .table-responsive

B - .responsive

C - .active

D - .table

Answer : A

Explanation

By wrapping any .table in .table-responsive class, you will make the table scroll horizontally up to small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables.

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 of button makes the button size extra small?

A - .btn-lg

B - .btn-sm

C - .btn-xs

D - .btn-block

Answer : C

Explanation

.btn-xs − This makes the button size extra 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 used to add standard links to .navbar?

A - .navbar-link

B - .link

C - .form-link

D - None of the above.

Answer : A

Explanation

If you want to use the standard links that are not within the regular .navbar navigation component, then use the class .navbar-link to add proper colors for the default and inverse .navbar options.

Q 7 - Which of the following bootstrap style can be used to align .pager buttons?

A - .pager-previous, .pager-next

B - .previous, .next

C - .link-previous, .link-next

D - None of the above.

Answer : B

Explanation

.previous, .next − Use class .previous to left align and .next to right-align the links.

Answer : C

Explanation

Both of the above options are correct.

Answer : C

Explanation

Both of the above options are correct.

Answer : C

Explanation

data-content − Default content value if data-content attribute isn't present.


bootstrap_questions_answers.htm

Advertisements