wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz

Total questions: 40

Worksheet time: 14mins

Name
Class
Date
1.

HTML stands for _____.

a)

Hyper Test Marker Language

b)

Hyper Text Marker Language

c)

Hyper Text Markup Language

d)

Hyper Test Markup Language

2.

Who created the first website ?

a)

Tim Berners-Lee

b)

Bjarne Stroustrop

c)

Dennis Ritchie

d)

Mark Zuckerberg

3.

The external JavaScript file must contain the <script> tag.

a)

True

b)

False

4.

Which tag is used to make a checkbox ?

a)

<input type = "check">

b)

<input type = "checkbox">

c)

<checkbox>

d)

<check>

5.

Which event occurs when the user clicks on an HTML element ?

a)

onmouseclick

b)

onclick

c)

onchange

d)

onmouseover

6.

Which of the following is/are valid tag(s) in HTML ?

a)

<a>

b)

<b>

c)

<s>

d)

<i>

e)

<em>

7.

What of the following is a valid syntax of doctype in HTML5 ?

a)

<!DOCTYPE HTML5>

b)

<!DoCtYpe HTML>

c)

<DOCTYPE : HTML>

d)

<!DOCTYPE = HTML5>

8.

Which of the following tag requires an ending tag ?

a)

<br>

b)

<caption>

c)

<col>

d)

<hr>

9.

Which attribute can be used to change the speed of marquee element ?

a)

scrollspeed

b)

scrollamount

c)

scrolldistance

d)

scrollby

10.

Where do you see JavaScript in action ?

a)

Frontend

b)

Backend

c)

App development

d)

All of the above

11.

What is object destructuring ?

a)

{key} = object

b)

[key] = object

c)

key = object

d)

JavaScript doesn't support it

12.

What is the colour of an unvisited link ?

a)

Red

b)

Blue

c)

Purple

d)

Green

13.

What are the types of CSS ?

a)

Inline CSS

b)

Internal/Embedded CSS

c)

External CSS

d)

Outline CSS

14.

When did the first web page went live ?

a)

August 6, 1991

b)

August 6, 1990

c)

July 6, 1990

d)

July 6, 1991

15.

Which tag is used for creating a drop-down selection list ?

a)

<list>

b)

<option>

c)

<dropdown>

d)

None of the above

16.

Which of the following elements can be used in HTML to create a table ?

a)

<table>, <tbody>, <trow>

b)

<table>, <tb>, <trow>

c)

<table>, <tbody>, <tr>

d)

All of the above

17.

Which attribute can determine whether a table cell will span the width of more than one cell or column ?

a)

colspan

b)

rowspan

c)

colspace

d)

rowspace

18.

Which of the following RegExp is valid for checking if the string contains a number ?

a)

/[a-9]/

b)

/[0-9]/

c)

\w

d)

/[\w-\d]/

19.

Which attribute can be used with SVG ellipse ?

a)

sv

b)

rr

c)

ell

d)

svg

20.

Which of the following is not a unit of length in CSS ?

a)

Millimeters (mm)

b)

Nanometers (nm)

c)

Centimeters (cm)

d)

Inches (in)

21.

Which CSS property is used to indicate if an animation plays in reverse or by repeating itself along with every single iteration ?

a)

animation-reverse

b)

animation-direction

c)

animation-repeat

d)

animation-iterate

22.

Which of the following is the correct RegExp for verifying if an e-mail is correct or not ?

a)

/^\w+([.]?\w+)*@\w+([.]?\w+)*\.\w+$/

b)

/^\w+([.]?\D+)*@\w+([@]?\w+)*\.\w+$/

c)

/$\D+([@]?\w+)*.\w+([.]?\w+)*\@\D+$/d

d)

None of the above

23.

Which of the following is not a HTTP method ?

a)

Get

b)

Patch

c)

Clear

d)

Delete

24.

Which of the following tags do not require a terminator ?

a)

<b>

b)

<u>

c)

<br>

d)

None of the above

25.

Which attribute of <img> tag is used to insert an image ?

a)

<img url=”htmllogo.jpg” />

b)

<img alt=”htmllogo.jpg” />

c)

<img src=”htmllogo.jpg” />

d)

<img link=”htmllogo.jpg” />

26.

What is the main purpose of using <div> tag in HTML ?

a)

For creating different styles

b)

For creating different sections

c)

For adding patterns

d)

For adding external JS

27.

Which of the following is the correct way to add the background colour as green in HTML ?

a)

<body color = "green">

b)

<body bg-color = "green">

c)

<body style="background-color=green">

d)

<body style="background-color:green">

28.

Which tag is used to add an header in HTML5 table ?

a)

<h1>

b)

<th>

c)

<theader>

d)

<header>

29.

What is the path for an image located in same folder as the current page ?

a)

<img src="pic.jpg">

b)

<img src="../pic.jpg">

c)

<img src =".?/pic.jpg">

d)

<img src="/images/pic.jpg">

30.

Select the output for the code

a)
b)
c)
d)
31.

What will be the output of the following Java code ?

a)

1

b)

10

c)

5

d)

Error

32.

Which of the following scoping type does JavaScript use ?

a)

Sequential

b)

Segmental

c)

Lexical

d)

Literal

33.

Which of the following is the property that is triggered in response to JavaScript errors ?

a)

onclick

b)

onerror

c)

onmessage

d)

onexception

34.

What will be the output ?

a)

Array

b)

Undefined

c)

Object

d)

Character

35.

What is the equivalent of the following JS statement ? var o = new Object();

a)

Object o = new Object();

b)

var a = new Object;

c)

var o;

d)

var o = Object();

36.

The JavaScript classes can be instantiated using which of the given operator?

a)

instantiate

b)

create

c)

create.new

d)

new

37.

What is the observation made in the following JavaScript code ? var js =[1,,3];

a)

It results in an error

b)

It results in an exception

c)

The omitted value takes an integer value

d)

The omitted value takes “undefined”

38.

In the following given statements, the JavaScript function is explained by which statement?

a)

Function is used to define a block of code

b)

Function is used to define an object

c)

Function is used to define a class

d)

Function is used to define an attribute

39.

HTML is a ...

a)

...scripting language

b)

...marker language

c)

..programming language

d)

...markup language

40.

What will be the output of the following JavaScript program?

a)

105

b)

50

c)

501

d)

10