| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Math.random() returns _______________

Correct Answer is : random number between 0 and 1

2. How many parameters does the WebPageTest API accept?

Correct Answer is : 8

3. What is the purpose of getting the parameter block?

Correct Answer is : Comma separated block list

4. What will happen if you set the private flag as 1?

Correct Answer is : Test is not displayed in public

5. What is the purpose of getting the parameter fvonly?

Correct Answer is : To get the first view

6. What is the purpose of the file_get_contents()?

Correct Answer is : To get the server’s response

7. What will the file_get_contents() return?

Correct Answer is : Server’s response

8. How will you convert the returned API into an XML object?

Correct Answer is : SimpleXMLElement()

9. Which tag can handle mouse events in Netscape?

Correct Answer is : img

10. What is the tainted property of the window object?

Correct Answer is : Default status

11. Which environment variable must the user enable in order to enable data tainting?

Correct Answer is : NS_ENABLE_TAINT

12. Which of the following can be implemented using animation?

Correct Answer is : All of the mentioned

13. Which is the function that calls another function after a time interval?

Correct Answer is : setTimeout()

14. Which function is used to clear the timer value?

Correct Answer is : clearTimeout()

15. Which is the property used to position the object in the left of the screen?

Correct Answer is : object.style.left

16. Which is the function used to call a function in every time duration?

Correct Answer is : setInterval()

17. How do we get the DOM object in JavaScript?

Correct Answer is : getElementbyId()

18. How to assign the image source in JavaScript?

Correct Answer is : image.src = “url”

19. How do we create and preload an image object in JavaScript?

Correct Answer is : Both Use new keyword and Call Image()

20. Which event handler is triggered when the user’s mouse moves onto a link?

Correct Answer is : onMouseOver