Bootstrap’s JavaScript components help create interactive and responsive UIs. Understanding modals, tooltips, popovers, carousels, dropdowns, and alerts is essential for web development.
With these MCQs, you will be covered the key Bootstrap JavaScript components used for modals, tooltips, carousels, popovers, accordions, dropdowns, offcanvas menus, and more. Understanding these will boost your interview preparation and make you more confident in Bootstrap development.
1.) What is required for Bootstrap JavaScript components to work?
2.) Which Bootstrap component automatically dismisses content when clicked outside?
3.) Which class triggers a modal when clicking a button?
4.) What is the default position of a tooltip?
5.) How do you enable tooltips in Bootstrap 5?
6.) Which component allows auto-sliding images?
7.) What does data-bs-slide=”next” do?
8.) How do you initialize a popover?
9.) Which Bootstrap component collapses sections dynamically?
10.) Which Bootstrap component allows the creation of collapsible sections?