wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Development

Total questions: 21

Worksheet time: 13mins

Name
Class
Date
1.

What is the latest version of HTML?

a)

HTML6

b)

XHTML

c)

HTML5

d)

HTML4

2.

What is the difference between padding and margin in CSS?

a)

Padding is the space outside the border of an element, while margin is the space inside the border of an element.

b)

Padding is the space inside the border of an element, while margin is the space outside the border of an element.

c)

Padding and margin are the same thing in CSS.

d)

Padding is used for horizontal spacing, while margin is used for vertical spacing.

3.

What is the use of media queries in responsive design?

a)

Media queries are used to create animations and transitions on a webpage

b)

Media queries are used to embed audio and video files in a website

c)

Media queries are used to apply different styles to different devices based on their screen size, resolution, and orientation.

d)

Media queries are used to display pop-up ads on a website

4.

What is the viewport meta tag used for in responsive web design?

a)

It is used to control the layout and scaling of the webpage on different devices.

b)

It is used to add background music to the webpage

c)

It is used to display pop-up ads on the webpage

d)

It is used to change the font style of the webpage

5.

What is the difference between inline and block elements in HTML?

a)

Inline elements start on a new line and take up the full width available

b)

Inline elements and block elements are the same

c)

Block elements do not start on a new line and only take up as much width as necessary

d)

Inline elements do not start on a new line and only take up as much width as necessary, while block elements start on a new line and take up the full width available.

6.

What is the box model in CSS?

a)

The box model in CSS refers to the packaging of physical products for shipping

b)

The box model in CSS is a type of exercise equipment used for strength training

c)

The box model in CSS is a popular brand of cardboard storage containers

d)

The box model in CSS is a design concept that describes the layout and design of elements on a web page.

7.

Example for a non relational database

a)

Couchbase

b)

MySQL

c)

Redis

d)

SQLite

8.

What is the purpose of the tag in HTML?

a)

To provide metadata about the HTML document

b)

To create a new paragraph in the HTML document

c)

To display images on the webpage

d)

To change the font style of the text

9.

What is the difference between relative and absolute positioning in CSS?

a)

Relative positioning is used for text elements, while absolute positioning is used for image elements.

b)

Relative positioning is based on the element's normal position in the document flow, while absolute positioning is based on the nearest positioned ancestor.

c)

Relative positioning is based on the element's size, while absolute positioning is based on the element's color.

d)

Relative positioning is used for mobile devices, while absolute positioning is used for desktop devices.

10.

What is the purpose of the alt attribute in HTML image tags?

a)

To change the color of the image

b)

To add a border around the image

c)

To make the image clickable

d)

To provide alternative text for the image

11.

_______is a set of rules that defines how a web server and a web browser communicate. The most common protocol used in web development is _______.

(a)  

12.

Which among this is an example for a full stack web framework

a)

Node js

b)

Flask

c)

Spring boot

d)

Django

13.

Who is the creator of javascript

a)

James Gosling

b)

Bjarne Stroustrup

c)

Brendan Eich

d)

Guido van Rossum

14.

Which of the following CSS property is used to specify the blending mode of an element’s background?

a)

mix-blend-mode

b)

blend-mode

c)

background-blend-mode

d)

none of the above

15.

Which of the following CSS function is used to specify a color using hue, saturation, and lightness values?

a)

rgb()

b)

rgba()

c)

hsl()

d)

hsla()

16.

What does the document.querySelectorAll(".childs") return in this code?

a)

An array of elements with the class "childs."

b)

A NodeList of elements with the class "childs."

c)

A single element with the class "childs."

d)

An HTMLCollection of elements with the class "childs.

17.

let x = 5;

function num(y) {

return y + 22;

}

let final = num(x);
what is the output of this code?

a)

22

b)

5

c)

undefined

d)

27

18.

What is the correct CSS rule to align items in a row layout when the screen width is more than 800 pixels?

a)

flex-wrap: wrap , flex-wrap: nowrap;

b)

flex-wrap: nowrap , flex-wrap: wrap;

c)

flex-wrap: wrap-reverse, flex-wrap: wrap;

d)

flex-wrap: wrap , flex-wrap: wrap-reverse;

19.

What is the purpose of the CSS z-index property?

a)

 

It sets the background image of an element

b)

It controls the spacing between lines of text.

c)

It defines the width of an element.

d)

It specifies the order of positioning for stacked elements along the z-axis.

20.

Choose the correct HTML tag for the largest heading

a)

<h6>

b)

<h1>

c)

<h12>

d)

<h-6>

21.

What is the purpose of the fetch API in JavaScript?

a)

It is used to fetch data from a local file

b)

It is used to fetch data from a remote server

c)

It is used to fetch data from a database

d)

It is used to fetch data from a cookie