ExamVeda
Login
Home
1
What is the necessity to create a separate file after having an API key?
Discuss
Answer & Solution
Answer: Option A
Solution:
Once you have an API key you should create a separate file to hold all of the configuration information that you will need to share between processes.
2
How many parameters does the API accept?
Discuss
Answer & Solution
Answer: Option D
Solution:
The API accepts a total of 8 parameters namely :
1. url
2. location
3. runs
4. fvonly
5. private
6. block
7. f
8. k
3
What is the purpose of the parameter location?
Discuss
Answer & Solution
Answer: Option D
Solution:
The parameter location specifies the agent location, speed and browser to use for the test, formatted as location.browser:location.
4
What will happen if the fvonly parameter is set to 1?
Discuss
Answer & Solution
Answer: Option A
Solution:
If you set fvonly to 1, you get results only for the first view, and do not run the repeat view test.
5
How many reserved words are there in JavaScript?
Discuss
Answer & Solution
Answer: Option A
Solution:
There are a total of 63 reserved words in JavaScript.
6
What is the purpose of the window.location object in JavaScript?
Discuss
Answer & Solution
Answer: Option A
Solution:
The window.location object can be used to get the current page address (URL) and to redirect the browser to a new page.
7
Which of the following method loads a new document?
Discuss
Answer & Solution
Answer: Option D
Solution:
The location.assign() method loads a new document.
8
Which of the following method will wait for certain milliseconds to execute a specified method?
Discuss
Answer & Solution
Answer: Option A
Solution:
The setInterval() method will wait a specified number of milliseconds, and then execute a specified function, and it will continue to execute the function, once at every given time-interval.
9
What is the method used to stop an execution of a method?
Discuss
Answer & Solution
Answer: Option C
Solution:
The clearInterval() method is used to stop further executions of the function specified in the setInterval() method) The clearTimeout() method is used to stop the execution of the function specified in the setTimeout() method.
10
What is the meaning of JavaScript Hoisting?
Discuss
Answer & Solution
Answer: Option B
Solution:
Hoisting is JavaScript’s default behavior of moving declarations to the top. In JavaScript, a variable can be declared after it has been used) In other words; a variable can be used before it has been declared.