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!

Q1

Q1 Which framework is Bootstrap built on?

A

CSS

B

JavaScript

C

PHP

D

None of the above

Q2

Q2 What type of design approach does Bootstrap emphasize?

A

Content-first

B

Mobile-first

C

Graphics-first

D

None of the above

Q3

Q3 Bootstrap is mainly used for:

A

Server-side operations

B

Network security

C

Front-end development

D

Data analysis

Q4

Q4 Which company originally developed Bootstrap?

A

Google

B

Twitter

C

Facebook

D

Microsoft

Q5

Q5 Bootstrap's grid system is based on how many columns?

A

10

B

12

C

14

D

16

Q6

Q6 What is the purpose of the Bootstrap "container" class?

A

To enhance text readability

B

To manage server requests

C

To structure the layout

D

To style images

Q7

Q7 Which Bootstrap feature provides the ability to hide or show content based on screen size?

A

Data-binding

B

Responsive utilities

C

Ajax components

D

None of the above

Q8

Q8 What is the advantage of using Bootstrap's precompiled feature?

A

Faster server response

B

Easier debugging

C

Quicker deployment

D

Enhanced security

Q9

Q9 Which class adds a responsive horizontal margin in Bootstrap?

A

.mx-auto

B

.mx-responsive

C

.mx-width

D

.mx-fill

Q10

Q10 If a Bootstrap navbar is not responsive, what is a common oversight to check for?

A

Missing viewport meta tag

B

Incorrect CSS link

C

Outdated Bootstrap version

D

All of the above

Q11

Q11 What is the maximum number of columns in Bootstrap's grid system?

A

8

B

10

C

12

D

16

Q12

Q12 In Bootstrap's grid system, which class is used for medium-sized screens?

A

.col-md

B

.col-sm

C

.col-lg

D

.col-xs

Q13

Q13 What does the 'col-' prefix in Bootstrap indicate?

A

Column control

B

Container sizing

C

Color adjustment

D

Cursor change

Q14

Q14 What is the purpose of the Bootstrap class 'row'?

A

To align text

B

To create a horizontal grouping of columns

C

To set borders

D

To add padding

Q15

Q15 Which class adjusts the alignment of elements within a column in Bootstrap's grid system?

A

.align-items-start

B

.align-items-end

C

.justify-content-center

D

.row-align

Q16

Q16 How does the class 'col-6' affect the width of a column in a Bootstrap grid?

A

Spans half of the screen

B

Spans one-sixth of the screen

C

Spans six pixels wide

D

None of the above

Q17

Q17 What effect does 'offset-' have in Bootstrap's grid system?

A

Increases padding inside columns

B

Moves columns to the right

C

Changes the color of columns

D

Decreases column width

Q18

Q18 Which Bootstrap feature allows for columns to reorder based on screen size?

A

Flex properties

B

Push and pull classes

C

Responsive resets

D

Visibility classes

Q19

Q19 Which class is used to make a column span three equal parts of the container width on a large screen?

A

.col-lg-4

B

.col-lg-3

C

.col-lg-12

D

.col-lg-1

Q20

Q20 What class would you use to create four equal columns in a single row on medium screens?

A

.col-md-3

B

.col-md-4

C

.col-md-6

D

.col-md-12

Q21

Q21 To center a column in the grid, which utility class is necessary alongside the column size class?

A

.mx-auto

B

.center-block

C

.auto-margin

D

.align-self-center

Q22

Q22 Which class combination creates a responsive column that stacks on small screens and aligns side by side on medium screens?

A

.col-12 .col-md-6

B

.col-sm-12 .col-md-6

C

.col-xs-12 .col-lg-6

D

.col-6 .col-lg-12

Q23

Q23 If columns are unexpectedly stacking vertically on a medium device, what should be checked first?

A

Row configuration

B

Column class overlap

C

Container fluidity

D

Viewport settings

Q24

Q24 What might cause gaps between columns in a Bootstrap layout?

A

Missing 'row' class

B

Extra padding in columns

C

Improper use of .col classes

D

All of the above

Q25

Q25 How can unexpected horizontal scrolling be fixed in a Bootstrap grid layout?

A

Check container classes

B

Remove custom CSS

C

Reduce column counts

D

All of the above

Q26

Q26 A developer finds that columns break out of alignment when resizing the browser window.
What could be the issue?

A

Improper column reset

B

Non-responsive meta tag

C

Incorrect row setup

D

Misconfigured breakpoints

Q27

Q27 Which utility class in Bootstrap is used to hide an element on all device sizes?

A

.invisible

B

.hidden

C

.hide

D

.none

Q28

Q28 Bootstrap’s spacing utilities control which of the following aspects?

A

Margin and padding

B

Color and font

C

Position and display

D

Width and height

Q29

Q29 What is the purpose of the .text-center class in Bootstrap?

A

To center text horizontally

B

To center text vertically

C

To justify text

D

To highlight text

Q30

Q30 Which class adjusts the vertical alignment of elements in Bootstrap?

A

.align-baseline

B

.align-top

C

.align-middle

D

.align-bottom

ad verticalad vertical
ad