Professional Documents
Culture Documents
<stylesheet>mystyle.css</stylesheet>
13. Where in an HTML document is the correct place to refer to an external
style sheet?
At the end of the document
At the top of the document
In the <head> section
In the <body> section
14. Which HTML tag is used to define an internal style sheet?
<style>
<css>
// this is a comment
/* this is a comment */
15. Which HTML attribute is used to define inline styles?
style
class
font
styles
16. Which is the correct CSS syntax?
{body:color=black(body}
body {color: black}
body:color=black
{body;color:black}
17. How do you insert a comment in a CSS file?
color:
// this is a comment //
' this is a comment
18. Which property is used to change the background color?
bgcolor:
color:
background-color:
19. How do you add a background color for all <h1> elements?
h1 {background-color:#FFFFFF}
all.h1 {background-color:#FFFFFF}
h1.all {background-color:#FFFFFF}
20. How do you change the text color of an element?
text-color=
text-color:
fgcolor:
21. Inside which HTML element do we put the JavaScript?
<scripting>
<script>
<javascript>
<js
22. What is the correct JavaScript syntax to write "Hello World"?
document.write("Hello World")
response.write("Hello World")
("Hello World")
"Hello World"
23. Where is the correct place to insert a JavaScript?
The <body> section
The <head> section
msgBox("Hello World")
Both the <head> section and the <body> section are correct
24. What is the correct syntax for referring to an external script called
"xxx.js"?
<script type="text/javascript" name="xxx.js">
<script type="text/javascript" href="xxx.js">
<script type="text/javascript" src="xxx.js">
25. The external JavaScript file must contain the <script> tag
True
False
26. How do you write "Hello World" in an alert box?
alert("Hello World")
alertBox("Hello World")
alertBox="Hello World"
if i==5 then
27. How do you create a function?
function=myFunction()
function myFunction()
function:myFunction()
28. How do you call a function named "myFunction"?
myFunction()
call function myFunction
call myFunction()
29. How do you write a conditional statement for executing some code if
"i" is equal to 5?
if i=5 then
if (i==5)
if i=5
XML uses XSL to describe data
30. How do you write a conditional statement for executing some code if
"i" is NOT equal to 5?
if =! 5 then
if (i <> 5)
if <>5
if (i != 5)
31. What does XML stand for?
eXtra Modern Link
eXtensible Markup Language
X-Markup Language
Example Markup Language
32. There is a way of describing XML data, how?
XML uses a DTD to describe the data
Dynamic Type Definition
XML uses a description node to describe data
33. XML's goal is to replace HTML
True
False
34. What is the correct syntax of the declaration which defines the XML
version?
<?xml version="1.0" />
<?xml version="1.0"?>
<xml version="1.0" />
35. What does DTD stand for?
Do The Dance
Direct Type Definition
Document Type Definition
36. Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
Yes
No
37. Is this a "well formed" XML document?
<?xml version="1.0"?>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
Yes
No
38. Which statement is true?
All XML elements must be lower case
All XML elements must be properly closed
All XML documents must have a DTD
All the statements are true
39. Which statement is true?
All the statements are true
XML tags are case sensitive
XML documents must have a root tag
XML elements must be properly nested
40. XML preserves white spaces
False
True
Contact www.solvedcare.com for best and lowest cost solution or email solvedcare
@gmail.com