wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Exam

Total questions: 42

Worksheet time: 44mins

Name
Class
Date
1.

What is the purpose of HTML?

a)

Creating the structure and content of web pages

b)

Creating animations on web pages

c)

Creating 3D graphics on web pages

d)

Creating video content on web pages

2.

What does the <a> tag define in HTML?

a)

An image

b)

A heading

c)

A hyperlink

d)

A paragraph

3.

Which attribute is used to specify a unique id for an HTML element?

a)

src

b)

id

c)

href

d)

class

4.

What property defines the text color for an HTML element?

a)

font-color

b)

font-size

c)

color

d)

text-color

5.

What does CSS stand for?

(a)  

6.

Choose the correct property value pair.

a)

propert; value;

b)

property: value:

c)

property: value

d)

property: value;

7.

How many elements can share the same "id"?

a)

None, There can be only 1 element per "id".

b)

Any element of the same type.

c)

Any element with the same class.

d)

All of them.

8.

Javascript can only be run on a browser.

a)

True

b)

False

9.

A programming language is case-sensitive and is utilized for developing interactive web pages.

a)

JavaScript

b)

HTML

c)

CSS

d)

Java

10.

(...................) is JavaScript statements grouped together in a named block and performed according to the call it.

a)

Function

b)

HTML

c)

If else

d)

Switch

11.

(............................. ) used for displaying a dialogue box with a message to the user.

a)

alert( " ");

b)

document.write(" ");

c)

document.getElementById

d)

Console.log()

12.

Javascript statements are written between tags ……………………………

a)

alert( " ");

b)

<script> .. </script>

c)

<style>..<style>

d)

{}

13.

If you want JavaScript statements to be implemented when an event  occurs (such as button click), you should use a …………………………..……………….... to execute a certain task or function.

a)

Onclick

b)

messsage

c)

Onchange

d)

Mouseover

14.

Form is used to record your data in the webpage.( )

a)

True

b)

False

15.

 There is no different between capital and small letters in java script statements.( ) 

a)

True

b)

False

16.

A function name is immediately followed by:

a)

( )

b)

[ ]

c)

{ }

d)

a space

17.

What symbols are used to begin and end the body of a function?

a)

{ }

b)

[ ]

c)

( )

d)

;

18.

The < (a)   > tag is used to embed images in an HTML document.

19.

To create a hyperlink, you use the (a)   attribute within the <a> tag.

20.

You can create headings in HTML using the <h1> to <h6> tags where <h1> is the largest and <h6> is the (a)   .

21.

The <i> tag is used for making text (a)   .

22.

The <b> tag is used for making text (a)   .

23.

The <a> tag is used for creating (a)   .

24.

What is the correct syntax for defining a hyperlink in HTML?

a)

<a href=”url”> Link text </a>

b)

<a href=”url”> Link text <a>

c)

<a=”url”> Link text <a>

d)

<ref=”url”> Link text <a>

25.

HTML5 incorporates three kinds of code: HTML, CSS and Javascript. Which of these provides the styling of a webpage?

a)
Javascript
b)
HTML
c)
CSS
d)
None
26.

What is the internet?

a)

A worldwide network of networks

b)

The World Wide Web

c)

An internal network

d)

A net

27.
Which tag should be used to create a main heading on a page?
a)
<h1>
b)
<head>
c)
<main>
d)
<heading>
28.
If you want to have more than one property for a CSS selector, what character separates them?
a)
comma (,)
b)
semi-colon (;)
c)
colon (:)
d)
dash (-)
29.
Which is the selector in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
30.
The style that you are applying to a selector, e.g. border.
a)
Property
b)
Value
c)
Keyword
d)
Length Units
31.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
32.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
33.

JavaScript is designed for following purpose -

a)

To Style HTML Pages

b)

To Perform Server Side Scripting Opertion

c)

To add interactivity to HTML Pages.

d)

To Execute Query Related to DB on Server

34.

Javascript is _________ language.

a)

Programming

b)

Scripting

c)

Application

d)

applet

35.

We cannot Place JS Code in the body tag . True/false.

a)

True

b)

False.

36.

JavaScript Code is written inside file having extension __________.

a)

.jsc

b)

.jvs

c)

.js

d)

.javascript

37.

JavaScript is ______ Side Scripting Language.

a)

JSP

b)

Servlet

c)

Server

d)

Browser

38.

What HTML input type is used to create this password field?

a)

<input type="text">

b)

<input type="submit">

c)

<input type="password">

d)

<input type="radio">

39.

TRUE or FALSE


The id attribute of the <input> element should always be equal to the for attribute of the <label> element.

(a)  

40.

What form elements are used in creating this text field?

a)

<select> and <option>

b)

<label> and <input>

c)

<textarea> and <input>

d)

<select> and <input>

41.

(5 points Question)

for 2mins

What is the output of this code?

a)

0

b)

10

c)

5

d)

NaN

42.

(5 points Question)

for 2mins

What is the output of this code?

a)

2

b)

3

c)

0

d)

1