Font size
WorksheetsFront-End 1
Total questions: 12
Worksheet time: 12mins
What does HTML stand for?
Hypertext Machine language
Hypertext and links markup language
Hypertext Markup Language
Hightext machine language
Which of the following HTML element is used for creating an unordered list?
ul
il
ol
dl
Which of the following attributes is used to add link to any element?
link
href
ref
src
What is the purpose of using div tags in HTML?
For creating Different styles.
For creating different sections
For adding headings
For adding titles
Which tag is used for creating a drop-down selection list?
<select>
<option>
<dropdown>
<list>
Which of the following elements can be used in HTML to create a table?
<table> , <tbody> , <trow>
<table> , <tb> , <trow>
<table> , <tbody> , <tr>
All of the above
Which built-in method sorts the elements of an array?
changeOrder(order)
order()
sort()
None of the above
Which of the following function of String object is used to match a regular expression against a string?
concat()
match()
search()
replace()
Choose the correct JavaScript syntax to change the content of the following HTML code.
<p id="geek">GeeksforGeeks</p>
document.getElement(“geek”).innerHTML=”I am a Geek”;
document.getElementById(“geek”).innerHTML=”I am a Geek”;
document.getId(“geek”)=”I am a Geek”;
document.getElementById(“geek”).innerHTML=I am a Geek;
<script type="text/javascript">
a = 8 + "8";
document.write(a);
</script>
16
Compilation Error
88
Run Time Error
<script type="text/javascript">
var a="GeeksforGeeks";
var x=a.lastIndexOf("G");
document.write(x);
</script>
8
0
9
error
<script type="text/javascript" language="javascript">
var x=5;
var y=6;
var res=eval("x*y");
document.write(res);
</script>
“30”
30
5*6
“5*6”
