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

Answer : C

Explanation

Both of the above options are correct.

Q 2 - Which of the following class styles a table with borders surrounding every element and rounded corners around the entire table?

A - .table

B - .table-striped

C - .table-bordered

D - .table-hover

Answer : C

Explanation

By adding the .table-bordered class, you will get borders surrounding every element and rounded corners around the entire table.

Q 3 - Which of the following bootstrap style of button indicates a successful or positive action?

A - .btn

B - .btn-primary

C - .btn-success

D - .btn-info

Answer : C

Explanation

.btn-success − Indicates a successful or positive 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 can be used to to get different size items of .pagination?

A - .lg, .sm

B - .pagination-lg, .pagination-sm

C - .menu-lg, .menu-sm

D - None of the above.

Answer : B

Explanation

.pagination-lg, .pagination-sm − Use these classes to get different size items.

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

Explanation

data-title − Sets the default title value if the title attribute isn't present.

Answer : C

Explanation

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

bootstrap_questions_answers.htm
Advertisements