Q. JavaScript was invented at _______ Lab.

  • (A) AT&T Bell LAb
  • (B) Google Lab
  • (C) Sun Microsystem
  • (D) Netscape
πŸ’¬ Discuss
βœ… Correct Answer: (D) Netscape

Q. Variable can hold ________ value at a time.

  • (A) Multiple
  • (B) Single
  • (C) Double
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) Single

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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Prototype, class, object’s extensible flag

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

  • (A) prototype stack
  • (B) prototype chain
  • (C) prototype class
  • (D) prototypes
πŸ’¬ Discuss
βœ… Correct Answer: (B) prototype chain

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
πŸ’¬ Discuss
βœ… Correct Answer: (A) isPrototypeOf() method

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
πŸ’¬ Discuss
βœ… Correct Answer: (C) “lock down” objects into a known state and prevent outside tampering

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
πŸ’¬ Discuss
βœ… Correct Answer: (D) return a localized string representation of the object

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
πŸ’¬ Discuss
βœ… Correct Answer: (C) To add interactivity to HTML Pages.

Q. JavaScript Code can be called by using _________.

  • (A) RMI
  • (B) Triggering Event
  • (C) Preprocessor
  • (D) Function / Method
πŸ’¬ Discuss
βœ… Correct Answer: (D) Function / Method

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
πŸ’¬ Discuss
βœ… Correct Answer: (C) defer