Bootstrap MCQs – Setup and Configuration

21.) How do you check the installed Bootstrap version using npm?

A) npm list bootstrap
B) npm check bootstrap
C) bootstrap -v
D) npm bootstrap –version

Answer: Option A

Explanation: Running npm list bootstrap in the terminal displays the installed Bootstrap version.

22.) What is the purpose of Bootstrap’s _root.scss file?

A) To define JavaScript components
B) To store global CSS variables
C) To manage animations
D) To control navigation menus

Answer: Option B

Explanation: The _root.scss file contains global CSS variables that define Bootstrap’s design system.

23.) How do you enable dark mode in Bootstrap 5?

A) Add data-theme=”dark” to
B) Use the .bg-dark class
C) Manually override CSS
D) Bootstrap 5 does not support dark mode

Answer: Option A

Explanation: Bootstrap 5 allows dark mode support using data-theme=”dark” on the element.

Leave a Reply

Your email address will not be published. Required fields are marked *