Thursday 17 November 2011

Web Design MCQ'S

1. What does HTML stand for?
a) Hyperlinks and Text Markup Language
b) Home Tool Markup Language
c) Hyper Text Markup Language


2. Who is making the Web standards?
a) The World Wide Web Consortium
b) Microsoft
c) Mozilla


3. Choose the correct HTML tag for the largest heading
a) <h6>
b) <h1>
c) <head>
d) <heading>


4.What is the correct HTML tag for inserting a line break?
a) <br />
b) <break />
c) <lb />

5. What is the correct HTML for adding a background color?
a) <body style="background-color:yellow">
b) <background>yellow</background>
c) <body background="yellow">

6. Choose the correct HTML tag to make a text bold
a) <b>
b) <bold>


7. Choose the correct HTML tag to make a text italic
a) <italic>
b) <i>


8. What is the correct HTML for creating a hyperlink?
a) <a href="http://www.w3schools.com">W3Schools</a>
b) <a url="http://www.w3schools.com">W3Schools.com</a>
c) <a name="http://www.w3schools.com">W3Schools.com</a>
d) <a>http://www.w3schools.com</a>


9. How can you create an e-mail link?
a) <a href="mailto:xxx@yyy">
b) <a href="xxx@yyy">
c) <mail href="xxx@yyy">
d) <mail>xxx@yyy</mail>

10. How can you open a link in a new browser window?
a) <a href="url" target="new">
b) <a href="url" target="_blank">
c) <a href="url" new>

11. What does CSS stand for?
a) Colorful Style Sheets
b) Computer Style Sheets
c) Cascading Style Sheets
d) Creative Style Sheets


12.What is the correct HTML for referring to an external style sheet?
a) <link rel="stylesheet" type="text/css" href="mystyle.css">
b) <style src="mystyle.css">
c) <stylesheet>mystyle.css</stylesheet>

13. Where in an HTML document is the correct place to refer to an external style sheet?
a) At the end of the document
b) At the top of the document
c) In the <head> section
d) In the <body> section

14. Which HTML tag is used to define an internal style sheet?
a) <style>
b) <css>
c) <script>

15. Which HTML attribute is used to define inline styles?
a) style
b) class
c) font
d) styles

16. Which is the correct CSS syntax?
a) {body:color=black(body}
b) body {color: black}
c) body:color=black
d) {body;color:black}

17. How do you insert a comment in a CSS file?
a) // this is a comment
b) /* this is a comment */
c) // this is a comment //
d) ' this is a comment

18. Which property is used to change the background color?
a) bgcolor:
b) Color:
c) background-color:

19. How do you add a background color for all <h1> elements?
a) h1 {background-color:#FFFFFF}
b) all.h1 {background-color:#FFFFFF}
c) h1.all {background-color:#FFFFFF}

20. How do you change the text color of an element?
a) color:
b) text-color=
c) text-color:
d) fgcolor:

21. Inside which HTML element do we put the JavaScript?
a) <scripting>
b) <script>
c) <javascript>
d) <js

22. What is the correct JavaScript syntax to write "Hello World"?
a) document.write("Hello World")
b) response.write("Hello World")
c) ("Hello World")
d) "Hello World"

23. Where is the correct place to insert a JavaScript?
a) The <body> section
b) The <head> section
c) Both

24. What is the correct syntax for referring to an external script called "xxx.js"?
a) <script type="text/javascript" name="xxx.js">
b) <script type="text/javascript" href="xxx.js">
d) <script type="text/javascript" src="xxx.js">

25. The external JavaScript file must contain the <script> tag
a) True
b) False

26. How do you write "Hello World" in an alert box?
a) msgBox("Hello World")
b) alert("Hello World")
c) alertBox("Hello World")
d) alertBox="Hello World"

27. How do you create a function?
a) function=myFunction()
b) function myFunction()
c) function:myFunction()

28. How do you call a function named "myFunction"?
a) myFunction()
b) call function myFunction
c) call myFunction()

29. How do you write a conditional statement for executing some code if "i" is equal to 5?
a) if i=5 then
b) if i==5 then
c) if (i==5)
d) if i=5

30. How do you write a conditional statement for executing some code if "i" is NOT equal to 5?
a) if =! 5 then
b) if (i <> 5)
c) if <>5
d) if (i != 5)

31. What does XML stand for?
a) eXtra Modern Link
b) eXtensible Markup Language
c) X-Markup Language
d) Example Markup Language

32. There is a way of describing XML data, how?
a) XML uses XSL to describe data
b) XML uses a DTD to describe the data
c) XML uses a description node to describe data

33. XML's goal is to replace HTML
a) True
b) False

34.What is the correct syntax of the declaration which defines the XML version?
a) <?xml version="1.0" />
b) <?xml version="1.0"?>
c) <xml version="1.0" />

35. What does DTD stand for?
a) Do The Dance
b) Direct Type Definition
c) Dynamic Type Definition
d) 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>
a) Yes
b) No


37. Which statement is true?
a) All XML elements must be lower case
b) All XML elements must be properly closed
c) All XML documents must have a DTD
d) All the statements are true

38. Which statement is true?
a) All the statements are true
b) XML tags are case sensitive
c) XML documents must have a root tag
d) XML elements must be properly nested

39. XML preserves white spaces
a) True
b) False

5 comments:

  1. Very excellent and useful post! I enjoy reading it. Thank you so much for sharing this marvelous information with us.

    ReplyDelete
  2. thanks for sharing , this is nice post...!
    web designing bangalore

    ReplyDelete
  3. It's remarkable in support of me to have a website, which is useful
    in favor of my experience. thanks admin

    ReplyDelete