Java Script Multiple Choice Interview Questions and Answers for Freshers and Experienced

JavaScript is a lightweight programming language of HTML and the Web. It is designed for creating network-centric applications. It is complimentary to and integrated with Java. JavaScript is very easy to implement because it is integrated with HTML. It is open and cross-platform. Skill of HTML is very much required for entry-level as well as for senior web developer position. We can create dynamic web pages using HTML and Java Script. Here you will find a list of common important questions on Java Script in objective multiple choice question (MCQ) style with answer. The following section consists of objective multiple choice questions and answers (mcq) on Java Script.

Q.1 : How do you declare a JavaScript variable?

(A) variable name;

(B) var name;

(C) v name;

(D) var string name;

Correct Answer : ( B )

Q.2 : Inside which HTML element do we put the JavaScript?

(A) <js>

(B) <javascript>

(C) <scripting>

(D) <script>

Correct Answer : ( D )

Q.3 : Why JavaScript and Java have similar name?

(A) JavaScript is a stripped-down version of Java

(B) JavaScript's syntax is loosely based on Java

(C) They both originated on the island of Java

(D) None of the above

Correct Answer : ( B )

Q.4 : Which machine actually executes the Java script?

(A) The Users machine running a Web browser

(B) The Web server

(C) A central machine

(D) None of the above

Correct Answer : ( A )