Top 80+ Solved JavaScript MCQ Questions Answer
Q. Which one of the following symbol is used for creating comments in thejavascript:
a. \\
b. //
c. \* *\
d. \* */
Q. Which one of the following is not considered as "statement" in the JavaScript?
a. use strict
b. debugger
c. if
d. with
Q. A collection of elements of the same data type which may either in order or not,is called _____.
a. String
b. Array
c. Serialized Object
d. Object
Q. . The behaviour of the document elements can be defined by
a. Using document object
b. Registering appropriate event handlers
c. Using element object
d. All of the mentioned
Q. The service(s) that enables networking through scripted HTTP requests is
a. XMLHttpResponse
b. XMLRequest
c. XMLHttpRequest
d. All of the mentioned
Q. The HTML5 specification includes
a. Data storage
b. Graphics APIs
c. Other APIs for web apps
d. All of the mentioned
Q. Which of the following are not advanced services?
a. Data storage
b. Networking
c. XMLHttpRequest object
d. None of the mentioned
Q. JavaScript code between a pair of “script” tags are called
a. Non-inline
b. External
c. Referenced
d. Inline
Q. Client-side JavaScript code is embedded within HTML documents in
a. A URL that uses the special javascript:encoding
b. A URL that uses the special javascript:stack
c. A URL that uses the special javascript:protocol
d. A URL that uses the special javascript:code
Q. What is the programming philosophy that argues that content and behaviourshould as much as possible be kept separate?
a. Unobtrusive JavaScript
b. Obtrusive JavaScript
c. Inherited JavaScript
d. Modular JavaScript
Q. Which of the following communicates with server-side CGI scripts through HTMLform submissions and can be written without the use of JavaScript?
a. Static Web Pages
b. Interactive Web Pages
c. Conditional Web Pages
d. None of the mentioned