| 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. Which method is called right before a field is saved?

Correct Answer is : onBeforeSave()

2. What is the necessity to create a separate file after having an API key?

Correct Answer is : To hold configuration information

3. How many parameters does the API accept?

Correct Answer is : 8

4. What is the purpose of the parameter location?

Correct Answer is : All of the mentioned

5. What will happen if the fvonly parameter is set to 1?

Correct Answer is : Results got for the first view

6. How many reserved words are there in JavaScript?

Correct Answer is : 63

7. What is the purpose of the window.location object in JavaScript?

Correct Answer is : Get the URL and redirect

8. Which of the following method loads a new document?

Correct Answer is : location.assign()

9. Which of the following method will wait for certain milliseconds to execute a specified method?

Correct Answer is : setInterval()

10. What is the method used to stop an execution of a method?

Correct Answer is : both clearInterval() and clearTimeout()

11. What is the meaning of JavaScript Hoisting?

Correct Answer is : Moving declarations to top

12. The function definitions in JavaScript begins with

Correct Answer is : Return type, Function keyword, Identifier and Parentheses

13. Consider the following code snippet function printprops(o) { for(var p in o) console.log(p + ": " + o[p] + "\n"); } What will the above code snippet result ?

Correct Answer is : Returns undefined

14. When does the function name become optional in JavaScript?

Correct Answer is : When the function is defined as expressions

15. What is the purpose of a return statement in a function?

Correct Answer is : Stops executing the function and returns the value

16. What will happen if a return statement does not have an associated expression?

Correct Answer is : It returns the undefined value

17. A function with no return value is called

Correct Answer is : Procedures

18. Consider the following code snippet function hypotenuse(a, b) { function square(x) { return x*x; } return Math.sqrt(square(a) + square(b)); } What does the above code result?

Correct Answer is : Sum of square of a and b

19. Which of the following is the correct code for invoking a function without this keyword at all, and also too determine whether the strict mode is in effect?

Correct Answer is : var strict = (function() { return !this; }());

20. Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?

Correct Answer is : o.m(x,y);