Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Midterm Examination in Web Programming

Total questions: 16

Worksheet time: 8mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyperlink and Text Markup Language

b)

Hypertext Markup Language

c)

Home Tool Markup Language

d)

Hyper Transfer Markup Language

2.

Which of the following is NOT an element of a web page?

a)

Title

b)

Background

c)

Stylesheet

d)

Body

3.

What is the main function of HTML tags?

a)

They determine how text is displayed on a web page

b)

They create a database for the web page

c)

They allow for JavaScript execution

d)

They connect the web page to a server

4.

What does the tag do?

a)

Starts and ends a paragraph

b)

Indicates the start and end of a web page body

c)

Creates a heading section

d)

Inserts a horizontal rule

5.

Which HTML tag is used to insert a line break?

a)


<br/>

b)

<p>

c)

<hr/>

d)

<hr/>

6.

Which of the following is NOT a text formatting tag in HTML?

a)

<b>

b)

<i>

c)

<u>

d)

<img>

7.

What is an unordered list in HTML?

a)

A list where the order matters

b)

A bulleted list

c)

A numbered list

d)

A hierarchical list

8.

Which tag is used to create an ordered list?

a)

  • <ul>

b)

<ol>

c)

<li>

9.

What file format is NOT supported by the tag?

a)

JPEG

b)

PNG

c)

GIF

d)

DOCX

10.

How do you create a hyperlink in HTML?

a)

<a src="url">Link</a>

b)

<a href="url">Link</a>

c)

<link href="url">Link</link>

d)

<src ="url">Link</src>

11.

What does CSS stand for?

a)

Creative Style Sheets

b)

Cascading Style Sheets

c)

Computer Style Sheets

d)

Colorful Style Sheets

12.

Which type of CSS is written directly within an HTML tag?

a)

Internal CSS

b)

Inline CSS

c)

External CSS

d)

Direct CSS

13.

Which CSS selector selects elements by their ID?

a)

. (dot)

b)

# (hash)

c)

> (greater than)

d)

: (colon)

14.

What is JavaScript primarily used for?

a)

Structuring web pages

b)

Styling web pages

c)

Adding interactivity to web pages

d)

Managing databases

15.

Which tag is used to include an external JavaScript file?

a)

<script>

b)

<javascript>

c)

<js>

16.

Which JavaScript feature is used to validate HTML forms?

a)

AJAX

b)

jQuery

c)

Event handling

d)

HTML Form validation