JavaScript MCQs with answers Page - 30

Here, you will find a collection of MCQ questions on JavaScript. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833K Points
Coach

Q. The object has three object attributes namely

  • (A) Class, parameters, object’s extensible flag
  • (B) Prototype, class, objects’ parameters
  • (C) Prototype, class, object’s extensible flag
  • (D) Native object, Classes and Interfacces and Object’s extensible flag

A

Admin • 833K Points
Coach

Q. A linkage of series of prototype objects is called as

  • (A) prototype stack
  • (B) prototype chain
  • (C) prototype class
  • (D) prototypes

A

Admin • 833K Points
Coach

Q. To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the

  • (A) isPrototypeOf() method
  • (B) equals() method
  • (C) === operator
  • (D) none of the mentioned

A

Admin • 833K Points
Coach

Q. The purpose of extensible attribute is to

  • (A) make all of the own properties of that object nonconfigurable
  • (B) to configure and bring a writable property
  • (C) “lock down” objects into a known state and prevent outside tampering
  • (D) all of the mentioned

A

Admin • 833K Points
Coach

Q. The basic purpose of the toLocaleString() is to

  • (A) return a localised object representation
  • (B) return a parsed string
  • (C) return a local time in the string format
  • (D) return a localized string representation of the object

A

Admin • 833K Points
Coach

Q. JavaScript is designed for following purpose

  • (A) To Style HTML Pages
  • (B) To Execute Query Related to DB on Server
  • (C) To add interactivity to HTML Pages.
  • (D) To Perform Server Side Scripting Opertion

A

Admin • 833K Points
Coach

Q. JavaScript Code can be called by using _________.

  • (A) RMI
  • (B) Triggering Event
  • (C) Preprocessor
  • (D) Function / Method

A

Admin • 833K Points
Coach

Q. Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)

  • (A) parse
  • (B) async
  • (C) defer
  • (D) type

A

Admin • 833K Points
Coach

Q. Which was the first browser to support JavaScript ?

  • (A) Netscape
  • (B) IE
  • (C) Mozilla Firefox
  • (D) Google Chrome

A

Admin • 833K Points
Coach

Q. The snippet that has to be used to check if “a” is not equal to “null” is

  • (A) if(a!=null)
  • (B) if (!a)
  • (C) if(a!null)
  • (D) if(a!==null)

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