JavaScript MCQ

JavaScript MCQ

  • Sharad Jaiswal
  • 22nd Nov, 2021

We have listed here the best JavaScript MCQ Questions for your basic knowledge of JavaScript MCQ. This JavaScript MCQ Test contains 15 multiple Choice Questions. You have to select the right answer to every question.

JavaScript MCQ Questions

1) Who is the Father of JavaScript

  • A. Denis Ritchie
  • B.Brendan Eich
  • C.Kem Thopsan
  • D.Taylor

2) Why so JavaScript and Java have similar name?

  • A. JavaScript's syntax is loosely based on Java's
  • B.JavaScript is a stripped-down version of Java
  • C.They both originated on the island of Java
  • D.None of the above

3) JavaScript is ______

  • A. Application language.
  • B.Programming language.
  • C.Scripting language.
  • D.Both A & B

4) JavaScript is interpreted by_________

  • A. Client
  • B.Server
  • C.Object
  • D.None of the above

5) An extension to HTML that can enclose any number of JavaScript statements

  • A. <:TITLE>
  • B.<:HEAD>
  • C.<:BODY>
  • D.<:SCRIPT>

6) JavaScript code between a pair of “script” tags are called

  • A. External
  • B.Referenced
  • C.Non-inline
  • D.Inline

7) What type of image map could be used with Java Script?

  • A. Server-side image maps
  • B.Localhost image maps
  • C.Client-side image maps
  • D.None of the above

8) Syntax of a blur method in a button object

  • A. Blur()
  • B.Blur(contrast)
  • C.Blur(depth)
  • D.Blur(value)

9) What is the correct syntax for referring to an external script called " abc.js"

  • A. <:script href=" abc.js">
  • B.<:script src=" abc.js">
  • C.<:script name=" abc.js">
  • D.None of the above

10) _______ keyword is used to declare variables in javascript.

  • A. Var
  • B.Dim
  • C.String
  • D.All of the above

11) Which of the following is correct about features of JavaScript?

  • A. Complementary to and integrated with Java.
  • B.Designed for creating network-centric applications.
  • C.Lightweight, interpreted programming language.
  • D.All of the above

12) Where is the correct place to inserted a javascript code?

  • A. <:HEAD>
  • B.<:BODY>
  • C.<:FORM>
  • D.Both A & B

13) How to write an if else statement in javascript?

  • A. condition if is true or else is false
  • B.condition if is false or else is true
  • C.condition .js is true
  • D.None of the above

14) What is the correct javascript syntax to write "hello world" programme?

  • A. .js.(Hello_World)
  • B.alertBox("Hello World");
  • C.javasript.(Hello World)
  • D.alert Box("Hello World")

15) Which of the following is the correct statement for comment in a JavaScript?

  • A. <!--This is a comment-->
  • B.//This is a comment
  • C.'This is a comment
  • D.None of these

16) Executable single line of Script is called as _______

  • A. Statement in JavaScript
  • B.Line in JavaScript
  • C.Breakpoint in JavaScript
  • D.Both A & B

17) The "function" and " var" are known as:

  • A. Data types
  • B.Keywords
  • C.Declaration statements
  • D.Prototypes

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

Agile Scrum MCQ
React Js MCQ