Bootstrap MCQ (Multiple Choice Questions)

This set of Multiple Choice Questions & Answers (MCQs) focuses on “Bootstrap”.

1. Which of the following class in Bootstrap is used to provide a responsive fixed width container?
a) .container-fixed
b) .container-fluid
c) .container
d) All of the above
View Answer

Answer: a
Explanation: A container is used in Bootstrap to specify the content’s margins that deal with your layout’s responsive characteristics. To generate enclosed content, use the .container class.

2. Which of the following class in Bootstrap is used to create a dropdown menu?
a) .dropdown
b) .select
c) .select-list
d) None of the above
View Answer

Answer: a
Explanation: A dropdown menu is indicated by the .dropdown class. Use a button or a link with the class of .data-toggle=”dropdown” attribute and the .dropdown-toggle attribute to open the dropdown menu. The .caret class adds a caret arrow icon () to the button, indicating that it’s a dropdown.

3. Which of the following bootstrap styles can be used to create a default progress bar?
a) .nav-progress
b) .link-progress-bar
c) .progress, .progress-bar
d) All of the mentioned
View Answer

Answer: c
Explanation: A progress bar can be used to display how far along in a process a user is. Progress bars are available in a variety of styles in Bootstrap. To create a default progress bar, add a .progress class to a <div> element
advertisement
advertisement

4. The Bootstrap grid system is based on how many columns?
a) 4
b) 6
c) 12
d) 8
View Answer

Answer: c
Explanation: The Bootstrap grid system is based on 12 columns. Users can use all 12 columns individually or can group the columns together to create wider columns.

5. Which plugin is used to cycle through elements, like a slideshow?
a) Carousel Plugin
b) Modal Plugin
c) Tooltip Plugin
d) None of the mentioned
View Answer

Answer: a
Explanation: Carousel Plugin is used to cycle through elements, like a slideshow.

6. Which of the following is correct about the data-animation Data attribute of the Popover Plugin?
a) Gives the popover a CSS fade transition
b) Inserts the popover with HTML
c) Indicates how the popover should be positioned
d) Assigns delegated tasks to the designated targets
View Answer

Answer: a
Explanation: The data-animation Data attribute of the Popover Plugin gives the popover a CSS fade transition.

7. The content must be placed within ________ in Bootstrap.
a) Rows
b) Containers
c) Columns
d) None of the mentioned
View Answer

Answer: c
Explanation: Content should be placed within columns, and only columns may be immediate children of rows. Predefined classes like .row and .col-sm-4 are available for quickly making grid layouts.
advertisement

8. Which of the following class applies hover color to a specific row or a cell?
a) Warning
b) Active
c) Success
d) Danger
View Answer

Answer: b
Explanation: To apply hover color to a particular table row or cell with Bootstrap, the .active class should be used.

9. Which of the following bootstrap version should be used to support IE9?
a) Bootstrap 1
b) Bootstrap 2
c) Bootstrap 3
d) Bootstrap 4
View Answer

Answer: c
Explanation: It’s the most stable version of bootstrap code and is still supported by their team for critical bug fixes and documentation changes.
advertisement

10. Which of the following is the default size of H3 bootstrap heading?
a) 12px
b) 24px
c) 36px
d) 48px
View Answer

Answer: b
Explanation: The h4 default font size is 1.5rem and in pixel, the default size is 24 px.

Sanfoundry Global Education & Learning Series – Javascript Programming.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.