Home »
MCQs
Bootstrap MCQs (Multiple-Choice Questions)
Bootstrap is a very popular, free to use, open source framework to develop web pages using HTML, JavaScript, and CSS. It is widely used to create responsive, mobile friendly web pages. It is very easy to use and helps in quick development of web pages.
Bootstrap MCQs
This section contains Bootstrap Multiple-Choice Questions with Answers. These Bootstrap MCQs are written for beginners as well as advanced. Practice these MCQs to enhance and test the knowledge of Bootstrap.
List of Bootstrap MCQs
The following are the popular MCQs on Bootstrap:
1. Bootstrap is free ____
- Back-end framework
- Database API for PHP
- Front-end framework
- All of the above
Answer: C) Front-end framework
Explanation:
Bootstrap is a free front-end framework that can be used for faster and easier web development.
Discuss this question
2. When was Bootstrap 5 released?
- 2018
- 2019
- 2020
- 2021
Answer: D) 2021
Explanation:
Bootstrap 5 was officially released on May 5, 2021 (Reference).
Discuss this question
3. Bootstrap includes ____.
- HTML
- CSS
- JS
- All of the above
Answer: D) All of the above
Explanation:
Bootstrap includes HTML, CSS, and JS to make the web pages responsive and simplify the development of informative web pages.
Discuss this question
4. What was the original name of Bootstrap?
- Twitter Blueprint
- Twitter Bootprint
- Twitter Styles
- Twitter Webprint
Answer: A) Twitter Blueprint
Explanation:
The original name of Bootstrap was Twitter Blueprint which was developed at Twitter as a framework to encourage consistency across internal tools.
Discuss this question
5. Who developed Bootstrap originally?
- Natalie Weizenbaum
- HÃ¥kon Wium Lie
- Jack Dorsey, Noah Glass, Biz Stone, and Evan Williams
- Mark Otto and Jacob Thornton
Answer: D) Mark Otto and Jacob Thornton
Explanation:
Originally, Bootstrap was developed by Mark Otto and Jacob Thornton.
Discuss this question
6. Is Bootstrap mobile-first?
- Yes
- No
- Can't say
- None
Answer: A) Yes
Explanation:
Yes, Bootstrap is mobile-first.
Discuss this question
7. Which class is used for responsive fixed width containers?
- .container
- .row
- .container-fixed
- .container-fluid
Answer: A) .container
Explanation:
In Bootstrap, the `.container class is used for responsive fixed width containers.
Discuss this question
8. Which class is used for a full width container by spanning the full width of the viewport?
- .container
- .row
- .container-fixed
- .container-fluid
Answer: D) .container-fluid
Explanation:
In Bootstrap, the .container-fluid class is used for full width containers by spanning the full width of the viewport.
Discuss this question
9. What is the maximum number of columns that Bootstrap grid system provides across the page?
- 3
- 6
- 9
- 12
Answer: D) 12
Explanation:
The maximum number of columns that Bootstrap grid system provides across the page are 12.
Discuss this question
10. If you want wider columns, you have to ____.
- Use multiple .container-fluid classes
- Group the columns together
- Group the multiple .container-fluid classes
- All of the above
Answer: B) Group the columns together
Explanation:
If you want wider columns, you have to group the columns together.
Discuss this question
11. If you want responsive and fixed columns, you can use ____.
- Use .container class
- Use .container-fixed class
- Use .container-fluid class
- All of the above
Answer: A) Use .container class
Explanation:
If you want fixed columns, you can use the .container class. It can be used to create a box layout.
Discuss this question
12. Which of the following classes can be used to highlight a special content?
- .container
- .box
- .jumbotron
- .container-fixed
Answer: C) .jumbotron
Explanation:
The .jumbotron class shows a big box with a grey background and rounded corners. Font size can also be increased in this box. .jumbotron class is generally used with a div element to create a highlighted box container.
Discuss this question
13. Which of the following is the correct way of creating a navigation bar in bootstrap?
- <nav class='navigationbar navbar'>
- <nav class='nav navbar'>
- <nav class='navigationbar navbar-default'>
- <nav class='nav navbar-default'>
Answer: D) <nav class='nav navbar-default'>
Explanation:
Navigation bar is a navigation header placed on the top of the page to help users in navigating the web pages. In bootstrap, you can create a standard navigation bar using <nav class="nav navbar-default">
Discuss this question
14. Which of the following is the correct way of creating a navigation tab in bootstrap?
- <ul class='navigationbar navtabs'>
- <ul class='nav navtabs'>
- <ul class='navigationbar navtabs-default'>
- <ul class='nav navtabs-default'>
Answer: B) <ul class='nav navtabs'>
Explanation:
In bootstrap, you can create a standard navigation tab using <ul class="nav navtabs">
Discuss this question
15. We can use ____ component of bootstrap to navigate through images as slideshow?
- Slideshow
- Carousel
- Scrollspy
- None of the above
Answer: B) Carousel
Explanation:
In bootstrap, you can use the carousel to add a responsive image slider to your web application. carousel.js is to be imported to use this component if bootstrap.min.js or bootstrap.js is not used.
Discuss this question
16. We can use ___ class to create a dropdown menu in bootstrap.
- .select
- .list
- .dropdown
- All of the above
Answer: C) .dropdown
Explanation:
In bootstrap, you can use the .dropdown class to create a dropdown menu. Dropdown menus are very useful and can be used to display togglable menus, contextual menus, links in list format and so on.
Discuss this question
17. We can use ____ class to create a list group in bootstrap.
- .select-list
- .list
- .dropdown
- .list-group
Answer: D) .list-group
Explanation:
In bootstrap, a basic list group can be used by utilizing .list-group within ul element and .list-group-item with li element.
Discuss this question
18. We can use ____ class to create a circled image in bootstrap.
- .circle
- .img-circle
- .img-rounded
- .rounded
Answer: B) .img-circle
Explanation:
In bootstrap, we can create a circled image easily using .img-circle class.
Discuss this question
19. Which of the following classes can be used to create a zebra striped table in bootstrap?
- .zebra
- .table-striped
- .zebra-striped
- .striped
Answer: B) .table-striped
Explanation:
Bootstrap provides multiple classes to style a table. .table-striped class can be used to create a zebra striped table.
Discuss this question
20. How to create a large button in bootstrap?
- by using .btn-lg class
- by using .btn-large class
- .by using .btn-xxl class
- by using .btn-big class
Answer: B) by using .btn-large class
Explanation:
Bootstrap provides multiple classes to style buttons. .btn-lg
class can be used to create large buttons.
Discuss this question
21. Which of the following is the correct way of creating a black navigation bar in bootstrap?
- <nav class='nav navbar-black'>
- <nav class='nav navbar-default'>
- <nav class='nav navbar-inverse'>
- <nav class='nav navbar-dark'>
Answer: C) <nav class='nav navbar-inverse'>
Explanation:
In bootstrap, you can create an inverted navigation tab using the .navbar-inverse
class. It shows the navigation bar in black color.
Discuss this question
22. Which of the following bootstrap plugins can be used to create a modal window?
- alert
- popup
- modal
- window
Answer: C) modal
Explanation:
Bootstrap modal plugin allows users to show a modal popup window over the top of the current page.
Discuss this question
23. Which of the following bootstrap classes can be used to add a pagination support in a webpage?
- .pagination
- .page
- .paginate
- .list
Answer: A) .pagination
Explanation:
Bootstrap provides a .pagination
class which can be used to create a pagination bar in a web page. A pagination bar is used to navigate between multiple pages and is generally required when there are lots of pages to navigate.
Discuss this question
24. Which of the following bootstrap classes can be used to create a badge?
- .label
- .badge
- .tab
- .select
Answer: B) .badge
Explanation:
The .badge
class of bootstrap can be used to add beautiful badge support to a web page. A badge is a numerical indicator to show how many items are linked with a particular component. A badge can also be used to differentiate an unread item.
Discuss this question
25. We can use ___ class to create a rounded cornered image in bootstrap.
- .circle
- .img-circle
- ..img-rounded
- .rounded
Answer: C) ..img-rounded
Explanation:
In bootstrap, we can create a rounded-cornered image easily using .img-rounded
class. It adds a border radius of 6px
to the image to create rounded corners.
Discuss this question
26. Which of the following classes can be used to create a panel in bootstrap?
- .container
- .box
- .jumbotron
- .panel
Answer: D) .panel
Explanation:
Bootstrap provides a .panel
class to create a panel layout. A panel is a container with default padding around its element.
Discuss this question