wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Long Quiz (WS101)

Total questions: 35

Worksheet time: 18mins

Name
Class
Date
1.

What are the benefits of downloading Bootstrap’s source Sass files instead of using the CDN version?

a)

Faster load times

b)

No JavaScript dependencies

c)

To customize Bootstrap variables (colors, fonts) via Sass

d)

To avoid jQuery

2.

What is the purpose of the navbar-expand-lg class in Bootstrap?

a)

Makes the navbar sticky

b)

Keeps the navbar links visible above the large (≥992px) breakpoint

c)

Hides the navbar on large screens

d)

Expands the navbar below the large breakpoint

3.

Which Bootstrap class defines a container with a fixed width that adjusts at different screen sizes?

a)

container-fluid

b)

container-lg

c)

container

d)

container-fixed

4.

Which Bootstrap class can be used to completely hide an element across all screen sizes?

a)

d-hide

b)

hidden

c)

invisible

d)

d-none

5.

Which Bootstrap utility class applies padding of 5 units uniformly on all sides of an element?

a)

py-5

b)

px-5

c)

p-5

d)

m-5

6.

Which Bootstrap class is used to emphasize and enlarge text for introductory or lead paragraphs?

a)

lead-text

b)

lead

c)

p-large

d)

text-lead

7.

Which Bootstrap utility class applies a vertical margin of 4 units to an element?

a)

my-4

b)

mt-4 mb-4

c)

myy-4

d)

mv-4

8.

Which Bootstrap component allows you to visually group an input field and a button together?

a)

form-group

b)

form-inline

c)

btn-group

d)

input-group

9.

Which Bootstrap utility class applies a gap of 4 units between grid items in a layout?

a)

gap-4

b)

g-4

c)

gx-4 gy-4

d)

grid-gap-4

10.

Which class serves as the primary container for creating a structured content box with optional headers, footers, and body sections in Bootstrap?

a)

panel

b)

card

c)

box

d)

card-group

11.

Which Bootstrap class keeps the navigation bar fixed at the top of the page as the user scrolls?

a)

sticky-top

b)

sticky

c)

fixed

d)

fixed-top

12.

Which Bootstrap component is commonly used to build sections with expandable and collapsible content, such as FAQs?

a)

    tabs

b)

    Collapse

c)

    accordion

d)

   dropdown

13.

Which Bootstrap utility class applies equal spacing of 4 units between rows and columns in a grid layout?

a)

    gx-4 gy-4

b)

    gap-4

c)

     gy-4 gx-4

d)

    g-4

14.

Why did Bootstrap 5 remove the dependency on jQuery?

a)

Removed all JS components

b)

Bootstrap rewritten in vanilla JS

c)

It uses React under the hood

d)

It includes Zepto instead

15.

In which part of an HTML document should the <link> tag for Bootstrap’s CSS file be placed?

a)

Just before </body>

b)

Inside <title>

c)

Inside <head>, before any custom CSS

d)

After the custom style link

16.

What is the default number of columns in Bootstrap’s grid layout system?

a)

12

b)

11

c)

16

d)

24

17.

Which Visual Studio Code extension enables you to view your website in a local development environment with live updates?

a)

a)    Prettier

b)

b)    ESLint

c)

c)     Live Preview

d)

d)    Live Server

18.

Which CSS property is used to define the space between an element’s content and its border?

a)

 Margin

b)

padding

c)

spacing

d)

border-spacing

19.

What is the effect of adding the target="_blank" attribute to an anchor (<a>) tag?

a)

Opens the link in the same tab

b)

Removes the underline from the link

c)

Makes the link non-clickable

d)

Opens the link in a new tab

or window

20.

Why is the alt attribute used in an <img> tag in HTML?

a)

Defines the image size

b)

Provides alternative text if the image fails to load

c)

Links the image to a websit

d)

Changes the image background color

21.

Which HTML element is used to create clickable areas within an image (image map)?

a)

<map>

b)

<image>

c)

<area>

d)

<imgmap>

22.

What does the colspan attribute do in an HTML table element?

a)

It merges multiple rows into a single row

b)

It defines the width of a table column

c)

It makes a cell span across multiple columns

d)

It adds a background color to a table cell

23.

Which HTML element defines an unordered list?

a)

<ol>

b)

<ul>

c)

<li>

d)

<dl>

24.

Which CSS technique is used to display list items side by side instead of vertically?

a)

list-style: inline;

b)

display: horizontal;

c)

float: left;

d)

list-style-type: none;;

25.

How do the <div> and <span> elements differ in terms of layout behavior in HTML?

a)

<div> is an inline element, while <span> is a block-level element

b)

<div> and <span> are both inline elements

c)

<div> is a block-level element, while <span> is an inline element

d)

<div> and <span> are both block-level elements

26.

Which HTML tag is used to display text with preserved spaces, tabs, and line breaks exactly as written in the source code?

a)

<p>

b)

<br>

c)

<pre>

d)

<pe>

27.

What kind of information is typically included inside the <head> section of an HTML document?

a)

Page content

b)

User interface elements

c)

CSS only

d)

Meta-information, links, and title

28.

Which CSS layout module enables dynamic and responsive arrangement of items within a container?

a)

block

b)

float

c)

flexbox

d)

stack

29.

Which HTML element is commonly used to define a generic section or container within a webpage?

a)

<div>

b)

<section>

c)

<span>

d)

<area>

30.

What HTML element defines navigation links?

a)

<menu>

b)

<nav>

c)

<link>

d)

<router>

31.

Which HTML element is used to build a dropdown menu that allows users to choose one or more options?

a)

<dropdown>

b)

<select>

c)

<list>

d)

<optionlist>

32.

Which HTML element is used to define an area for user input, such as text fields and buttons?

a)

<input>

b)

<form>

c)

<submit>

d)

<text>

33.

Which HTML element is used to create a field that allows users to enter data in a form?

a)

<enter>

b)

<textfield>

c)

<input>

d)

<box>

34.

How do you define the kind of data an input field should accept in HTML?

a)

name

b)

class

c)

id

d)

type

35.

Which symbol is used in CSS to target an element by its ID attribute?

a)

*

b)

#

c)

@

d)

$