I am posting here the Recent Elance And Odesk Javascript TestPapers.All are from odesk testpapers and I have given the answers too . If you have any other answer than the answer I have given please comment with the question number so that I can update if your answer will more appropriate than mine.I can say here that below quastions with answer is not only for odesk and elance javascript but it also for other examination of javascript papers. Also I can give you one tips here that before giving any exam or online exam please make sure you have read all the terms and policies with question pattern as well.So best of prepare well with below questions and answers then go for examination.

Recent Elance And Odesk Javascript TestPapers.
Recent Elance And Odesk Javascript TestPapers.

Q:1)which of the following will implement a singleton pattern in Javascript?

Q:2)which of the following determines whether cookies are enabled in a browser or not?

Q:3)which of the following choices will change the source of the image to “image2.gif” when a user clicks on the image?


Q:4)In an HTML page, the form tag is defined as follows:

(form onSubmit=”return Validate()” action=”http://www.mysite.com/”>

The validate() function is intended to prevent the form from being submitted if the name field in the form is empty. what should the validate() function look like?


5)Consider the following code snippet:


6)which of the following Javascript Regular Expression modifiers finds one or more occurrences of a specific character in a string ?


7)which of the following Array Ilethods in Javascript runs a function on every itell in the Array and collects the result from previous calls, but in reverse?


8)what will be output of the following code?


9)which of the following code snippets changes an image on the page?


10)which of the following choices will remove a selection option from the code below?


11)which of the following code snippets shows an alert for an empty string?
var a = “”;


12)How can created cookies be deleted using Javascript?


13)Consider the following image definition:

which of the following will change the image to companylogo2.gif when the page loads ?


14)Consider the following Javascript validation function:


which of the following options will call the function as soon as the user leaves the field?


15)which of the following modifiers Ilust be set if the Javascript lastlndex object property was used during pattern matching?


16)Consider the three variables:


17)which of the following is not a valid method in generator-iterator objects in Javascript ?


18)which of the following options can be used for adding direct support for XML to Javascript?


19)which of the following code snippets will toggle a div element’s background color?


20)which of the following is not a valid method for looping an array?


21)which of the following choices shows the correct result for the code below?


22)A form contains two fields nailed idl and id2. How can you copy the value of the id2 field to idl?


23)which of the following will include a Javascript file in another Javascript file?
Note: There may be more than one right answer.


24)when setting cookies with Javascript, what will happen to the cookies.txt data if the file exceeds
the maximum size?


25)An image tag is defined as follows:

The purpose of the ImageChange() function is to change the image source to Image2.jpg. which of the
following should the ImageChange() function look like?


26)Consider the following Javascript function to change the color of the text box named txtName:


which of the following will change the color of the text box to green, as long as the user is
pressing a key?


27)which of the following functions determines whether the beginning of the paralll instance matches the
param2?


28)which of the following code snippets trims whitespace from the beginning and end of the given string
str?


29)In Javascript, the encodeURI() function is used to encode special characters. Which of the following
special characters is/are an exception to that rule?

A.£

B.€

C. Q

D. $


30)which of the following options is used to access the attributes in E4)(?


31)which of the following correctly sets a class for an element?


32)which of the following statements regarding this String prototype is correct?


33)what would be the default setting for the expires attribute of the document.cookie property?

34)which of the following code snippets is more efficient, and why?


35)what value would Javascript assign to an uninitialized array element?


36)what value would Javascript assign to an uninitialized variable?


37)How can a Javascript object be printed?


38)which of the following will change the color of a paragraph’s text to blue when a user hovers over
it, and reset it back to black when the user hovers out?

Recent Elance And Odesk Javascript TestPapers
Tagged on:             

One thought on “Recent Elance And Odesk Javascript TestPapers

  • October 13, 2015 at 1:24 pm
    Permalink

    where are the solutions?

    Reply

Leave a Reply

Your email address will not be published.