Wednesday, January 16, 2013

oDesk HTML 4.01 Test 2012


Q.1: Which of the following font styling tag is not valid?
a.
b.
c. (Answer)
d.
e.

Q.2: Which form event is fired on the click of a button using a button tag with its type attribute value equal to submit?
a. onload
b. onsubmit (Answer)
c. onunload
d. onreset

Q.3: Which of the following tags can be used in place of a button tag?
a. legend
b. ol
c. input (Answer)
d. dl

Q.4: Which of the following is invalid value for the shape attribute of an area tag?
a. circle
b. tri (Answer)
c. rect
d. poly

Q.5: What is the character-entity representation of the “less than” sign (<)?
a. 60;# (Answer)
b. <
c. &60#;
d. #60&;

Q.6: Which of the following statements is correct for the
tag?
a. The text under block quote must be enclosed in a block level element in a strict DTD document.
b. The attribute named cite must be specified. (Answer)
c. Closing the tag is optional.
d. It places an empty line after the text.

Q.7: A developer wrote this image tag:
”States”</strong
usemap =”#statemap” />
What code should follow this?
a.
alt=”State1″ />

b.
alt=”State1″ />
c.

alt=”State1″ />
(Answer)
d.
alt=”State1″ />

Q.8: Which of the following is/are not valid?
a.

Main Title


b. Main Title (Answer)
c.

Main Title


d. Main Title

Q.9: Where must the styles specified for a CSS internal style sheet be located?
a. Inside a table tag
b. Inside a div tag
c. Inside the head tag
d. Anywhere on the webpage (Answer)

Q.10: What is meant by cellpadding?
a. It makes the cell span more than one column.
b. It specifies the space between the cell wall and the contents of the cell.
c. It specifies the space between two cells.
d. It makes the cell span more than one row. (Answer)

Q.11: Which of the following is true for the tag?
a. The attribute named cols specifies the number of columns in colgroup.
b. It is useful for applying similar formatting to the grouped columns. (Answer)
c. It can be used anywhere between the body tags.
d. It can be inserted in a
tag to include that cell to the group.

Q.12: Is the following code valid in HTML 4.01 Strict?
    1. A
    2. B
      • Item 1
      • Item 2
    3. C
a. Perfectly valid.
b. Invalid because you should not have three levels of nesting in the lists.
c. Invalid because you should not have an unordered list within an ordered list.
d. Invalid because you should not have an ordered list within an unordered list. (Answer)
e. Invalid because a
    tag should not conflict with an
      tag at the same list level.

Q.13: Which of the following is true for the tag in HTML 4.01?
a. It does need a closing tag. (Answer)
b. The language attribute cannot be specified with it.
c. The name and type attributes are optional.
d. The class, id, and title attributes can be specified for it.

