Frage 1
Frage
Inside which HTML element do we put the JavaScript?
Antworten
-
<javascript>
-
<scripting>
-
<script>
-
<js>
Frage 2
Frage
What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="demo">This is a demonstration.</p>
Antworten
-
#demo.innerHTML = "Hello World!";
-
document.getElement("p").innerHTML = "Hello World!";
-
document.getElementByName("p").innerHTML = "Hello World!";
-
document.getElementById("demo").innerHTML = "Hello World!";
Frage 3
Frage
How do you write "Hello World" in an alert box?
Antworten
-
msgBox("Hello World");
-
alertBox("Hello World");
-
alert("Hello World");
-
msg("Hello World");
Frage 4
Frage
How do you call a function named "myFunction"?
Frage 5
Frage
How to write an IF statement for executing some code if "i" is NOT equal to 5?
Antworten
-
if (i != 5)
-
if (i <> 5)
-
if i =! 5 then
-
if i <> 5
Frage 6
Frage
How does a FOR loop start?
Antworten
-
for (i <= 5; i++)
-
for (i = 0; i <= 5)
-
for i = 1 to 5
-
for (i = 0; i <= 5; i++)
Frage 7
Frage
How can you add a comment in a JavaScript?
Antworten
-
//This is a comment
-
'This is a comment
-
<!--This is a comment-->
Frage 8
Frage
How do you round the number 7.25, to the nearest integer?
Antworten
-
round(7.25)
-
Math.rnd(7.25)
-
rnd(7.25)
-
Math.round(7.25)
Frage 9
Frage
JavaScript is the same as Java.
Frage 10
Frage
Which event occurs when the user clicks on an HTML element?
Antworten
-
onclick
-
onchange
-
onmouseover
-
onmouseclick
Frage 11
Frage
Who is making the Web standards?
Frage 12
Frage
Choose the correct HTML element for the largest heading:
Antworten
-
<h6>
-
<head>
-
<h1>
-
<heading>
Frage 13
Frage
Choose the correct HTML element to define emphasized text
Frage 14
Frage
What is the correct HTML for creating a hyperlink?
Antworten
-
<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>
Frage 15
Frage
How can you make a numbered list?
Frage 16
Frage
What is the correct HTML for making a checkbox?
Antworten
-
<input type="check">
-
<input type="checkbox">
-
<check>
-
<checkbox>
Frage 17
Frage
What is the correct HTML for making a drop-down list?
Antworten
-
<list>
-
<input type="list">
-
<select>
-
<input type="dropdown">
Frage 18
Frage
What is the correct HTML for inserting an image?
Antworten
-
<img href="image.gif" alt="MyImage">
-
<img alt="MyImage">image.gif</img>
-
<img src="image.gif" alt="MyImage">
-
<image src="image.gif" alt="MyImage">
Frage 19
Frage
HTML comments start with <!-- and end with -->
Frage 20
Frage
Which HTML element defines the title of a document?
Frage 21
Frage
Which HTML element is used to specify a footer for a document or section?
Antworten
-
<section>
-
<footer>
-
<bottom>
Frage 22
Frage
In HTML, onblur and onfocus are:
Antworten
-
HTML elements
-
Event attributes
-
Style attributes
Frage 23
Frage
Which HTML element defines navigation links?
Antworten
-
<navigate>
-
<nav>
-
<navigation>
Frage 24
Frage
What does CSS stand for?
Antworten
-
Colorful Style Sheets
-
Cascading Style Sheets
-
Computer Style Sheets
-
Creative Style Sheets
Frage 25
Frage
What is the correct HTML for referring to an external style sheet?
Antworten
-
<link rel="stylesheet" type="text/css" href="mystyle.css">
-
<style src="mystyle.css">
-
<stylesheet>mystyle.css</stylesheet>
Frage 26
Frage
Which HTML attribute is used to define inline styles?
Frage 27
Frage
How do you insert a comment in a CSS file?
Antworten
-
/* this is a comment */
-
// this is a comment
-
' this is a comment
-
// this is a comment //
Frage 28
Frage
Which CSS property is used to change the text color of an element?
Frage 29
Frage
What is the correct CSS syntax for making all the <p> elements bold?
Frage 30
Frage
How do you display hyperlinks without an underline?
Antworten
-
a {text-decoration:no-underline;}
-
a {text-decoration:none;}
-
a {decoration:no-underline;}
-
a {underline:none;}
Frage 31
Frage
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?
Antworten
-
border-width:10px 1px 5px 20px;
-
border-width:10px 5px 20px 1px;
-
border-width:10px 20px 5px 1px;
-
border-width:5px 20px 10px 1px;
Frage 32
Frage
When using the padding property; are you allowed to use negative values?
Frage 33
Frage
How do you select an element with id "demo"?
Frage 34
Frage
How do you select all p elements inside a div element?
Frage 35
Frage
What is the default value of the position property?
Antworten
-
fixed
-
static
-
relative
-
absolute
Frage 36
Frage
Where is the correct place to insert a JavaScript?
Frage 37
Frage
How can you make an e-mail link?
Frage 38
Frage
Main container for <TR>, <TD> and <TH> is
Antworten
-
<TABLE>
-
<GROUP>
-
<DATA>
-
All of these
Frage 39
Frage
The latest HTML standard is
Antworten
-
XML
-
SGML
-
HTML 4.0
-
HTML 5.0
Frage 40
Frage
The attribute of <form> tag
Antworten
-
Method
-
Action
-
Both (a)&(b)
-
None of these
Frage 41
Frage
HTML is platform independent.
Frage 42
Frage
HTML is considered as _________ language.
Antworten
-
Higher Level Language
-
Markup Language
-
OOP Language
-
Programming Language
Frage 43
Frage
How do you declare a JavaScript variable?
Antworten
-
var carName;
-
v carName;
-
variable carName;
Frage 44
Frage
How do you find the number with the highest value of x and y?
Antworten
-
top(x, y)
-
Math.max(x, y)
-
ceil(x, y)
-
Math.ceil(x, y)
Frage 45
Frage
Which is the correct CSS syntax?
Antworten
-
{body:color=black;}
-
{body;color:black;}
-
body {color: black;}
-
body:color=black;
Frage 46
Frage
How do you add a background color for all <h1> elements?
Antworten
-
all.h1 {background-color:#FFFFFF;}
-
h1.all {background-color:#FFFFFF;}
-
h1 {background-color:#FFFFFF;}
-
All of the above
Frage 47
Frage
Which property is used to change the font of an element?
Frage 48
Frage
How to insert a comment that has more than one line in CSS?
Antworten
-
/*This comment has
more than one line*/
-
//This comment has
more than one line//
-
<!--This comment has
more than one line-->
Frage 49
Frage
What is the correct way to write a JavaScript array?
Antworten
-
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"]
Frage 50
Frage
What is the correct HTML for inserting a background image?
Antworten
-
<body style="background-image:url(background.gif)">
-
<background img="background.gif">
-
<body bg="background.gif">