Inside which HTML element do we put the JavaScript?
<javascript>
<scripting>
<script>
<js>
What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="demo">This is a demonstration.</p>
#demo.innerHTML = "Hello World!";
document.getElement("p").innerHTML = "Hello World!";
document.getElementByName("p").innerHTML = "Hello World!";
document.getElementById("demo").innerHTML = "Hello World!";
How do you write "Hello World" in an alert box?
msgBox("Hello World");
alertBox("Hello World");
alert("Hello World");
msg("Hello World");
How do you call a function named "myFunction"?
myFunction()
call myFunction()
call function myFunction()
How to write an IF statement for executing some code if "i" is NOT equal to 5?
if (i != 5)
if (i <> 5)
if i =! 5 then
if i <> 5
How does a FOR loop start?
for (i <= 5; i++)
for (i = 0; i <= 5)
for i = 1 to 5
for (i = 0; i <= 5; i++)
How can you add a comment in a JavaScript?
//This is a comment
'This is a comment
<!--This is a comment-->
How do you round the number 7.25, to the nearest integer?
round(7.25)
Math.rnd(7.25)
rnd(7.25)
Math.round(7.25)
JavaScript is the same as Java.
Which event occurs when the user clicks on an HTML element?
onclick
onchange
onmouseover
onmouseclick
Who is making the Web standards?
Microsoft
The World Wide Web Consortium
Mozilla
Google
Choose the correct HTML element for the largest heading:
<h6>
<head>
<h1>
<heading>
Choose the correct HTML element to define emphasized text
<i>
<em>
<italic>
What is the correct HTML for creating a hyperlink?
<a url="http://www.w3schools.com">W3Schools.com</a>
<a href="http://www.w3schools.com">W3Schools</a>
<a>http://www.w3schools.com</a>
<a name="http://www.w3schools.com">W3Schools.com</a>
How can you make a numbered list?
<ol>
<ul>
<list>
<dl>
What is the correct HTML for making a checkbox?
<input type="check">
<input type="checkbox">
<check>
<checkbox>
What is the correct HTML for making a drop-down list?
<input type="list">
<select>
<input type="dropdown">
What is the correct HTML for inserting an image?
<img href="image.gif" alt="MyImage">
<img alt="MyImage">image.gif</img>
<img src="image.gif" alt="MyImage">
<image src="image.gif" alt="MyImage">
HTML comments start with <!-- and end with -->
Which HTML element defines the title of a document?
<meta>
<title>
Which HTML element is used to specify a footer for a document or section?
<section>
<footer>
<bottom>
In HTML, onblur and onfocus are:
HTML elements
Event attributes
Style attributes
Which HTML element defines navigation links?
<navigate>
<nav>
<navigation>
What does CSS stand for?
Colorful Style Sheets
Cascading Style Sheets
Computer Style Sheets
Creative Style Sheets
What is the correct HTML for referring to an external style sheet?
<link rel="stylesheet" type="text/css" href="mystyle.css">
<style src="mystyle.css">
<stylesheet>mystyle.css</stylesheet>
Which HTML attribute is used to define inline styles?
style
class
styles
font
How do you insert a comment in a CSS file?
/* this is a comment */
// this is a comment
' this is a comment
// this is a comment //
Which CSS property is used to change the text color of an element?
color
fgcolor
text-color
What is the correct CSS syntax for making all the <p> elements bold?
p {text-size:bold;}
<p style="text-size:bold;">
<p style="font-size:bold;">
p {font-weight:bold;}
How do you display hyperlinks without an underline?
a {text-decoration:no-underline;}
a {text-decoration:none;}
a {decoration:no-underline;}
a {underline:none;}
How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel?
border-width:10px 1px 5px 20px;
border-width:10px 5px 20px 1px;
border-width:10px 20px 5px 1px;
border-width:5px 20px 10px 1px;
When using the padding property; are you allowed to use negative values?
How do you select an element with id "demo"?
#demo
.demo
demo
*demo
How do you select all p elements inside a div element?
div.p
div + p
div p
What is the default value of the position property?
fixed
static
relative
absolute
Where is the correct place to insert a JavaScript?
The <head> section
The <body> section
Both the <head> section and the <body> section are correct
How can you make an e-mail link?
<mail href +"xxx@y.com">
<a href ="mailto: xxx@y.com">
<a = "xxx@y.com">
Both (b) and (c)
Main container for <TR>, <TD> and <TH> is
<TABLE>
<GROUP>
<DATA>
All of these
The latest HTML standard is
XML
SGML
HTML 4.0
HTML 5.0
The attribute of <form> tag
Method
Action
Both (a)&(b)
None of these
HTML is platform independent.
HTML is considered as _________ language.
Higher Level Language
Markup Language
OOP Language
Programming Language
How do you declare a JavaScript variable?
var carName;
v carName;
variable carName;
How do you find the number with the highest value of x and y?
top(x, y)
Math.max(x, y)
ceil(x, y)
Math.ceil(x, y)
Which is the correct CSS syntax?
{body:color=black;}
{body;color:black;}
body {color: black;}
body:color=black;
How do you add a background color for all <h1> elements?
all.h1 {background-color:#FFFFFF;}
h1.all {background-color:#FFFFFF;}
h1 {background-color:#FFFFFF;}
All of the above
Which property is used to change the font of an element?
font-family
Both font-family and font can be used
How to insert a comment that has more than one line in CSS?
/*This comment has more than one line*/
//This comment has more than one line//
<!--This comment has more than one line-->
What is the correct way to write a JavaScript array?
var colors = "red", "green", "blue"
var colors = (1:"red", 2:"green", 3:"blue")
var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
var colors = ["red", "green", "blue"]
What is the correct HTML for inserting a background image?
<body style="background-image:url(background.gif)">
<background img="background.gif">
<body bg="background.gif">