Chủ Nhật, 10 tháng 6, 2012

Trắc nghiệm kiến thức cơ bản HTML/XHTML/XML

Trong bài này, chúng ta sẽ trắc nghiệm tổng hợp về ngôn ngữ HTML/XHTML/XML. Với mỗi đáp án các bạn chọn, hãy giải thích tại sao các bạn lại chọn đáp án đó.

HTML

1. What does HTML stand for ?


a./ Hyperlinks and Text Markup Language
b./ Home Tool Markup Language
c./ Hyper Text Markup Language
d./ Home Text Markup Language

2. What is the syntax to write the HTML tags ?

a./ (HTML)
b./ <%HTML%>
c./ "HTML"
d./ <HTML>

3. What is the correct HTML tag for inserting an horizontal line ?

a./ <hr>
b./ <line>
c./ <horizontal line>
d./ <tr>

4. How do you define font style of the text ?

a./ <text style="Arial">
b./ <font style="Arial"></font>
c./ <text=Arial>
d./ <style="Arial">

5. Tags and text that do not show directly on the page are placed where ?

a./ Head
b./ Body
c./ Tables
d./ Title

6. What is the file extension used for HTML file ?

a./ .webpage
b./ .shtml
c./ .html
d./ .doc

7. The <i> tag makes text... ?

a./ Bold
b./ Inline
c./ Underlined
d./ Italic

8. Besides <B>, another way to make text bold is what ?

a./ <fat>
b./ <strong>
d./ <dark>
d./ <emp>

9. To seperate single list items use ?

a./ <ol> and </ol>
b./ <ul> and </ul>
c./ <li> and </li>
d./ <th> and </th>

10. To create a bulleted list use ?

a./ <ol>
b./ <il>
c./ <bullet>
d./ <ul>

11. To change the size of an image in HTML use what ?

a./ pliers
b./ height and width
c./ top and bottom
d./ bigger and smaller

12. Which tag is used to insert images into your web page ?

a./ img
b./ scr
c./ pic
d./ image

13. What does vlink mean ?

a./ active link
b./ virtuallink
c./ visited link
d./ very good link

14. Which colors consist of equal amounts of all basic colors ?

a./ purple, green, and red
b./ white, black and gray
c./ white,red,blue
d./ black, blue, and gray

15. To add rows to your tables use which tags?

a./ <td> and </td>
b./ <cr> and </cr>
c./ <th> and </th>
d./ <tr> and </tr>

16. Increasing the cellpadding value will what ?

a./ Increase the distance between cell and content
b./ Increase the softness of your site
c./ Increase the space between cells
d./ none

17. You can add names to each frame window using which setting ?

a./ src
b./ ur
c./ name
d./ none

18. Which is not valid HTML ?

a./ <frameset columns="16%,84%">
b./ <frameset rows="16%,84%">
c./ <frameset table="100,100">
d./ <frameset cols="100,150">

19. Which attribute specify where to send a form ?

a./ method
b./ input
c./ output
d./ action

20. Password fields are similar to what ?

a./ Text fields except text show as asterix
b./ Hidden fields except text show as asterix
c/ Text area except text show as asterix
d./ none

XHTML

1. What does XHTML stand for?

a./ EXtreme HyperText Markup Language
b./ EXtensible HyperText Marking Language
c./ EXtensible HyperText Markup Language
d./ EXtra Hyperlinks and Text Markup Language

2. What is the correct XHTML for a paragraph?

a./ <P></p>
b./ </p><p>
c./ <p></p>
d./ <P></P>

3. What is a correct XHTML tag for a line break?

a./ <break/>
b./ <br />
c./ <br>
d./ <break>

4. What is the correct XHTML for an attribute and its value?

a./ WIDTH="80"
b./ width=80
c./ width="80"
d./ WIDTH=80

5. Which elements are mandatory in an XHTML document?

a./ doctype, html, head, body, and title
b./ doctype, html and body
c./ doctype, html, head, and body
d./ doctype, html, title, and body

6. What XHTML code is "well-formed"?

a./ <p>A <b><i>short</i></b> paragraph
b./ <p>A <b><i>short</i></b> paragraph</p>
c./ <p>A <b><i>short</b></i> paragraph</p>
d./ None of these

7. Which of the following is the right use of the lang attribute?

a./ <div language="en">Hello World!</div>
b./ <div lang="en" xml:lang="en">Hello World!</div>
c./ <div xml:language="en">Hello World!</div>
d/ <div xml:lan="en">Hello World!</div>

8. Which attribute replaces the name attribute?

a./ The src attribute
b./ The id attribute
c./ None
d./ All of the above

9. What are the different DTDs in XHTML?

a./ Strict, Transitional, Frameset
b./ Strict, Transitional, Loose, Frameset
c./ Strict, Transitional, Loose
d./ Strict, Transitional, Loose ,Form

10. What is the most common XHTML DTD?

a./ Frameset
b./ Loose
c./ Transitional
c./ Normal

11. Which of the statments are true?

a./ SGML is a subset of XHTML
b./ XHTML and SGML are both subsets of HTML
c./ SGML is a simplified version of XHTML
d./ XHTML is a subset of SGML

12. Which of the statements are false?

