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

A - .btn-warning

B - .btn-danger

C - .btn-link

D - .btn-info

Answer : B

Explanation

.btn-danger − Indicates a dangerous or potentially negative action.

Q 4 - Which of the following bootstrap style of button makes the button size large?

A - .btn-lg

B - .btn-sm

C - .btn-xs

D - .btn-block

Answer : A

Explanation

.btn-lg − This makes the button size large.

Q 5 - Which of the following bootstrap styles are used to create a tabbed navigation?

A - .nav, .nav-tabs

B - .nav, .nav-pills

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

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

Answer : A

Explanation

To create a tabbed navigation .menu: Start with a basic unordered list with the base class of .nav and add class .nav-tabs.

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

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

bootstrap_questions_answers.htm
Advertisements