Javascript Interview Questions - 15 | Snaprecruit.com
Javascript Interview Questions - 15 | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
Javascript interview questions part 15
Javascript interview questions part 15
Back
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?
A. .js
B. .php
C. .js/php
D. .jss
Show Correct Answer
Correct Answer is :
.js
2. What are the two parts of JavaScript libraries?
A. “script” tag and “body” tag
B. External JavaScript and the “script” tag
C. “html” tag and “body” tag
D. None of the mentioned
Show Correct Answer
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?
A. user_pref("javascript.console.open_on_error", true);
B. user_pref("javascript.console.open_error ", true);
C. user_pref("javascript.console.open_error ", false);
D. user_pref(" javascript.console.open_on_error", false);
Show Correct Answer
Correct Answer is :
user_pref("javascript.console.open_on_error", true);
4. Which of the following is possible to be referenced in external JavaScript?
A. cpp
B. cs
C. php
D. all of the mentioned
Show Correct Answer
Correct Answer is :
php
5. Which of the following attribute takes the source of the PHP file?
A. img
B. src
C. source
D. none of the mentioned
Show Correct Answer
Correct Answer is :
src
6. What kind of path can the PHP file be?
A. Absolute
B. Relative
C. Either Absolute or Relative
D. Both Absolute and Relative
Show Correct Answer
Correct Answer is :
Either Absolute or Relative
7. Which of the following global variables is used to get parameters?
A. $HTTP_GET_VAR[].
B. $HTTP_GET_VARS()
C. $HTTP_GET_VARS
D. $HTTP_GET_VARS[].
Show Correct Answer
Correct Answer is :
$HTTP_GET_VARS[].
8. What is the purpose of the RegExp method test()?
A. Tests for a match in its float parameter
B. Tests for a match in its string parameter
C. Tests for a match in its integer parameter
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Tests for a match in its string parameter
9. What is the purpose of the function parameter filetype?
A. File type to be expected
B. File type previously got
C. File type that should not be got
D. None of the mentioned
Show Correct Answer
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?
A. add.element()
B. element.add()
C. element.appendChild()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
element.appendChild()
11. What is it called when we make a mistake in the script?
A. Error
B. Bug
C. Mistake
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Bug
12. Which of the following is the definition for debugging?
A. Finding bugs
B. Fixing bugs
C. Both Finding & Fixing bugs
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Both Finding & Fixing bugs
13. Where is the error icon shown in the Internet Explorer?
A. Taskbar
B. Status bar
C. Both Taskbar and Status bar
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Status bar
14. Where is the error icon option available?
A. Tools
B. Help
C. File
D. Edit
Show Correct Answer
Correct Answer is :
Tools
15. Which of the following is the window that the Firefox sends the error messages to?
A. Bug Window
B. Error Issues
C. Error Window
D. Error Console
Show Correct Answer
Correct Answer is :
Error Console
16. What is the procedure to view the console in the Firefox?
A. Tools->Error Console
B. Tools->Error Window
C. Help->Error Console
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Tools->Error Console
17. What is the other way of calling the Error Console in Firefox?
A. Error Window
B. JavaScript Console
C. JavaScript Window
D. All of the mentioned
Show Correct Answer
Correct Answer is :
JavaScript Console
18. What kind of error notifications are shown in the console window?
A. Syntax error
B. Runtime error
C. Both Syntax error and Runtime error
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Both Syntax error and Runtime error
19. How do we debug a script?
A. Use of JavaScript Validator
B. Use of JavaScript Debugger
C. Use of JavaScript Validator & Debugger
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Use of JavaScript Validator & Debugger
20. What is the purpose of a JavaScript debugger?
A. Correction of errors
B. Placing script execution under control
C. Correction of errors & Placing script execution under control
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Placing script execution under control
Similar Interview Questions
Search for latest jobs
Find Jobs