a./ XHTML is parsed with a DTD
b./ The Doctype Declaration indicates to the parser which DTD to use
c./ XHTML documents are not parsed in the browser before display
d./ XHTML syntax needs to be well formed

13. What statement makes the most sense?

a./ XHTML is more advanced than HTML
b./ HTML and XHTML are both the same language
c./ XML and XHTML are written in the same mannor
d./ HTML will load faster than XHTML in most cases

14. Which statment makes the least sense?

a./ XHTML will replace most of the HTML pages on the internet
b./ HTML will still be the choice of most professional web developers for many years to come
c./ XHTML is a replacement for HTML
d./ HTML causes a lot of problems on the internet in it current form

15. XHTML will work best if it is Validated ?

a./ This is a true statement
b./ It is not always best to validate XHTML
c./ The statment is false
d./ XHTML is not validated

16. For XHTML to function properly?

a./ You require a special type of browser
b./ The code should be written in uppercase letters
c./ All end tags should be left open
d./ The XHTML document should be valid and well formed

17. In writing XHTML

a./ The opening and closing tags should start and end with XHTML
b./ The end tags of the img tag should be left open
c./ Uppercase letters should not be used between the opening and closing tags
d./ The Doctype Declaration should have a closing tag simular to the img tag or the meta tag

18. In writing XHTML

a./ Attributes do not have quotes for their values
b./ All attributes values require quotes
c./ All values require attributes
d./ Quotes are values

19. Which of the following best describes the purpose of an array?

a./ To store a piece of information
b./ To store a list of information
c./ To organize code in a logical fashion
d./ To relate two pieces of information

20. What is the DTD?

a./ A method tied to an object
b./ The Document Type Declaration
c./ A Detrimental Transitional Development
d./ The Difinitive Type Definition

21. Do all XHTML documents require a doctype?

a./ Yes
b./ No

22. All XHTML tags and attributes must be in lower case

a./ True
b./ False

XML

1. What is XML ?

a./ Extensible MarkUp Language
b./ Extra Modern Link
c./ Example markup Language
d./ X-Markup Language

2. Which Statement about xml is true?

a./ Elements may have multiple atrribute with the same name
b./ Quoting attribute is optional.
c./ Elements may nest but not overlap
d./ All of the above.

3. What is the correct declation syntax for the version of an XML document?

a./ </xml version="1.0"/>
b./ <?xml version="1.0"/?>
c./ <xml version="1.0">
d./ none of the above

4. How is an empty XML element defined?

a./ <sample></sample>
b./ <sample/>
c./ All of the above.
d./ None of the above.

5. Which syntax is used to insert comments into an XML document?

a./ <comment>This is a comment</comment>
b./ <?-This is a comment->
c./ <!-This is a comment->
d./ All of the above.

6. What does DTD stand for?

a./ Dynamic Type Definition.
b./ Document Type Definition.
c./ Do The Dance.
d./ Direct Type Definition.

7. Which statement is true?

a./ All XML documents must have a DTD.
b./ All XML elements must be lower case.
c./ All XML elements must be properly closed.
d./ All of the above.

8. Which statement is true?

a./ XML tags are case sensitive.
b./ XML documents must have a root tag.
c./ XML elements must be properly closed.
d./ All of the above.

9. Which is not a correct name for an XML documents?

a./ <Note>
b./ <h1>
c./ <1dollar>
d./ All 3 names are incorrect.

10. Which is not a correct name for an XML element?

a./ <age>
b./ <NAME>
c./ <first name>
d./ All three names are incorrect.

11. What does XSL stand for?

a./ eXtra Style Language
b./ eXpandable Style Language
c./ eXtensible Style Listing
d./ eXtensible Stylesheet Language

12. What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

a./ <link type="text/xsl" href="mystyle.xsl" />
b./ <?xml-stylesheet type="text/xsl" href="mystyle.xsl"?>
c./ <stylesheet type="text/xsl" href="mystyle.xsl" />
d./ All of the above

13. For the XML parser to ignore a certain section of your XML document, which syntax is correct?

a./ <CDATA> Text to be ignored </CDATA>
b./ <![CDATA[ Text to be ignored ]]>
c./ <PCDATA> Text to be ignored </PCDATA>
d./ <xml:CDATA[ Text to be ignored ]>

14. XML is a _______ Recommendation

a./ Microsoft
b./ Sun
c./ W3C
d./ None of these

15. XML is

a./ Free and Extensible
b./ Not Extensible.
c./ A stylsheet
d./ None of these

16. XML is a Complement to

a./ XHTML.
b./ HTML
c./ Xquery
d./ Xpath


17. XML Schema is designed to

a./ be self-descriptive
b./ disply only useful data
c./ carrying request
d./ giving response.

18. XML uses

a./ an XML Schema to describe the data
b./ an XHTML Schema to describe the data
c./ an XPath to describe the data
d./ an XQuerya to describe the data

19. XML Can be Used to

a./ Replace old language.
b./ Create new language.
c./ All of the above
d./ None of these.

20. XML is the mother of

a./ HTML.
b./ WAP and WML
c./ All of the above
d./ None of these.

Editor: Dương T.K. Linh, Vương L. Kiều (Baomathethong.blogspot.com)
Copyrighted Content: N/A

Không có nhận xét nào:

Đăng nhận xét