HTML/XHTML Test Answer Part-03

41. The tag which is used to show monospaced text is:

a. <.td>

b. <.th>

c. <.tt>

d. <.b>

 

42. What would you infer from the following code in an HTML 4.01 Web site? <.body topmargin=.2 leftmargin.=2>

a. The top margin and left margin of the webpage is 2 pixels.

b. The bottom margin and right margin of the web page is 2 pixels.

c. Both of the above.

d. None of the above. The topmargin and leftmargin attributes are not valid HTML 4.01 body attributes.

 

43. A few lines in an HTML paragraph are to be formatted differently from the rest of the lines. Which tag will assist in this?

a. div

b. p

c. span

d. format

 

44. Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?

a. col

b. colgroup

c. rowspan

d. row

 

45. 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″

c.  coords=”150,217,190,257,150″

d.  coords=”150,110,190,220,150,150,120″

 

46. For the following items of a <.select> list:
<.option value=.”89″>Item 1<./option>
<.option value=.”90″>Item 2<./option>
Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list?

a. 89

b. 90

c. Item 1

d. Item 2

 

47. The tag that is used to pass the parameters to an applet is:

a. appletpar

b. applet

c. param

d. val

 

48. Which of the following values for the scrolling attribute for the frame tag is not valid?

a. yes

b. default

c. auto

d. no

 

49. Is the following code valid in HTML 4.01 Strict?
<.ul><.li><.ol><.li>A<./li><.li>B<./li><.ul><.li>Item1<./li><.li>Item 2<./li><./ul><.li>C<./li><./ol><./li><./ul>

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 a tag should not conflict with an tag at the same list level.

 

50. The following link is placed on an HTML webpage.

<.a href=.”http://msdn.com/” target=”._blank”> MSDN <./a>

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.

d. It will not be clickable as it is not formed correctly.

 

51. Which of the following attributes is/are related to the <.img> tag?

a. height

b. alt

c. src

d. All of the above 

 

52. You are creating several web pages for a website that contain several rather large data tables, many of which are somewhat similar in the number of columns, rows, and in other common table formatting. In addition, CSS will be employed for formatting the tables. Which one of the following types of CSS has the highest priority over the others and typically requires the greatest total amount of code space for the entire website for formatting the various table cells?

a. External style sheet

b. Inline style 

c. Internal style sheet

d. Browser default

 

53. A piece of text contains many blank spaces within it. Which of the following tags would be suitable to display the text as it was originally formatted?

a. td

b. p

c. ls

d. pre 

 

54. Which of the following is/are not true for a paragraph tag in HTML 4.01?

a. The text must be enclosed in <.p> and <./p> tags.

b. It creates an empty line above its starting line.

c. It cannot be used within a <.td> tag.

d. It creates an empty line after its ending line.

 

55. 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.

c. Closing the tag is optional.

d. It places an empty line after the text.

 

56. While designing the links page of your website, you want the link to open in a new window. How will you implement this with XHTML using Transitional doc type?

a. <.anchor href=.”http://www.mailer.com”>Mailer<./anchor>

b. <.anchor href=.http://www.mailer.com target=_blank>Mailer<./anchor>

c. <.A HREF=.”http://www.mailer.com”>Mailer<./A>

d. <.a href=.”http://www.mailer.com” target=”_blank”>Mailer<./a>* 

 

57. Take a look at the following code:
<.html>
<.head>
<.title>HTML AND XHML<./title>
<.body>
<.h1>Defining HTML
<./body> What will happen when you run this code in the browser?

a. With a .html extension, the page will be displayed with errors

b. With a .html extension, the page will not be displayed at all

c. With a .xhtml extension, the page will be displayed with errors *

d. With a .xhtml extension, the page will not be displayed at all

 

58. While writing a strict DTD XHTML document, you want to create a table having 2 columns, both left aligned. What technique will you choose to do this?

a.

<.table align=”left” border=”1″>

<.tr>Plan A <./td>

<.td align=”left”>Monthly payment of $60<./td>

<./tr>

<./table>

b.
<.tr>
Plan A<./td>
<.td align=”left”>Monthly payment of $60<./td>
<./tr>*
<./table> 

c.

<.table align=”left” border=”1″>

<.tr>

Plan A<./td>

<.td align=”left”>Monthly payment of $60<./td>

<./tr>

<./table>

d.

<.tr>

Plan A<./td>

<.td>Monthly payment of $60<./td>

<./tr>

<./table>

 

59. What do you infer from the following code?

<.a href =. “http://www.expertrating.com.”> Expert Rating

a. This href is using absolute path for linking.

b. This href is an example of relative path linking.

Comments

comments

2 Comments

Leave a Comment

Time limit is exhausted. Please reload CAPTCHA.