Javascript Interview Questions - 15 | Snaprecruit.com

Javascript Interview Questions - 15 | Snaprecruit.com

Javascript interview questions part 15

Javascript interview questions part 15

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

Total Questions: 20

1. In which format does JavaScript support external JavaScript?

Correct Answer is : .js

2. What are the two parts of JavaScript libraries?

Correct Answer is : External JavaScript and the “script” tag

3. Which of the following is added to prefs.js when the console is automatically opened during JavaScript error?

Correct Answer is : user_pref("javascript.console.open_on_error", true);

4. Which of the following is possible to be referenced in external JavaScript?

Correct Answer is : php

5. Which of the following attribute takes the source of the PHP file?

Correct Answer is : src

6. What kind of path can the PHP file be?

Correct Answer is : Either Absolute or Relative

7. Which of the following global variables is used to get parameters?

Correct Answer is : $HTTP_GET_VARS[].

8. What is the purpose of the RegExp method test()?

Correct Answer is : Tests for a match in its string parameter

9. What is the purpose of the function parameter filetype?

Correct Answer is : File type to be expected

10. Which of the following is the method used to add an element to the desired location?

Correct Answer is : element.appendChild()

11. What is it called when we make a mistake in the script?

Correct Answer is : Bug

12. Which of the following is the definition for debugging?

Correct Answer is : Both Finding & Fixing bugs

13. Where is the error icon shown in the Internet Explorer?

Correct Answer is : Status bar

14. Where is the error icon option available?

Correct Answer is : Tools

15. Which of the following is the window that the Firefox sends the error messages to?

Correct Answer is : Error Console

16. What is the procedure to view the console in the Firefox?

Correct Answer is : Tools->Error Console

17. What is the other way of calling the Error Console in Firefox?

Correct Answer is : JavaScript Console

18. What kind of error notifications are shown in the console window?

Correct Answer is : Both Syntax error and Runtime error

19. How do we debug a script?

Correct Answer is : Use of JavaScript Validator & Debugger

20. What is the purpose of a JavaScript debugger?

Correct Answer is : Placing script execution under control

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon