Bootstrap MCQs – Bootstrap with JavaScript Frameworks

21.) Which directive initializes modals in Bootstrap-Vue?

A) v-modal
B) v-b-modal
C) optibootstrap-modalon3
D) vue-modal

Answer: Option B

Explanation: The v-b-modal directive toggles Bootstrap modals in Vue applications.

22.) Which directive is used for Bootstrap dropdowns in Vue?

A) v-dropdown
B) vue-dropdown
C) b-dropdown
D) v-b-dropdown

Answer: Option D

Explanation: v-b-dropdown initializes Bootstrap dropdowns in Vue applications.

23.) Which Bootstrap-Vue component is used for tables?

A) <optitable-bn1>
B) <table-bootstrap>
C) <b-table>
D) <v-table>

Answer: Option C

Explanation: <b-table> is a Bootstrap-Vue component for creating responsive tables.

24.) How to integrate Bootstrap with React?

A) Install bootstrap and import in index.js
B) Use <link> tag in HTML
C) Use react-bootstrap only
D) Use Bootstrap with jQuery

Answer: Option A

Explanation: The correct way to integrate Bootstrap in React is to install it using npm and import it in index.js.

Leave a Reply

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