Q.14: Within a table cell
:
a.
tags cannot be used.
b.
    tags cannot be used.
    c.
    tags cannot be used.
    d.
    tags cannot be used.
    e. All the above tags could be used. (Answer)

    This question is based upon the figure shown below
    Q.15: You want to display a table listing out customer names and their contact information. The heading of the table is shown in the figure. What is the code for creating the first line of the table heading?
    a.
    Customer Name

    Contact

    b.

    Customer Name


    Contact

    (Answer)
    c.
    Customer Name

    Contact

    d.
    Customer Name

    Contact


    Q.16: It is not necessary to give the coordinates for an image or object defined within an area tag, if the value of its shape attribute is:
    a. circle
    b. poly
    c. default (Answer)
    d. rect

    Q.17: A defines the document type of any HTML document. It can be of three types:
    a. Strict, Transitional, or Frameset
    b. Strict, Transitional, or Loose
    c. Fixed, Intermediate, or Loose
    d. Fixed, Intermediate, or Frameset (Answer)

    Q.18: You are designing a website for one of your clients. You have to use an applet named cal.class to show a scrollable calendar. Which of the following is the recommended way of calling it if you are using HTML 4.01?
    a.
    b.
    c. (Answer)
    d.

    Q.19: How will you specify a comment in an HTML document?
    a. <!!- Here is a comment… -!>
    b. <-here -="-" a="a" comment..="comment.." is="is">
    c. <!– Here is a comment.. –> (Answer)
    d. <! Here is a comment… -!>

    Q.20: On one of your Web pages named Listing.html, you specified a target like this:
    How will you make a link to the above target?
    a. Check Old Listing as well
    b. Check Old Listing as well
    c. Check Old Listing as well (Answer)
    d. Check Old Listing as well

    Q.21: How does a button created by the
    a. An input tag button can be a reset button too.
    b. A button tag button can be a reset button too. (Answer)
    c. An input tag button can include images as well.
    d. A button tag can include images as well.

    Q.22: Which of the following would give a yellow background to the web page?
    Note: The code used in the “correct” answer below was deprecated in HTML 4.01! Use styles instead for new code.
    a.
    b.
    c.
    d. (Answer)

    Q.23: Which of the following attributes is/are not associated with textarea tag in W3C standard HTML 4.01?
    a. wrap
    b. cols
    c. name (Answer)
    d. rows
    e. ref

    Q.24: Which of the following is correct regarding the frame attribute in the tag?
    a. It is used to add a frame to the table.
    b. A hsides value for the frame attribute will show the border lines for horizontal sides only.
    c. A hsides value for the frame attribute will not show the border lines for horizontal sides only. (Answer)
    d. A hsides value for the frame attribute will add a scrollable frame on the horizontal sides.

    Q.25: Which of the following attributes is/are related to the tag?
    a. height
    b. alt
    c. src
    d. All of the above (Answer)
    Q.26: Which of the following is/are a valid value for the type attribute of the input tag?
    a. text
    b. icon (Answer)
    c. reset
    d. password

    Q.27: Which of the following statements is correct for a blockquote?
    a. It makes the text a bit bigger for emphasizing.
    b. It defines the start of a long quote. (Answer)
    c. It makes the text slightly bolder.

    Q.28: Your website has moved to some other address. What HTML 4.01 code would automatically redirect a user to that address within 3 seconds of landing on the old address?
    a.
    b.
    c. (Answer)
    d.

    Q.29: Which of the following set of coordinate values refers to an image defined by the area tag with the value of poly for its shape attribute?
    a. coords=”150,217,190,257,150,297,110,257″
    b. coords=”150,190,150,110″ (Answer)
    c. coords=”150,217,190,257,150″
    d. coords=”150,110,190,220,150,150,120″

    Q.30: While designing the links page of your website, you want the link to open in a new browser window. How will you implement this with HTML?
    a. Mailer
    b. Mailer (Answer)
    c. Mailer
    d. Mailer

    Q.31: Which of the following is incorrect about the relation between HTML and XHTML?
    a. XHTML is a stricter and cleaner version of HTML.
    b. XHTML is almost identical to HTML 4.01.
    c. XHTML and HTML both are used to generate dynamic content. (Answer)
    d. XHTML brings together the elements of HTML and the syntax of XML.
    Q.32: Your browser supports bidirectional text. Which tag below will you use if you need to display text from right to left?
    a. Text should go in opposite direction
    b.
    Text should go in opposite direction
    (Answer)
    c. Text should go in opposite direction
    d. Text should go in opposite direction

    Q.33: Choose the incorrect statement(s):
    a. An HTML attribute is additional information included inside a tag.
    b. HTML is case sensitive.
    c. All the HTML4.01 tags must be paired.
    d. Your browser may appear to correctly use newly deprecated code for the present, but its support for deprecated code could be halted at any time after the browser is updated. (Answer)

    Q.34: You do not want the user to resize the frame. The code should be:
    a.
    b.
    c.
    d. (Answer)

    Q.35: The following link is placed on an HTML webpage.
    What do you infer from it?
    a. It will open the site msdn.com in the same window.
    b. It will open the site msdn.com in a new window.
    c. It will open the site msdn.com in a frame below. (Answer)
    d. It will not be clickable as it is not formed correctly.

    Q.36: The tag that is used to pass the parameters to an applet is:
    a. appletpar
    b. applet (Answer)
    c. param
    d. val

    Q.37: You want to create a link for your website allowing users to email the webmaster. How will you implement this if the webmaster’s email address is webmaster@xcompany.com?
    a. webmaster
    b. webmaster
    c. webmaster
    d. webmaster
    e. webmaster (Answer)

    Q.38: Which attribute(s) of the tag is/are deprecated in HTML 4.01?
    a. align and cellspacing
    b. summary
    c. bgcolor and align (Answer)
    d. cellspacing

    Q.39: You want to provide a form field to the users for writing lengthy comments on the quality of the services provided by you. Which of the following tags will you use?
    a.
    b.
    c. (Answer)
    d.

    Q.40: View the following code:





    What will be displayed on viewing the above in a browser?
    a. An HTML page with three columns of equal width.
    b. An HTML page with three rows of equal height.
    c. An HTML page with the last column occupying 60% space. (Answer)
    d. An HTML page with the last column occupying 40% space.


    powered by : infusion infotech 

    No comments:

    Post a Comment