Notes: Answer: a
Explanation: JavaScript supports external JavaScript, in the form of .js file. This extension can be captured by a number of applications including: Windows Script Host, Dreamweaver MX, Notepad, Netscape Navigator, PavScrip, UltraEdit. The files are generally text files.
987). 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] ”html” and “style” tag
Correct Answer: External JavaScript and the “script” tag
Notes: Answer: b
Explanation: All JavaScript libraries consists of two parts:
The external JavaScript itself, which is simply a text file with the containing JavaScript code, saved as a .js file.
A “script” tag referencing the external JavaScript file and defined on the page(s) that uses the library.
The Show Answer
Notes: Answer: a
Explanation: The prefs.js file, located in the profile folder, is used by Firefox and other Mozilla-based applications to store settings. For instance, when you create a new e-mail account in Thunderbird, the account name and server settings will be stored in the prefs.js file in your Thunderbird profile folder.
989). Which of the following is possible to be referenced in external JavaScript?
Notes: Answer: c
Explanation: PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. One of the lesser known sides of external JavaScript is the ability to reference a PHP file instead of the familiar .js file.
990). Which of the following attribute takes the source of the PHP file?
Notes: Answer: b
Explanation: Php file is used an scripting language for backend development. The syntax to referencing a PHP file using external JavaScript is consistent enough with what we already know
991). What kind of path can the PHP file be?
[A]Absolute [B]Relative [C]Either Absolute or Relative [D]Both Absolute and Relative
Notes: Answer: c
Explanation: The PHP code is enclosed in special start and end processing instructions that allows you to jump into and out of “PHP mode”. The PHP file is either an absolute or relative path to a PHP script instead of the usual .js file.
992). Which of the following global variables is used to get parameters?
Notes: Answer: d
Explanation: The global variable $HTTP_GET_VARS[] is used to get parameters. $HTTP_GET_VARS contains the same initial information, but is not a superglobal.
993). 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] Test for a match in node
Notes: Answer: a
Explanation: The File.type property is an inbuilt function of File WebAPI which gives the media type (MIME) of the file represented by a file object. The function parameter “filetype” lets you tell the script what file type to expect before loading.
995). Which of the following is the method used to add an element to the desired location?
Notes: Answer: c
Explanation: The method element.appendChild() is used to add the element to the desired location within the document tree. The appendChild() method appends a node as the last child of a node.