Essential Bootstrap Frontend Development Quiz Quiz

Explore fundamental Bootstrap concepts, including grid systems, components, and essential utility classes to enhance your frontend development skills.

  1. Bootstrap's Origin

    Bootstrap was originally developed by which company to streamline web development?

    1. Apple
    2. Facebook
    3. Twitter

    Explanation: Twitter developed Bootstrap to standardize internal tools and workflows, making frontend development more consistent. Facebook and Apple are not associated with Bootstrap's creation; they have their own frameworks and tools.

  2. Bootstrap Grid System

    What is the default number of columns used in Bootstrap's grid system?

    1. 12
    2. 16
    3. 10

    Explanation: Bootstrap's grid is based on 12 columns to allow flexible and responsive layouts. 10 and 16 are incorrect; these numbers represent different grid approaches in other frameworks or contexts.

  3. Bold Text Utility

    Which Bootstrap class is used to make text bold within a component?

    1. bold-text
    2. fw-bold
    3. text-strong

    Explanation: The 'fw-bold' class applies a bold font weight in Bootstrap. 'bold-text' and 'text-strong' are not valid Bootstrap classes and will not consistently produce the desired styling effect.

  4. Horizontal Centering

    If you want to horizontally center an element in Bootstrap, which class should you typically use?

    1. align-center
    2. center-block
    3. mx-auto

    Explanation: 'mx-auto' applies automatic left and right margins, effectively centering block-level elements. 'center-block' was used in older versions of Bootstrap, and 'align-center' is not a recognized Bootstrap class for this purpose.

  5. Responsive Navigation Bar

    Which class is applied to create a responsive navigation bar in Bootstrap?

    1. navigation-bar
    2. nav-panel
    3. navbar

    Explanation: 'navbar' is the designated class for Bootstrap's responsive navigation bar component. 'nav-panel' and 'navigation-bar' are not valid Bootstrap classes and won't yield the correct styles or behaviors.

  6. Alert Component

    What Bootstrap component is used to display brief messages or alerts for users?

    1. Popup
    2. Notify
    3. Alert

    Explanation: Bootstrap's 'Alert' component clearly presents important messages or notices. 'Notify' and 'Popup' are not Bootstrap components and refer to unrelated or non-existent features.

  7. Rounded Corners Utility

    Which class should you use to apply rounded corners to an element in Bootstrap?

    1. soft-corner
    2. rounded
    3. radius

    Explanation: 'rounded' adds border-radius and visually softens edges in Bootstrap. The terms 'radius' and 'soft-corner' aren't valid Bootstrap classes and do not achieve this effect.

  8. Hiding on Small Screens

    Which Bootstrap class hides an element on small screens but may reveal it on larger ones?

    1. d-none
    2. invisible
    3. hide-xs

    Explanation: 'd-none' is used to hide elements from the DOM, and its responsive variants target specific screen sizes. 'hide-xs' and 'invisible' either don't exist or don't fully hide elements in all required scenarios.

  9. Spacing Utilities

    What utility category in Bootstrap allows you to quickly adjust margins and padding of elements?

    1. Spacing
    2. Distance
    3. Box-Model

    Explanation: Bootstrap's Spacing utilities (like m-2, p-3) provide easy margin and padding control. 'Box-Model' and 'Distance' are not recognized Bootstrap utility names.

  10. Responsive Images

    Which class ensures an image scales responsively to fit its parent container in Bootstrap?

    1. image-responsive
    2. fit-parent
    3. img-fluid

    Explanation: 'img-fluid' makes images responsive by applying max-width: 100% and height: auto. 'image-responsive' and 'fit-parent' are not valid Bootstrap classes and won't provide the intended effect.