a) “script” tag and “body” tag
c) “html” tag and “body” tag
d) ”html” and “style” tag
The <script> element either contains scripting statements, or it points to an external script file through the src attribute.
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.
The code :
5. Which of the following attribute takes the source of the PHP file?
6. What kind of path can the PHP file be?
c) Either Absolute or Relative
d) Both Absolute and Relative
Explanation: The PHP code is enclosed in special start and end processing instructions <?php and ?> 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.
7. Which of the following global variables is used to get parameters?
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.
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) Test for a match in node
Explanation: RegExp stands for regular expression which is an object that describes a pattern of characters.
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) File type available
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.
10. Which of the following is the method used to add an element to the desired location?
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.