Monday, June 24, 2013

oDesk PHP Test And solutions 25.06.2013

oDesk PHP Answers and Questions 25.03.2013


PHP Test And solutions
Question.11.

which of the following are used for code reuse?

a. Loops
b. functions
c. Database
d. include files


Solution:

B,D

Question.13.

which of the following is the corect way of specifying default value?

a. Function GetDiscount($Type = "Special") {.........}
b. Function GetDiscount(Type := "Special") {.........}
c. Function GetDiscount($Type: = "Special") {.........}
d. Function GetDiscount($Type : "Special") {.........}

Solution:

Question.14.

Which of the following are ''magic constant'?

a. __LINE__
b. __FILE__
c __PRETTY_FUNCTION__
d __CLASS__
e. __METHOD__

Solution:

Question.15.

you have defined three variables $to, $subject, and $body to send an email. Which of the following methods would you use for sending an email?

a. mail($to, $subject,$body)
b. sendmail($to, $subject,$body)
c. mail(to, subject,body)
d. sendmail(to, subject,body)

Solution:

Question.16.

Which one of the following is turnary operator?

a. &
b. =
c. :?
d. ?:
e. +=
f. &&

Solution

D

Question.17.

What is the result of the following Exprssion?
5+2*4+6

a. 70
b. 19
c. 34
d. 21

Solution:
B

Question.18.

The default value of register global in PHP is:

a. Off
b. On

Solution:

A

Question.19.


What would b the outpur of the following code?

$string = 'good day';
$string = ucword($string);
echo $string;
?>

a. good day
b. GOOD DAY
c. Good Day
d. non of the above

Solution:

C

Question.20.

If you want to pass a value to a function by reference, the correct way is:

a. function ModifyReport(&$Rptfile){}
b. function ModifyReport($Rptfile){}
c. function ModifyReport(ByRef $Rptfile){}
d. function ModifyReport(&Rptfile){}

Solution:

D
Question.21.

What will be the output of the following code?

$a = 10;
echo "Value of a = $a";

a. value of a = 10
b. Value of a = $a
c. Undefind
d. Syntax Error

Solution:

A

Question.22.

Which of the following regualr expressions can be used to check the validity of an email address?

a. ^[^@]+@[^@]+\[^@]+$
b. ^[^@]+@[^@]+[^@]+$
c. $[^@]+@[^@]+\[^@]+^
d. $[^@]+@[^@]+.[^@]+^

Solution:

Question.23.

Which of the following is not represent logical AND operator in PHP?
a. &
b. &&
c. And
d. AND

Solution:
A

Question.24.

Which of the following are file PHP file Upload Related function?

a. upload_file()
b. is_upload_file()
c. move_upload_file()
d. Non of the above

Solution:

D

Question.25.

Does PHP support exceptions?

a. Yes
b. No

Solution:

A

Question.26.

Which of the following functions do you need to implement HTTP Basic Authentication?

a. Authenticate()
b. header()
c. basic_auth()
d. Non of the above

Solution:

D

Question.27.

What will be the output of the following code?

