Font size
WorksheetsQuiz
Total questions: 40
Worksheet time: 14mins
HTML stands for _____.
Hyper Test Marker Language
Hyper Text Marker Language
Hyper Text Markup Language
Hyper Test Markup Language
Who created the first website ?
Tim Berners-Lee
Bjarne Stroustrop
Dennis Ritchie
Mark Zuckerberg
The external JavaScript file must contain the <script> tag.
True
False
Which tag is used to make a checkbox ?
<input type = "check">
<input type = "checkbox">
<checkbox>
<check>
Which event occurs when the user clicks on an HTML element ?
onmouseclick
onclick
onchange
onmouseover
Which of the following is/are valid tag(s) in HTML ?
<a>
<b>
<s>
<i>
<em>
What of the following is a valid syntax of doctype in HTML5 ?
<!DOCTYPE HTML5>
<!DoCtYpe HTML>
<DOCTYPE : HTML>
<!DOCTYPE = HTML5>
Which of the following tag requires an ending tag ?
<br>
<caption>
<col>
<hr>
Which attribute can be used to change the speed of marquee element ?
scrollspeed
scrollamount
scrolldistance
scrollby
Where do you see JavaScript in action ?
Frontend
Backend
App development
All of the above
What is object destructuring ?
{key} = object
[key] = object
key = object
JavaScript doesn't support it
What is the colour of an unvisited link ?
Red
Blue
Purple
Green
What are the types of CSS ?
Inline CSS
Internal/Embedded CSS
External CSS
Outline CSS
When did the first web page went live ?
August 6, 1991
August 6, 1990
July 6, 1990
July 6, 1991
Which tag is used for creating a drop-down selection list ?
<list>
<option>
<dropdown>
None of the above
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 attribute can determine whether a table cell will span the width of more than one cell or column ?
colspan
rowspan
colspace
rowspace
Which of the following RegExp is valid for checking if the string contains a number ?
/[a-9]/
/[0-9]/
\w
/[\w-\d]/
Which attribute can be used with SVG ellipse ?
sv
rr
ell
svg
Which of the following is not a unit of length in CSS ?
Millimeters (mm)
Nanometers (nm)
Centimeters (cm)
Inches (in)
Which CSS property is used to indicate if an animation plays in reverse or by repeating itself along with every single iteration ?
animation-reverse
animation-direction
animation-repeat
animation-iterate
Which of the following is the correct RegExp for verifying if an e-mail is correct or not ?
/^\w+([.]?\w+)*@\w+([.]?\w+)*\.\w+$/
/^\w+([.]?\D+)*@\w+([@]?\w+)*\.\w+$/
/$\D+([@]?\w+)*.\w+([.]?\w+)*\@\D+$/d
None of the above
Which of the following is not a HTTP method ?
Get
Patch
Clear
Delete
Which of the following tags do not require a terminator ?
<b>
<u>
<br>
None of the above
Which attribute of <img> tag is used to insert an image ?
<img url=”htmllogo.jpg” />
<img alt=”htmllogo.jpg” />
<img src=”htmllogo.jpg” />
<img link=”htmllogo.jpg” />
What is the main purpose of using <div> tag in HTML ?
For creating different styles
For creating different sections
For adding patterns
For adding external JS
Which of the following is the correct way to add the background colour as green in HTML ?
<body color = "green">
<body bg-color = "green">
<body style="background-color=green">
<body style="background-color:green">
Which tag is used to add an header in HTML5 table ?
<h1>
<th>
<theader>
<header>
What is the path for an image located in same folder as the current page ?
<img src="pic.jpg">
<img src="../pic.jpg">
<img src =".?/pic.jpg">
<img src="/images/pic.jpg">
Select the output for the code
What will be the output of the following Java code ?
1
10
5
Error
Which of the following scoping type does JavaScript use ?
Sequential
Segmental
Lexical
Literal
Which of the following is the property that is triggered in response to JavaScript errors ?
onclick
onerror
onmessage
onexception
What will be the output ?
Array
Undefined
Object
Character
What is the equivalent of the following JS statement ? var o = new Object();
Object o = new Object();
var a = new Object;
var o;
var o = Object();
The JavaScript classes can be instantiated using which of the given operator?
instantiate
create
create.new
new
What is the observation made in the following JavaScript code ? var js =[1,,3];
It results in an error
It results in an exception
The omitted value takes an integer value
The omitted value takes “undefined”
In the following given statements, the JavaScript function is explained by which statement?
Function is used to define a block of code
Function is used to define an object
Function is used to define a class
Function is used to define an attribute
HTML is a ...
...scripting language
...marker language
..programming language
...markup language
What will be the output of the following JavaScript program?
105
50
501
10
