wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Front-End 1

Total questions: 12

Worksheet time: 12mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hypertext Machine language

b)

Hypertext and links markup language

c)

Hypertext Markup Language

d)

Hightext machine language

2.

Which of the following HTML element is used for creating an unordered list?

a)

ul

b)

il

c)

ol

d)

dl

3.

Which of the following attributes is used to add link to any element?

a)

link

b)

href

c)

ref

d)

src

4.

What is the purpose of using div tags in HTML?

a)

For creating Different styles.

b)

For creating different sections

c)

For adding headings

d)

For adding titles

5.

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

a)

<select>

b)

<option>

c)

<dropdown>

d)

<list>

6.

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

7.

Which built-in method sorts the elements of an array?

a)

changeOrder(order)

b)

order()

c)

sort()

d)

None of the above

8.

Which of the following function of String object is used to match a regular expression against a string?

a)

concat()

b)

match()

c)

search()

d)

replace()

9.

Choose the correct JavaScript syntax to change the content of the following HTML code.

<p id="geek">GeeksforGeeks</p>

a)

document.getElement(“geek”).innerHTML=”I am a Geek”;

b)

document.getElementById(“geek”).innerHTML=”I am a Geek”;

c)

document.getId(“geek”)=”I am a Geek”;

d)

document.getElementById(“geek”).innerHTML=I am a Geek;

10.

<script type="text/javascript">

a = 8 + "8";

document.write(a);

</script>

a)

16

b)

Compilation Error

c)

88

d)

Run Time Error

11.

<script type="text/javascript">

var a="GeeksforGeeks";

var x=a.lastIndexOf("G");

document.write(x);

</script>

a)

8

b)

0

c)

9

d)

error

12.

<script type="text/javascript" language="javascript">

var x=5;

var y=6;

var res=eval("x*y");

document.write(res);

</script>

a)

“30”

b)

30

c)

5*6

d)

“5*6”