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 styles a table as a nice basic table with just some light padding and horizontal dividers?

A - .table

B - .table-striped

C - .table-bordered

D - .table-hover

Answer : A

Explanation

If you want a nice, basic table style with just some light padding and horizontal dividers, add the base class of .table to any table.

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 image gives the image rounded corners?

A - .img-rounded

B - .img-circle

C - .img-thumbnail

D - None of the above.

Answer : A

Explanation

.img-rounded − adds border-radius:6px to give the image rounded corners.

Q 5 - Which of the following bootstrap style makes a set of buttons appear vertically stacked rather than horizontally?

A - .btn-group

B - .btn-toolbar

C - .btn-group-lg

D - .btn-group-vertical

Answer : C

Explanation

.btn-group-vertical − This class make a set of buttons appear vertically stacked rather than horizontally.

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

Explanation

Both of the above options are correct.

Answer : C

Explanation

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

bootstrap_questions_answers.htm
Advertisements