250+ TOP MCQs on External JavaScript and PHP and Answers

Javascript Multiple Choice Questions on “External JavaScript and PHP”.

1. In which format does JavaScript support external JavaScript?
a) .js
b) .php
c) .js/php
d) .jss
Answer: a
Clarification: 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.

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) ”html” and “style” tag
Answer: b
Clarification: 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

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top