for ($i = 0; $i <>
{if($i == 2)
continoue;
print "$i\n";
}
?>

a. 0
1
2
3
4
5
b. 0
1
2
3
4
c. 2
d. 0
1
2
4
e. non of the above

Solution:

B

Question.28.

What will be the output of the following code?

echo 12 . 6;

a. 12 . 6
b. 126
c. 12.6
d. Error: You cannot add integers through the concatienation operator(.)

Solution:

Question.29.

Which of the following is not supported in PHP5?

a. Type Hinting
b. Reflection
c. Magic Methods
d. Object Cloning

Solution:

Question.30.

Which of the following are valid PHPdata types?

a. resource
b. null
c. boolean
d. string
e. Both a and c
f. b, c and d
g. All of the above

Solution:

Saturday, June 22, 2013

All the answers yo your oDesk tests


Friday, June 21, 2013

oDesk Test 2012 / 2013 Questions and Answers CSS3 CSS

oDesk CSS 3 Test Questions and Asnwers 2012

Question 1:
Which of the following is true for a class selector?
a.It applies the style to all the elements defined with that styleQuestion 2:
Which of the following does not apply to external styles?
a.Highest priority Question 3:
Read the following Code:
BODY {
Background: white url(“bar.gif”);
Background-repeat: repeat-y;
Background-position: center;
}
What will be the output of this code?
a.Image bar.gif will be tiled vertically in the background in the center of the page.
Question 4:
Which of the following is not a valid text-decoration option?
a.Text-decoration :in-line
Question 5:
You defined some links as follows:
A:link{color:green}
A:visited{color:blue}
A:hover{color:red)
A:active{color:black}
What will be the color, when the mouse goes over a link?
a.Blue
Question 6:
The following is a style definition:
Td#aln
{text-align:center;
color:blue}
How will you refer to this style in your web page?
b by using the id Attribute in a td cell
Question 7:
Which of the following is not a valid property of an aural style sheet?
a.Load
Question 8:
Your website displays some articles on java programming. The articles contain blocks of java code as well. If you want to leave ‘1 cm’ space above and below the code blocks, you would use
a.    Code{margin-top:1cm; margin-bottom:1cm}
Question 10:
You are fetching customer names from a database. The names in the database are mostly in lowercase. What is the name of the text property which will facilitate capitalization of these names?
a.    Text-transform
Question 1:Which of the following is true for a class selector?
d.            It applies the style to all the elements defined with that style
Question 2:
Which of the following does not apply to external styles?
c.            Highest priority
Question 3:
Read the following Code:
BODY {
Background: white url(“bar.gif”);
Background-repeat: repeat-y;
Background-position: center;
}
What will be the output of this code?
a.            Image bar.gif will be tiled vertically in the background in the center of the page.
Question 4: Which of the following is not a valid text-decoration option?
b.            Text-decoration :in-line
Question 5:
You defined some links as follows:
A:link{color:green}
A:visited{color:blue}
A:hover{color:red)
A:active{color:black}
What will be the color, when the mouse goes over a link?
b.            Blue
Question 6:
The following is a style definition:
Td#aln
{text-align:center;
color:blue}
How will you refer to this style in your web page?
B. by using the id Attribute in a td cell•
Question 7: Which of the following is not a valid property of an aural style sheet?
c.            Load
Question 8:
Your website displays some articles on java programming. The articles contain blocks of java code as well. If you want to leave ‘1 cm’ space above and below the code blocks, you would use:
b.            Code{margin-top:1cm; margin-bottom:1cm}
Question 10:
You are fetching customer names from a database. The names in the database are mostly in lowercase. What is the name of the text property which will facilitate capitalization of these names?
b.            Text-transform
Question 12: Which of the following are correct values of the overflow property?
a.            Visible
b.            Hidden
c.            Scroll
d.            Auto
Ans: A,B,C,D
Question 14: Which element property is required to define internal styles?
b.            Style
Question 16 Which of the following is not true for a style sheet?
a.            A style sheet defines how an html element will be displayed
Question 20: You want to increase the space between the lines in all you paragraphs. What will you use?
c.            P{line-height:1cm}
Question 21: The default value for the overflow property is:
c.            Hidden
Question 1:
Which of the following is true for a class selector?
a.    It applies the style to all the elements defined with that style
Question 2:
Which of the following does not apply to external styles?
a.    Highest priority
Question 3:
Read the following Code:
BODY {
Background: white url(“bar.gif”);
Background-repeat: repeat-y;
Background-position: center;
}
What will be the output of this code?
a.    Image bar.gif will be tiled vertically in the background in the center of the page.
Question 4:
Which of the following is not a valid text-decoration option?
a.    Text-decoration :in-line
Question 5:
You defined some links as follows:
A:link{color:green}
A:visited{color:blue}
A:hover{color:red)
A:active{color:black}
What will be the color, when the mouse goes over a link?
a.    Blue
Question 6:
The following is a style definition:
Td#aln
{text-align:center;
color:blue}
How will you refer to this style in your web page?
o    A. B. by using the id Attribute in a td cell
o    C.
Question 7:
Which of the following is not a valid property of an aural style sheet?
a.    Load
Question 8:
Your website displays some articles on java programming. The articles contain blocks of java code as well. If you want to leave ‘1 cm’ space above and below the code blocks, you would use:
a.    Code{margin-top:1cm; margin-bottom:1cm}
Question 10:
You are fetching customer names from a database. The names in the database are mostly in lowercase. What is the name of the text property which will facilitate capitalization of these names?
a.    Text-transform
Question 14:
Which element property is required to define internal styles?
a.    Style
Question 16
Which of the following is not true for a style sheet?
a.    A style sheet defines how an html element will be displayed
Question 20
You want to increase the space between the lines in all you paragraphs. What will you use?
a.    P{line-height:1cm}
01. Question: Which of the following is true for a class selector?
Answer:  d. It applies the style to all the elements defined with that style
02. Question: Which of the following does not apply to external styles?
Answer: c. Highest priority
03. Question: Read the following Code:
BODY {
Background: white url(“bar.gif”);
Background-repeat: repeat-y;
Background-position: center;
}
What will be the output of this code?
Answer: a.Image bar.gif will be tiled vertically in the background in the center of the page.
04. Question: Which of the following is not a valid text-decoration option?
Answer: Text-decoration :in-line
05. Question: You defined some links as follows:
A:link{color:green}
A:visited{color:blue}
A:hover{color:red)
A:active{color:black}
What will be the color, when the mouse goes over a link?
Answer: b. Blue
06. Question: The following is a style definition:
Td#aln
{text-align:center;
color:blue}
How will you refer to this style in your web page?
Answer: b. by using the id Attribute in a td cell
07. Question: Which of the following is not a valid property of an aural style sheet?
Answer: c. Load
08. Question: Your website displays some articles on java programming. The articles contain blocks of java code as well. If you want to leave ‘1 cm’ space above and below the code blocks, you would use:
Answer: b. Code{margin-top:1cm; margin-bottom:1cm}
09. Question: You are fetching customer names from a database. The names in the database are mostly in lowercase. What is the name of the text property which will facilitate capitalization of these names?
Answer: b. Text-transform
Question 10: Which of the following are correct values of the overflow property?
Answer: a. Visible; b. Hidden; c. Scroll; d. Auto
Question 11: Which element property is required to define internal styles?
Answer: b. Style
Question 12: Which of the following is not true for a style sheet?
Answer: a. A style sheet defines how an html element will be displayed
Question 13: You want to increase the space between the lines in all you paragraphs. What will you use?
Answer: c. P{line-height:1cm}
Question 14: The default value for the overflow property is:
Answer: c. Hidden

oDesk HTML 4.01 Test 2012 / 2013 Questions and Answers

Hello everyone here is a long list of possible oDesk HTML 4.01 Test Questions and their their Answers. Note that Answers are marked in bold.
For more oDesk HTML 4.01 Test Questions and Answers
Question:1
What is the character entity representation of the ‘less than’ sign (its entity name is ‘&lt;’) ?
a. 60;#
b. & #60;
c. &60#;
d. #60&;
Answer B
Question:2
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:3
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:4
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… –!>
Question:5
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
Question:6
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>
Question:7
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:8
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 />
Question:9
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
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:11
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
Question:12
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
Question:13
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
Question:14
Which of these tags will create a single space character?
a. <td>
b. <th>
c. &nbsp;
d. <b>
Question:15
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
Question:16
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? />
Question:17
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:18
Which of the following represents the basic tag structure of an XHTML document?
a. <html><head><body></body></html>
b. <html><body></body></html>
c. <html><head></head><body></body></html>
d. <html><head></head></html>
Question:19
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:20
You have defined the following image in an XHTML document:
<img src=”/image/logo.gif” 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:21
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
Question:22
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
Question:23
Which attribute specifies the submit URL in a form?
a. method
b. Action
c. name
d. id
Question:24
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:25
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”
Question:26
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?
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
Question:27
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
Question:28
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>
Question:29
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:30
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:31
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
Question:32
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:33
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
Question:34
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” />
Question:35
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:36
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>
Question:37
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>
Question:38
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:39
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: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”>

oDesk HTML 5 Test 2012 / 2013 Questions and Answers

TML 5 TEST ANSWERS

Question: 01 
Which media event is triggered when there is an error in fetching media data in HTML 5.0? a.     onstalled
b.     onwaiting
c.     onsuspend
d.     oninvalid
Question: 02
Which of the following video file formats are currently supported by the <video> element of HTML 5.0?
a.     CCTV
  b.     MPEG 4
c.     Ogg
d.     3GPP
Question: 03
Which of the following is NOT a valid value for the <iframe> sandbox attribute in HTML 5.0?
a.     url
b.     allow-scripts
c.     allow-same-origin
d.     allow-forms
Question: 04
Which of the following is an INVALID value for the type attribute of command tag?
a.     checkbox
b.     radio
  c.     command
d.     text
Question: 05
What is the function of the history traversal task source in HTML 5.0?
a.     It is used for features that react to user interaction, for example, keyboard or mouse input.
b.     It is used for features that react to DOM manipulations, for example, the things that happen asynchronously when an element is inserted in the document.
   c.     It is used to queue calls to history.back() and similar APIs.
d.     All of the above.
Question: 06
What will be the result if you use the following code to your HTML 5.0 document?
<p>I use <del>MAC</del> <ins>Microsoft</ins>!</p>
a.     I use MAC Microsoft!
b.     I use MAC Microsoft!
  c.     I use MAC Microsoft!
d.     I use MAC Microsoft!
Question: 07
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.     <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>
Question: 08
In HTML 5.0, how will the script be executed if you use the script element shown below?
<script src=”script.js” type=”text/javascript” defer=”defer”></script>
a.     The script is fetched and executed immediately, before the user agent continues parsing the page.
  b.     The script will be executed when the page has finished parsing.
c.     The script will be executed asynchronously, as soon as it is available.
Question: 09
What is the output when you use the HTML 5.0 code snippet shown below?
<body onload=”alert(this)”>
a.     It will alert saying “[object HTMLBodyElement]” when the document is loaded.
b.     It will alert saying “[object Window]” when the document is loaded.
c.     It will alert saying “[this]” when the document is loaded.
d.     The alert message is not properly defined in the body element and an error will be generated when the document is loaded.
Question: 10
A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets?
a.     <emp>
b.     <code>
c.     <dfn>
d.     <cite>
Question: 11
How will you bind the datalist option (shown below) with an <input> element, whose type attribute is set to url, to get the result shown in the image?
 This question is based upon the figure shown below:
odesk answer test
a.     User should define an accept attribute to the input element whose type is url.
b.     User should define multiple attribute to the input element whose type is url.
c.     User should define a list attribute to the input element whose type is url.
d.     User should define a placeholder attribute to the input element whose type is url.
Question: 12
Which of the following are valid HTML 5.0 elements?
    a.     <canvas>     b.     <summary>
c.     <aside>
d.     <video>

(Check ALL)
Question: 13
How does a button created by the <button> tag differ from the one created by an <input> tag?
   a.     An input tag button can be a reset button too.
b.     A button tag button can be a reset button too.
c.     An input tag button can include images as well.
d.     A button tag can include images as well.
Question: 14
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
Question: 15
Which of the following is correct with regard to the oncanplaythrough event fired by media resources in the HTML 5.0 document?
a.     The script will run when the media has reached the end.
  b.     The script will run when the media is played to the end, without stopping for buffering.
c.     The script will run when media data is loaded.
d.     The script will run when the length of the media is changed.
Question: 16
What does the icon attribute of the HTML 5.0 command tag define?
<command icon=”?”>Click Me!</command>
a.     It is used to define the url of an image to display as the command.
b.     It is used to define the name of the radiogroup this command belongs to.
c.     It is used to define if the command is checked or not.
d.     It is used to define if the command is available or not.
Question: 17
While rendering your HTML 5.0 web page, which of the following <link> element files will get skipped by a compliant user agent if you include the link elements shown below in your document?
<link rel=”stylesheet” href=”A” type=”text/plain”>
<link rel=”stylesheet” href=”B” type=”text/css”>
a.     A link element whose href is “B”
b.     A link element whose href is “A”
c.     None of the above
Question: 18
Which <body> tag event is fired when the user leaves the document?
a.     onunload
b.     onundo
c.     onredo
d.     onerror
Question: 19
How will you change the value of the cookies and items in the Storage objects of the localStorage attributes in HTML 5.0?
a.     By invoking the window.dialogArguments() API method.
  b.     By invoking the window. navigator.yieldForStorageUpdates() API method.
c.     By invoking the window.navigator.appName API method.
Question: 20
What is the role of the <dfn> element in HTML 5.0?
a.     It is used to define important text.
b.     It is used to define computer code text.
c.     It is used to define sample computer code.
d.     It is used to define a definition term
Question: 21
Which of the following is NOT a valid syntax for the <h1> element in HTML 5.0?
a.     <h1> This is header 1</h1>
   b.     <h1 align=”center”> This is header 1</h1>
c.     <h1 onClick=”dothis(‘sc1′)” >This is header </h1>
d.     <h1 style=”cursor:auto;”>This is header </h1>
Question: 22
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
c.     onunload
d.     onreset
Question: 23
How will you return a reference to the parent of the current window or subframe in an HTML 5.0 web application?
a.     window.top
b.     window.parent
c.     window.frameElement
d.     None of the above
Question: 24
In HTML 5.0, which of the following is NOT a valid value for the type attribute when used with the <command> tag shown below?
<command type=”?”>Click Me!</command>
a.     button
b.     command
c.     checkbox
d.     radio
Question: 25
What is the default background color for the canvas element in HTML 5.0?
a.     Black
b.     White
  c.     Transparent
d.     Gray
Question: 26
Which of the following are valid mouse events in HTML 5.0?
    a.     ondblclick     b.     ondragstart
c.     ondragenter
d.     onscroll
e.     ondrop

(Check ALL)
Question: 27
Which of the following languages will you use to paint the graphics designed using the HTML 5.0 <canvas> tag?
a.     VB script
b.     JavaScript
c.     PostScript
d.     None of the above
Question: 28
Consider 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
Question: 29
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.     <body backcolor=”Yellow”>
b.     <body background=”Yellow”>
c.     <body bgcolor=”Yellow”>
d.     <body color=”Yellow”>
Question: 30
What is the function of onobsolete, an application cache API method in HTML 5.0?
a.     It reflows the HTML document using updated cached content.
b.     It triggers an event when the cache content has been marked as obsolete.
c.     It triggers an event when the cache content has been updated.
d.     It updates the cache for the current document in the background.
Question: 31
Which of the following represents INVALID syntax for defining an attribute value in an HTML 5.0 document?
a.     <input name =’be evil’ />
b.     <input name=be evil />
c.     <input name = “be-evil” />
d.     All of the above.
Question: 32
Consider the above code. What will be the impact upon the contents of the element if both the style sheets define the same class?
This question is based upon the figure shown below:
odesk answer test
a.     The contents of the element will be of red color and will inherit all the effects of style.css.
  b.     The contents of the element will be of blue color and will inherit all the effects of style1.css.
c.     The contents of the element will be of white color and will inherit all the effects of style.css and style1.css.
d.     None of the style effects will be applied to the contents of the element.
Question: 33
Which of the following is NOT a valid attribute for the <link> element in HTML 5.0?

a.     hreflang
b.     rel
c.     http-equiv
d.     media
Question: 34
Which of the following statements is correct if you allow the user to select only one radio button from a group of radio buttons?

a.     The name of the input tag must be the same for all the radio buttons.
b.     The value of the input tag must be the same for all the radio buttons.
c.     The display text of the input tag must be the same for all the radio buttons.
d.     All the radio buttons must be added to the same group using the <optgroup> tag.
Question: 35
Which of the following is an INVALID keyword value for http-equiv attribute when used with the <meta> element in HTML 5.0?

a.     content-type
b.     expires
c.     set-cookie
d.     keywords
e.     refresh
f.     author
Question: 36
Which of the following <iframe> attributes are NOT supported in HTML 5.0?

a.     height
b.     marginheight
c.     sandbox
d.     scrolling
Question: 37
In HTML 5.0, what is the function of the sandbox attribute when used with <iframe> as shown below?

<iframe src=”aaa ” sandbox=?></iframe>
a.     It is used to define the restrictions to the frame content.
b.     It is used to define the URL of the document that should appear in the iframe.
c.     It is used to specify that an iframe should appear as if it is part of the document the iframe is in.
Question: 38
Which of the following is NOT a supported attribute of the <ol> element in HTML 5.0?

a.     type
b.     reversed
c.     start
d.     compact
Question: 39
When is the window onstorage event triggered in the HTML document?

a.     It is triggered when the window is resized.
b.     It is triggered when a document loads.
c.     It is triggered when a document performs an undo function.
d.     It is triggered when the window becomes visible.
Question: 40
Which of the following is NOT a valid attribute for the <video> element in HTML 5.0?

a.     controls
b.     autoplay
c.     disabled
d.     preload

oDesk Readiness Test Questions and Answers 2013

Before getting started with others tests, this is the first one you’ll need to take! Easy enough with the answers!
1.  Which of the following are NOT permitted on oDesk?
 
a. Sharing a single account between multiple people
b. Opening more than one account on oDesk
c. Using a logo or clip art as your profile portrait
d. Using a fake name
  e. All of the above (answer)
 2.  Which of the following actions are NOT allowed when applying   to job postings? 
 a. Misrepresenting your skills, experiences, portfolio, etc.
  b. Submitting boilerplate, placeholder or generic bids or other spam
  c. Disclosing direct contact information
  d. Applying when you are not truly qualified
 e. All of the above (answer)
  3. Can I start my own agency on oDesk?
 a. Yes! You can create an agency and earn money by selling the services of your     agency contractors.(answer)
  b. No, oDesk is for independent contractors only
 4. What happens when a contract ends?
  a. You lose access to the Work Diary
  b. Both users can leave feedback
  c. The feedback system is double blind, so your employer cannot see the feedback you
  left them until after they have left feedback for you
 d. Hours will be billed (and disputes may be filed) according to the usual weekly payment       schedule
  e. All of the above (answer)

  5. Which of the following are TRUE about your oDesk Work Diary?
  a. Allows employers to see when and what their contractors are working on
  b. Enables automatic billing for hourly contracts
  c. The oDesk Team application auto-tracks time which can be reviewed in the Work Diary
  d. Manual time can be added, but isn’t guaranteed payment
e. All of the above(answer)

  6. Which of the following are TRUE about the oDesk dispute process?
  a. The dispute process only applies to Hourly contracts
  b. If you fail to respond, oDesk will refund the employer and suspend your account
  c. If you reject the dispute, oDesk specialists will review your Work Diary and
  evaluate it against the criteria of the payment guarantee
  d. Disputed hours ruled in the employers favor are refunded
e. All of the above(answer)

 7.  Which of the following is FALSE about weekly limits on hourly contracts?
  a. Hours in excess of the weekly limit will not be billed to the employer
  b. You should discuss any need to work beyond your limit with your employer
c. The weekly limit can be changed by the contractor(answer)
  d. The weekly limit can be changed by the employer
  e. Hours in excess of the weekly limit are not guaranteed payment
  8. The oDesk Team application Time Tracker records which of the following
  a. Screenshot of the active screen once per billing segment
  b. Number of keystrokes
  c. Number of mouse clicks
  d. Memo entered by the contractor
e. All of the above(answer)
 9. Which of the following statements about oDesk fees is FALSE?
  a. The oDesk fee is 10% of the employer’s payment to oDesk
  b. ODesk is free to join
  c. ODesk is free for contractors to apply and work on jobs
d. The ODesk fee is $2/hour for hourly contracts  (answer)
  e. All of the above
 10. Which of the following is TRUE about fixed-price contracts?
  a. Employer billed automatically each week
b. How much to pay and when to pay is at the employer’s discretion(answer)
  c. Hours worked will show on your profile
  d. Time-tracking required
  e. Qualify for the oDesk payment guarantee
 11. Which of the following are required to qualified for guaranteed payment.
  a. An hourly contract.
  b. Tracking your time with the oDesk team application.
  c. Entering relevant memos.
  d. An employer with a verified payment methods.
  e. All of the above (answer)
and that’s it for oDesk Readiness Test Questions and Answers

oDesk English Test Questions Answers US Version 2012 / 2013

Answers in bold! Get yourself the perfect score with oDesk Test Answers (This is for the 2013 version of the English Test)

Question 1
Choose the series of prepositions that best completes the following sentence.
Charlotte knew________the secret investigation_________her past, but she closed her eyes to it and pretended it wasn’t happening.
Answer: a. of, about
Question 2:
Choose the series of adjectives and adverbs that best completes the following sentence.
I think Pamela deserves to be punished for her________stupid and________behavior.
Answer: b. totally, irresponsible
Question 3:
Which of the following sentences punctuated correctly?
a. Tracy bought three suits; seven scarves; and ten pairs of shoes.
Answer: b. We are expecting a hurricane this afternoon, therefore we have closed the school early.
Question 4:
Choose the series of adjectives and adverbs that best completes the following sentence.
While_________of our relatives live on the__________hill in the county, _________of our friends live in the _________areas of the valley.
Answer: c. many, windiest, most, more, protected
Question 5:
Complete the following sentence by choosing the phrase with the best word order from the options given.
Those who are not wise_____________.
Answer: d. does not need to be necessarily stupid.
Question 6:
Choose the series of pronouns that best completes the following sentence.
Don’t _________think Larry should call__________wife if______________is going to be late for dinner?
Answer: a. you, his, he
Question 7:
Rearrange the following words to create most logical and grammatically correct sentence.
days for last has good weather few The been the not
Answer:d. The weather has not been good for the last few days
Question 8:
Choose the series of adjectives and adverbs that best completes the following sentence.
Knowing that February was the___________month of the year, Cheryl planned her vacation____________.
Answer: b. shortest, accordingly
Question 9:
Rearrange the following words to create most logical and grammatically correct sentence.
Answer: e. Whenever I can’t spend time with my friend, I always speak to him on the phone.
Question 10:
Read the following question and choose the response that uses the correct corresponding verb tense.
Does Jack wear that furry hat often?
Answer: d. No, he only wears it when his ears are cold.
Question 11:
Which of the following sentence illustrates correct pronoun usage?
a. is those the set of plates the bride wanted, or did she want this set?
d.Whose book is that-his or our?
Answer: e. None of the above
Question 12:
Which of the sentence illustrates proper sentence structure?
a. Everyone knows that a mango is much sweeter to an orange
Answer: d. The queen had hardly finished her speech when the people began to disperse.
Question 13:
Change the following sentence from a quotation to indirect speech.
“It may snow tomorrow.” he said.
Answer: d. He said it might snow tomorrow.
Question 14:
Which of the following sentence punctuated correctly?
Answer: d. “Come here.” she said, “and let me get a good look at you.”
Question 15:
Change the following sentence from a quotation to indirect speech.
“Sharon must go to the bank today.” said Albert.
Answer: d. Albert said Sharon had to go to the bank today.
Question 16:
Choose the option that correctly changes original sentence from active to passive.
ORIGINAL SENTENCE:
That tall man is carrying a lot of lumber.
REWRITTEN SENTENCES:
Answer: d. A lot of lumber is being carried by that tall man.
Question 17:
Choose the series of prepositions that best completes the following sentence.
I placed my notes__________my desk and referred to them____________ the meeting.
Answer: b. beside, during
Question 18:
Rearrange the following words to create most logical and grammatically correct sentence.
Sleeping likes the . midday Katie until on weekends
Answers: Katie likes sleeping until midday on the weekends.
Question 19:
Choose the series of verbs that best completes  the following sentence.
Everyone ____________too busy cooking and __________ the campsite ____________ the family _________ from the woods.
Answers: d. was, setting up, to notice, watching
Question 20:
Choose the series of verbs that best completes  the following sentence.
I find it very hard to remember ______________ letters that are entrusted to me. In fact, I remember_____________to do so dozens of times!
Answer: d. mailing, forgetting
Question 21:
Choose the series of articles and conjunctions that best completes  the following sentence.
Lilacs ___________ violets are usually purple, I have seen some _________ are white.
Answer: c. and, although, that
Questions 22:
Complete the following sentence by choosing the phrase with the best word order from the options given.
Only after they had an exhaustive study__________ how to adapt the technology to the needs of our company.
Answer: c. they did begin to understand
Question 23:
Which of the following sentence illustrates proper use of comma?
a. Randy wanted to end the meeting, but Amy wanted to prolong it.
e. a and b
answer: f. All of the above
Question 24:
Which of the following sentence does NOT illustrates correct verb and tense usage?
Answer: b. Clarabelle’s mother absolutely hated nicknames and always calls her daughter by her full name.
Question 25:
Choose the series of prepositions that best completes the following sentence.
Victor, who stole ____________ ideas and used them  to make _________ a millionaire, never once offered ______________ a world of thanks.
Answer: d. our, himself, us
Question 26:
Choose the series of prepositions that best completes the following sentence.
______________ is the name of the opera, and ___________ role did you say Maria would play?
Answer: c. What, which
Question 27:
Choose the verbs and phrases that best completes the following sentence.
This dish _____________ too spicy. Why ___________ so pepper?
Answer: e. a and c
Question 28:
Change the following sentence from a quotation to indirect speech.
Carol has said, “I am responsible for this project.”
Answer: a. Carol has said that she is responsible for this.
Question 29:
Choose the series of prepositions that best completes the following sentence.
Although Marvin said he had the keys___________ the flower pot, we were unable to find them___________ the dark. In the end, we waited for him at the coffee shop ____________ the corner.
Answer: a. under, in. around
Question 30:
Complete the following sentence by choosing the phrase with the best word order from the options given.
The excited children who had run toward the loud _______________.
Answer:d. music, told the others about the ice cream truck outside.
Question 31:
Rearrange the following words to create most logical and grammatically correct sentence.
your company name? of what the is
Answer: c. What is the name of your company?
Question 32:
Which of the following sentences NOT punctuated correctly?
a. All of the apple’s at the grocers were rotten so I bought oranges instead.
Answer: b. “Seven canteens full of water should enough for the hike,” said Tabitha.
Question 33:
Choose the series of prepositions that best completes the following sentence.
After realizing that our hosts hadn’t actually invested _________ to ____________ party. ____________ excused ____________ from the table and slipped out the back door.
Answer: a. us, their, we, ourselves.
Question 34:
Which of the following sentences illustrates the proper use of parallel construction?
Answer: b. We painted the conference room yellow, hung a poster on the wall, and are rearranging the chairs.
Question 35:
Which of the following sentence uses correct pronoun usage?
a. to whom are your employees going to report while you’re gone?
Answer: e. All of the above
Question 36:
Choose the series of adjectives and adverbs that best completes the following sentence.
The archeologists were_____________ to discover such a __________ and__________ ____________ artifact at that mostly uncovered site.
Answer: b. amazed, rare, incredibly, beautiful
Question 37:
Change the following sentence from a quotation to indirect speech.
“I’m not feeling well,” Agatha said.
Answer: a. Agatha has said that she doesn’t feel well.

And that’s it for oDesk English Test Questions Answers US Version 2012 / 2013