Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 0:53
Question 1 of 40
You have defined the following image in an XHTML document:
<img src="/image/logo.gif" alt=""
id="img1" />
a.
The code will only work properly in a browser that supports
XHTML
b.
The code will work properly in a browser that supports both
HTML 4.x and XHTML
c.
The code will only work properly in a browser that supports
HTML 4.x
d.
The code is incorrect, it will not work in any browser
Question 2 of 40
Within a table cell "<td>":
a.
<p></p> tags can't be used
b.
<ol></ol> tags can't be used
c.
<table></table> tags can't be used
d.
<form></form> tags can't be used
e.
All the above tags can be used
Question 3 of 40
Which of the following is incorrect with regard to the
<select> tag?
a.
The "name" should be specified
b.
The "disabled" attribute disables the drop-down
list
c.
The "multiple" attribute allows the user to choose
multiple options
d.
The text specified in the
"value" is displayed in the drop-down list
e.
None of the above
Question 4 of 40
You placed four radio buttons on a web form. You want the
users to specify whether they are male or female and whether they are married or
single. The code is as follows:
Male: <input type="radio"
checked="checked" name="chk" value="male" />
Female: <input type="radio"
name="chk" value="female" />
Married: <input type="radio"
checked="checked" name="chk" value="married"
/>
Single: <input type="radio"
name="chk" value="single" />
What is wrong with the above code?
a.
It will allow the user to choose only the male and the
married options
b.
It will allow the user to choose only the female and single
options
c.
It will allow the user to choose only one option out of the
four
d.
It will allow the user to choose all the four options at the
same time
Question 6 of 40
Please choose the most appropriate option.
One of the differences between XHTML and HTML 4.01 is that
the "name" attribute has been replaced by the "id"
attribute in:
a.
img and applet tags
b.
img and map tags
c.
map and frame tags
d.
img, map, frame and applet tags
e.
frame, applet, style and map tags
Question 7 of 40
Which of the following is not correct for a <meta>
tag?
a.
It is more useful if it is placed in a head element
b.
It can be used to specify the keywords for the search
engines
c.
It can be used to redirect users to other URLs
d.
It is mandatory to specify the name or scheme attributes
Question 8 of 40
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.
<textarea rows="8" cols="20"> Your
comments ....</textarea>
b.
<textarea row="8" col="20"> Your
comments ....</textarea>
c.
<textarea rowcount="8"
colcount="20"> Your comments ....</textarea>
d.
<input type="text" maxlength="100"
/>
Question 9 of 40
You are developing a website. In one of the subscription
forms, you need to get the subscription start date from the user. The HTML code
is as follows:
Day <input type="text" size="3" />
Month <input type="text" size="10"
/>
Year <input type="text" size="4"
/>
Which of the following will you use if you want to put these
3 text fields together in a box?
a.
<legend>
b.
<box>
c.
<fieldset>
d.
<area>
Question 10 of 40
You specified a base tag and anchors as follows:
1. <base target="_blank"></base>
2. <a
href="http://www.yahoo.com">Yahoo</a>
3. <a href="http://www.google.com" target="_top">Google</a>
Which of the following is true for the above code?
a.
Only the Yahoo link will open in a new window
b.
Only the Google link will open in a new window
c.
Both links will open in a new window
d.
Both links will open in the same window
Question 11 of 40
You have to add a list of products in a drop-down list. What
will you use to group the identical products under a category name?
a.
optgroup
b.
option
c.
menu
d.
var
Question 12 of 40
Which attributes of the <table> tag is deprecated in
HTML 4.01 and not supported in strict DTD XHTML?
a.
align
b.
bgcolor
c.
cellspacing
Question 13 of 40
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 is
"webmaster@xcompany.com"?
a.
<a
href="mailto:webmaster@xcompany.com">webmaster</a>
b.
<a
href="webmaster@xcompany.com">webmaster</a>
c.
<a
http="mail:webmaster@xcompany.com">webmaster</a>
d.
<mail
http="send:webmaster@xcompany.com">webmaster</mail>
e.
<a href="mailto://webmaster@xcompany.com">webmaster</a>
Question 14 of 40
The following registration form was coded by a programmer in
XHTML:
1. <!-- Start of the Form Fields -->
2. Name:
3. <input type="text" name="name"
maxlength="50" />
4. Registration Date:
5. <input readonly type="text"
value="javascript:getDate();" />
6. Account Type:
7. <select name="Account">
8. <option "selected"
value="Primary">Primary</option>
9. <option
value="Secondary">Secondary</option>
10. </select>
Which of the following options is true with regard to this
XHTML document?2
Time's up!
Which of the following
options is true with regard to this XHTML document?
a. The syntax of the input tag at line 3 is incorrect
b. The readonly attribute in line 5 is not correctly coded
c. The syntax of the select tag is not correct
d. Maxlength cannot be specified with text boxes
a. The syntax of the input tag at line 3 is incorrect
b. The readonly attribute in line 5 is not correctly coded
c. The syntax of the select tag is not correct
d. Maxlength cannot be specified with text boxes
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:18
Question 15 of 40
A developer wrote this image tag:
<img src ="states.gif" width ="330"
height ="406" alt="States"
usemap ="#statemap" />
What code should follow this?
a.
<map id ="statemap"
name="statemap">
<area shape ="rect"
coords ="0,0,82,126" href="state1.htm" alt="State1"
/>
</map>
b.
<map id ="statemap"
name="statemap"></map>
<area shape ="rect" coords
="0,0,82,126" href="state1.htm" alt="State1"
/>
c.
<map id ="statemap"
name="statemap">
<imgarea shape ="rect" coords
="0,0,82,126" href="state1.htm" alt="State1"
/></map>
d.
<map id ="statemap"
name="statemap"></map>
<imgarea shape ="rect" coords
="0,0,82,126" href="state1.htm" alt="State1"
/>
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:12
Question 16 of 40
Your website has moved to some other address. How will you
automatically redirect a user to that address within 3 seconds of landing on
the old address?
a.
<meta http-equiv="refresh" content="3;
url=http://www.newurl.com"/>
b.
<meta http="refresh"
url="www.newurl.com"//>
c.
<meta scheme="refresh"
name="redirect" http="www.newurl.com"//>
d.
<meta http-equiv="redirect"
content="3" http="www.newurl.com"/>
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:11
Question 17 of 40
Which of the following is correct about the <!DOCTYPE
...> tag?
a.
It is not considered to be mandatory as per the XHTML
specification
b.
It must have a closing tag
c.
It should come just after the <html> tag
d.
Its declaration is not a part of the XHTML document itself
e.
None of the above
Question 18 of 40
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><td>Plan A </td>
<td align="left">Monthly payment of
$60</td>
</tr>
. . .
. . .
</table>
b.
<table border="1">
<tr><td
align="left">Plan A</td>
<td
align="left">Monthly payment of $60</td>
</tr>
. . .
. . .
</table>
c.
<table align="left" border="1">
<tr><td align="left">Plan A</td>
<td align="left">Monthly payment of
$60</td>
</tr>
. . .
. . .
</table>
d.
<table border="1">
<tr><td align="left">Plan A</td>
<td>Monthly payment of $60</td>
</tr>
. . .
. . .
</table>
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 0:43
Question 19 of 40
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>
Question 20 of 40
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
d.
XHTML brings together the elements of HTML and the syntax of
XML
Question 21 of 40
Which of these tags will create a single space character?
a.
<td>
b.
<th>
c.
d.
<b>
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:19
Question 22 of 40
How will you specify the language attribute in XHTML?
a.
<div lang="en"
xml:lang="en">Listing A</div>
b.
<div language="en">Listing A</div>
c.
<div language="en"
xhtml:lang="en">Listing A</div>
d.
<div xml:language="en">Listing A</div>
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 0:46
Question 23 of 40
How will you import a style sheet named
"basic.css" in your web page?
a.
<import name="stylesheet"
url="basic.css">
b.
<link rel="stylesheet" type="text/css"
href="basic.css"/>
c.
<style name="stylesheet"
url="basic.css">
d.
<link item="stylesheet"
type="text/css" href="basic.css">
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:06
Question 24 of 40
On one of your web pages named "Listing.xhtml" you
specified a target like this:
<a name="target4">Old Listing</a>
How will you make a link to the above target?
a.
<a url="#target4">Check Old Listing as
well</a>
b.
<a
href="#target4">Check Old Listing as well</a>
c.
<link url="target4">Check Old Listing as
well</link>
d.
<a href="Listing.target4">Check Old Listing
as well</a>
Report an issue with
this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 0:51
Question 25 of 40
Which of the following lines will be allowed by an XHTML parser?
a.
<p>This is the starting of a new paragraph
b.
<P>This is the starting of a new paragraph<P>
c.
Here is a break statement <br></br>
d.
New Horizontal line <hr />
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 0:37
Question 26 of 40
Which attribute specifies the submit URL in a form?
a.
method
b.
action
c.
name
d.
id
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Question 27 of 40
What do you understand by the following line of code?
<html xmlns="http://www.w3.org/TR/REC-xml-names">
a.
xmlns specifies the URL to qualify
the names used in the XHTML document
b.
xmlns means html-xml number sequence
c.
Elimination of xmlns tag will result in the document not
being validated by a w3.org validator
d.
The page will not be displayed properly if the URL is
changed to "http://www.w3.org/1999/xhtml"
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:25
Question 28 of 40
What is the numeric entity representation of the 'less than'
sign (its entity name is '<') ?
a.
60;#
b.
<
c.
&60#;
d.
#60&;
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Question 29 of 40
Your browser supports bidirectional text. Which tag will you
use if you need to display text from right to left?
a.
<opposite>Text should go in opposite
direction</opposite>
b.
<p direction="rtl">Text should go in
opposite direction</p>
c.
<bdo dir="rtl">Text should go in opposite
direction</bdo>
d.
<text dir="rtl">Text should go in opposite
direction</text>
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 0:51
Question 30 of 40
Which of the following is correct for an image?
a.
An image must be resized in an editor to fit in the
specified space on a webpage
b.
If you have a big image but specify smaller height and width
attributes in the <img> tag, only the top left portion of the image will
be displayed in the browser
c.
Both a and b are correct
d.
The height and width attributes
allow resizing the image on the webpage
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:06
Question 31 of 40
Which of the following statements is correct with regard to
DTDs?
a.
A strict DTD allows the user to use cascading style sheets
b.
A transitional DTD displays content in those browsers which
don't support CSS
c.
A frameset DTD is used to
partition the browser window
d.
All of the above
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:15
Question 32 of 40
Which of the following
statements is correct for the <blockquote> tag?
a.
The text under blockquote 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 doesn't place an empty line after the text
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 0:40
Question 33 of 40
How will you specify a comment in an XHTML document?
a.
<!!-- Here is a comment... --!>
b.
<-- Here is a comment.. -->
c.
<!-- Here is a comment.. -->
d.
<! Here is a comment... --!>
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:20
Question 34 of 40
Which of the following is true for the
"<param>" tag?
a.
It doesn't need a closing tag
b.
The language attribute cannot be specified with it
c.
The name and type attributes are optional
d.
The class, id and title can be specified for it
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 0:42
Question 35 of 40
What do you understand by cellspacing?
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
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:46
Question 36 of 40
This question is
based upon the figure shown below
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.
<tr><th>Customer Name</th>
<th rowspan="3">Contact</th>
</tr>
b.
<tr><th>Customer Name</th>
<th colspan="3">Contact</th>
</tr>
c.
<tr><th>Customer Name</th>
<th cellpadding="3">Contact</th>
</tr>
d.
<tr><th>Customer
Name</th>
<thcellspacing=3>Contact</th>
</tr>
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 0:46
Question 37 of 40
A <doctype> defines the document type of any XHTML
document. It can be of three types:
a.
Strict, Transitional, and Frameset
b.
Strict, Transitional and Loose
c.
Fixed, Intermediate and Loose
d.
Fixed, Intermediate, Frameset
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 0:40
Question 38 of 40
What do you understand 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
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:05
Question 39 of 40
Which of the following statements is true about the table
header, body and footer tags?
a.
The table header, body and footer tags are
<tablehead>, <tablebody> and <tablefoot> respectively
b.
The table header, body and footer tags are <tabhead>,
<tabbody> and <tabfoot> respectively
c.
It is recommended to first specify the table header followed
by the footer and then the body tag
d.
None of the above
Report an issue
with this question
Powered by ®
Time's up!
Outsource to Freelancers, IT Companies, Programmers, Web
Designers from India, Russia, USA, and more
Time Remaining: 1:31
Question 40 of 40
Which of the following is correct regarding the frame
attribute of the table tag?
a.
It is used to add a frame to the table
b.
A "hsides" frame attribute will show the border
lines for horizontal sides of the table only
c.
A "hsides" frame attribute
will not show the border lines for horizontal sides of the table only
d.
A "hsides" frame attribute will add a scrollable
frame on the horizontal sides of the table
Report an issue
with this question
This is the
last question of your test.
Powered by ®
No comments:
Post a Comment