Top 500 Bootstrap5 MCQ Interview Questions

Question 351: Which class is used for a button that toggles the dropdown in Bootstrap 5?
Answer: A) .dropdown-toggle
Question 352: How do you create a vertical pill navigation in Bootstrap 5?
Answer: A) <ul class="nav nav-pills flex-column">
Question 353: Which class is used to change the background color of a card in Bootstrap 5?
Answer: A) .bg-light
Question 354: How do you create a pagination item in Bootstrap 5?
Answer: B) <li class="page-item">
Question 355: Which class is used to add margin on all sides in Bootstrap 5?
Answer: A) .m-3
Question 356: How do you create a vertical carousel in Bootstrap 5?
Answer: B) <div class="carousel slide carousel-vertical">
Question 357: Which class is used for a danger badge in Bootstrap 5?
Answer: A) <span class="badge badge-danger">
Question 358: How do you create a jumbotron in Bootstrap 5?
Answer: A) <div class="jumbotron">
Question 359: Which Bootstrap class is used to create a responsive image?
Answer: A) .img-fluid
Question 360: Which class is used to style a Bootstrap form input as a block element?
Answer: A) .form-control
Question 361: Which class is used to center-align text in Bootstrap 5?
Answer: A) .text-center
Question 362: How do you create a form group in Bootstrap 5?
Answer: A) <div class="form-group">
Question 363: Which class is used to hide elements on smaller screens in Bootstrap 5?
Answer: A) .d-none .d-sm-block
Question 364: How do you create a dropdown menu in Bootstrap 5?
Answer: A) <div class="dropdown">
Question 365: Which class is used for the active state in Bootstrap 5 pagination?
Answer: A) .active
Question 366: How do you create a card with an image in Bootstrap 5?
Answer: A) <div class="card">
Question 367: Which class is used to create a rounded border in Bootstrap 5?
Answer: A) .rounded
Question 368: How do you create a footer in Bootstrap 5?
Answer: A) <footer>
Question 369: Which class is used to create a shadow effect on Bootstrap 5 cards?
Answer: A) .shadow
Question 370: How do you create a list group in Bootstrap 5?
Answer: A) <ul class="list-group">
Question 371: Which class is used to add spacing between Bootstrap components?
Answer: B) .mb-3
Question 372: How do you create a modal in Bootstrap 5?
Answer: A) <div class="modal">
Question 373: Which class is used to create a grid layout in Bootstrap 5?
Answer: A) .row
Question 374: How do you create a button group in Bootstrap 5?
Answer: A) <div class="btn-group">
Question 375: Which class is used to create a toast in Bootstrap 5?
Answer: A) .toast
Question 376: How do you create a progress bar in Bootstrap 5?
Answer: A) <div class="progress">
Question 377: Which class is used to create a list item in a Bootstrap list group?
Answer: A) .list-group-item
Question 378: How do you create a jumbotron in Bootstrap 5?
Answer: A) <div class="jumbotron">
Question 379: Which Bootstrap 5 component is used to display tabbed content?
Answer: A) Tab
Question 380: How do you add a tooltip in Bootstrap 5?
Answer: A) data-toggle="tooltip"
Question 381: Which class is used to create a card in Bootstrap 5?
Answer: A) .card
Question 382: How do you create a dropdown in Bootstrap 5?
Answer: A) <div class="dropdown">
Question 383: Which class is used to create a spinner in Bootstrap 5?
Answer: C) .spinner-border
Question 384: How do you create a carousel in Bootstrap 5?
Answer: A) <div class="carousel">
Question 385: Which class is used for rounded corners in Bootstrap 5?
Answer: A) .rounded
Question 386: How do you create an alert in Bootstrap 5?
Answer: A) <div class="alert">
Question 387: Which class is used to hide elements in Bootstrap 5?
Answer: A) .d-none
Question 388: How do you create a breadcrumb in Bootstrap 5?
Answer: A) <nav aria-label="breadcrumb">
Question 389: Which class is used to create a modal in Bootstrap 5?
Answer: A) .modal
Question 390: How do you create a responsive table in Bootstrap 5?
Answer: A) <div class="table-responsive">
Question 391: Which class is used to create a list group in Bootstrap 5?
Answer: A) .list-group
Question 392: How do you create a form group in Bootstrap 5?
Answer: A) <div class="form-group">
Question 393: Which class is used to create a jumbotron in Bootstrap 5?
Answer: A) .jumbotron
Question 394: How do you create a pagination in Bootstrap 5?
Answer: A) <ul class="pagination">
Question 395: Which class is used to create a toast in Bootstrap 5?
Answer: A) .toast
Question 396: How do you create a progress bar in Bootstrap 5?
Answer: A) <div class="progress">
Question 397: Which class is used to create a tooltip in Bootstrap 5?
Answer: A) .tooltip
Question 398: How do you create a collapse component in Bootstrap 5?
Answer: A) <button data-bs-toggle="collapse">
Question 399: Which class is used to create a card in Bootstrap 5?
Answer: A) .card
Question 400: How do you create a carousel in Bootstrap 5?
Answer: A) <div class="carousel">

Showing 351-400 of 500 questions

Contact Tech Spakes Training