11.) What attribute is used to enable Bootstrap tooltips?
A) data-bs-toggle=”popover”
B) data-bs-tooltip=”enable”
C) tooltip-enable
D) data-bs-toggle=”tooltip”
12.) Which Bootstrap component provides a sliding image gallery?
A) Offcanvas
B) Carousel
C) Modal
D) Popover
13.) How do you initialize a Bootstrap modal using JavaScript?
A) new bootstrap.Modal(‘#myModal’)
B) initialize.Modal(‘#myModal’)
C) Modal.init(‘#myModal’)
D) activate.Modal(‘#myModal’)
14.) Which method manually hides a popover?
A) optidismissPopover()on1
B) popover.hide()
C) closePopover()
D) disablePopover()
15.) What class is required for a modal to fade in with animation?
A) modal-animate
B) animated-modal
C) fade
D) bs-animation
16.) Which Bootstrap component is used for lightweight notifications?
A) Toast
B) Alert
C) Popover
D) ScrollSpy
17.) How can you trigger a Bootstrap toast manually using JavaScript?
A) toast.activate()
B) bootstrap.Toast(‘#myToast’).show()
C) toast.start(‘#myToast’)
D) new bootstrap.Toast(‘#myToast’).show()
18.) Which JavaScript method is used to dispose of a Bootstrap component?
A) destroy()
B) dispose()
C) remove()
D) delete()
19.) What component updates navigation links dynamically based on scroll position?
A) Dropdown
B) Modal
C) ScrollSpy
D) Offcanvas
20.) What attribute is used to activate ScrollSpy?
A) data-bs-scroll=”spy”
B) scroll-enable
C) activate-scrollspy
D) data-bs-spy=”scroll”
Related