Home

JavaScript MCQ Question with Answer

JavaScript MCQ with detailed explanation for interview, entrance and competitive exams. Explanation are given for understanding.

Download JavaScript MCQ Question Answer PDF

Question No : 1
The web development environment (JavaScript) offers which standard construct for data validation of the input entered by the user.

Controlled loop constructs
Case checking constructs
Validation constructs
All of the mentioned

Question No : 2
The main purpose of a Live Wire in NetScape is to ________

Create linkage between client side and server side
Permit server side, JavaScript code, to connect to RDBMS
Support only non relational database
To interpret JavaScript code

Question No : 3
The script tag must be placed in __________

the head tag
the head or body
the title or head
after the body tag

Question No : 4
A JavaScript program developed on a Unix Machine ________

will throw errors and exceptions
must be restricted to a Unix Machine only
will work perfectly well on a Windows Machine
will be displayed as a JavaScript text on the browser

Question No : 5
JavaScript is ideal to ________

make computations in HTML simpler
minimize storage requirements on the web server
increase the download time for the client
increase the loading time of the website

Question No : 6
Which attribute is used to specify that the script is executed when the page has finished parsing? (only for external scripts)

parse
a sync
defer
type

Question No : 7
JavaScript Code can be called by using ____________

RMI
Triggering Event
Preprocessor
Function/Method