bootstrap banner

Bootstrap Multiple Choice Questions (MCQs) and Answers

Master Bootstrap with Practice MCQs. Explore our curated collection of Multiple Choice Questions. Ideal for placement and interview preparation, our questions range from basic to advanced, ensuring comprehensive coverage of Bootstrap concepts. Begin your placement preparation journey now!

Q31

Q31 What does the 'text-' prefix in Bootstrap's utility classes generally modify?

A

Font size

B

Text alignment

C

Font style

D

Text decoration

Q32

Q32 Which utility class is used for changing the display property of an element to 'none' in Bootstrap?

A

.d-none

B

.display-none

C

.hide

D

.invisible

Q33

Q33 How would you apply a Bootstrap class to add a small space between two buttons?

A

.m-1

B

.m-2

C

.m-3

D

.m-4

Q34

Q34 Which Bootstrap utility class adds a shadow to a box?

A

.box-shadow

B

.shadow

C

.drop-shadow

D

.shadow-sm

Q35

Q35 What class would you use to make a list item non-bulleted in a Bootstrap list group?

A

.list-unstyled

B

.no-bullets

C

.list-inline

D

.list-horizontal

Q36

Q36 Which class combination is used to set text color to primary and background color to secondary in Bootstrap?

A

.text-primary .bg-secondary

B

.text-color-primary .background-secondary

C

.color-primary .bg-color-secondary

D

.primary-text .secondary-bg

Q37

Q37 If an element with .text-danger is not displaying red text as expected, what should be checked first?

A

CSS file linkage

B

Overriding styles

C

Browser compatibility

D

Font settings

Q38

Q38 When a utility class for margin isn't affecting an element as expected, what is a likely cause?

A

Incorrect class name

B

Insufficient specificity

C

Colliding CSS

D

All of the above

Q39

Q39 What is the main method for customizing Bootstrap’s visual design?

A

Overriding existing CSS

B

Editing the source code

C

Using inline styles

D

Using CSS preprocessors

Q40

Q40 How does creating a custom theme differ from modifying Bootstrap’s core files?

A

It's more stable across updates

B

It requires more coding skills

C

It's less flexible

D

It's cheaper

Q41

Q41 In what file type is Bootstrap's source code primarily written?

A

.css

B

.scss

C

.js

D

.html

Q42

Q42 What is the advantage of using Bootstrap’s built-in mixins for customizations?

A

Faster compilation

B

Less code redundancy

C

Easier debugging

D

All of the above

Q43

Q43 What is a critical consideration when upgrading Bootstrap versions in a heavily customized project?

A

Checking for deprecated features

B

Rewriting all custom code

C

Reducing page size

D

Increasing compatibility with browsers

Q44

Q44 Which Bootstrap variable can be adjusted to change the default padding for modals?

A

$modal-padding

B

$modal-margin

C

$modal-spacing

D

$modal-position

Q45

Q45 How do you override the default color palette in Bootstrap using SCSS?

A

Define new values before importing Bootstrap

B

Overwrite values in a new file

C

Change colors in the CSS file

D

Use !important in CSS

Q46

Q46 What SCSS function is crucial for adding new utilities with custom properties in Bootstrap?

A

@include

B

@function

C

@extend

D

@import

Q47

Q47 If changes to Bootstrap's SCSS variables do not take effect, what is the first thing you should check?

A

File import order

B

SCSS compiler settings

C

Syntax errors

D

All of the above

Q48

Q48 What should you verify if a Bootstrap customization does not display correctly on a webpage?

A

The CSS file is linked correctly

B

The customization uses correct syntax

C

The browser cache has been cleared

D

All of the above

Q49

Q49 How can you troubleshoot a custom Bootstrap build that fails to compile?

A

Check for missing dependencies

B

Review SCSS syntax errors

C

Ensure file paths are correct

D

All of the above

Q50

Q50 What is the primary use of Bootstrap's Modal component?

A

To navigate between pages

B

To display interactive alerts

C

To organize content

D

To display additional information in a popup

Q51

Q51 Which component is used to create a group of buttons that can toggle between active and inactive states?

A

Navs

B

Button group

C

Input group

D

Dropdown

Q52

Q52 What does the Bootstrap Carousel component do?

A

Rotates text

B

Displays a series of images or slides in a slideshow

C

Collapses content

D

Expands forms

Q53

Q53 In Bootstrap, what is the purpose of the Jumbotron component?

A

To enhance navigation

B

To increase font size

C

To create a lightweight container for calling extra attention to content

D

To display modal dialogs

Q54

Q54 Which Bootstrap component is best suited for displaying a list of items with contextual background colors?

A

List group

B

Progress bar

C

Tooltip

D

Table

Q55

Q55 How do Bootstrap Navs differ from Tabs?

A

Navs are always vertical, while Tabs are horizontal

B

Navs offer more style options

C

Tabs are clickable, while Navs are not

D

Navs are for navigation, Tabs are for content organization

Q56

Q56 Which Bootstrap component should be used for complex form layouts that require inline arrangement of form controls?

A

Forms

B

Grid system

C

Input group

D

Card

Q57

Q57 What is the function of Bootstrap's Scrollspy component?

A

To add animations to scrolling

B

To update links in a navigation list based on scroll position

C

To hide elements on scroll

D

To lock an element at a specific scroll position

Q58

Q58 What class is used to make a navigation bar sticky at the top of the viewport in Bootstrap?

A

.fixed-top

B

.sticky-top

C

.top-nav

D

.nav-fixed

Q59

Q59 How do you create a basic alert box in Bootstrap that can be dismissed by the user?

A

Use .alert with .alert-dismissible

B

Use .alert with .close

C

Use .alert with .alert-close

D

Use .alert with .dismiss-alert

Q60

Q60 What Bootstrap class is needed to create a dropdown menu within a navigation bar?

A

.dropdown

B

.drop-nav

C

.navbar-dropdown

D

.nav-drop

ad verticalad vertical
ad