11.) What does the “defer” attribute do when loading Bootstrap JavaScript?
A) Prevents the script from loading
B) Loads the script after the page has fully loaded
C) Ensures the script executes immediately
D) Removes unused JavaScript
12.) What is the key advantage of using Bootstrap SCSS instead of CSS?
A) It reduces file size
B) It allows customization before compilation
C) It speeds up Bootstrap’s JavaScript execution
D) It automatically compresses CSS
13.) How does using Bootstrap’s grid system improve performance?
A) Reduces the need for custom layouts
B) Requires additional JavaScript
C) Loads images automatically
D) Makes pages heavier
14.) Which Bootstrap feature helps reduce layout shifts (CLS) in performance testing?
A) alt attributes on images
B) Explicitly setting width and height for images
C) Using Bootstrap grid classes
D) Avoiding JavaScript
15.) How can Bootstrap tooltips be optimized for performance?
A) Enable tooltips only when necessary
B) Load tooltips using an external library
C) Keep all tooltips permanently visible
D) Remove tooltip JavaScript from Bootstrap
16.) What is a common performance issue when using Bootstrap carousels?
A) They load all images at once
B) They cannot be customized
C) They do not work on mobile
D) They reduce JavaScript execution speed
17.) How can Bootstrap tables be optimized for better performance?
A) Remove borders from tables
B) Use pagination instead of displaying large datasets
C) Convert tables into images
D) Use multiple smaller tables
18.) What is the recommended way to improve page speed when using Bootstrap?
A) Load Bootstrap JS before the CSS
B) Use inline CSS instead of external files
C) Load CSS first, then defer JavaScript
D) Avoid using the Bootstrap grid system
19.) How can Bootstrap’s utility classes reduce additional CSS file size?
A) By automatically compressing files
B) By providing predefined styles that eliminate custom CSS
C) By replacing JavaScript components
D) By converting styles into SCSS
20.) What is the impact of using Google Fonts in a Bootstrap project?
A) Improves SEO rankings
B) Reduces the need for Bootstrap classes
C) Loads faster than system fonts
D) Increases load time if not optimized
Related