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.
Q 1 - Which of the following is correct about Bootstrap Grid System?
A - Rows must be placed within a .container class for proper alignment and padding.
Answer : D
Explanation
All of the above options are correct.
Q 2 - Which of the following class styles a table with a light gray background to rows while the cursor hovers over them?
Answer : D
Explanation
By adding the .table-hover class, a light gray background will be added to rows while the cursor hovers over them.
Q 3 - Which of the following bootstrap style of button deemphasize a button by making it look like a link while maintaining button behavior?
Answer : C
Explanation
.btn-link − Deemphasize a button by making it look like a link while maintaining button behavior.
Q 4 - Which of the following bootstrap style of image adds a bit of padding and a gray border?
Answer : C
Explanation
.img-thumbnail − adds a bit of padding and a gray border.
Q 5 - Which of the following bootstrap styles are used to create a justified tabs navigation?
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 used to create a .breadcrumb?
Answer : A
Explanation
A .breadcrumb in Bootstrap is simply an unordered list with a class of .breadcrumb. The separator is automatically added by CSS (bootstrap.min.css).
Q 7 - Which of the following bootstrap style can be used to align .pager buttons?
A - .pager-previous, .pager-next
Answer : B
Explanation
.previous, .next − Use class .previous to left align and .next to right-align the links.
Q 8 - Which of the following is correct about data-keyboard Data attribute of Modal Plugin?
B - It closes the modal when escape key is pressed; set to false to disable.
Answer : B
Explanation
data-keyboard − Closes the modal when escape key is pressed; set to false to disable.
Q 9 - Which of the following is correct about data-remote Data attribute of Modal Plugin?
B - It closes the modal when escape key is pressed; set to false to disable.
Answer : D
Explanation
data-remote − Using the jQuery .load method, injects content into the modal body. If an href with a valid URL is added, it will load that content.
Q 10 - Which of the following is correct about data-selector Data attribute of Popover Plugin?
A - Applies a CSS fade transition to the popover.
C - Specifies how to position the popover (i.e., top|bottom|left|right|auto).
Answer : D
Explanation
data-selector − If a selector is provided, popover objects will be delegated to the specified targets.