Q. The syntax for adding a property to an object is?

  • (A) objectName.objectProperty == propertyValue;
  • (B) objectName.objectProperty = propertyValue;
  • (C) objectProperty = propertyValue;
  • (D) objectProperty == propertyValue;
πŸ’¬ Discuss
βœ… Correct Answer: (B) objectName.objectProperty = propertyValue;

Q. The capability to store one object inside another object known as?

  • (A) Polymorphism
  • (B) Inheritance
  • (C) Aggregation
  • (D) Encapsulation
πŸ’¬ Discuss
βœ… Correct Answer: (C) Aggregation

Q. A programming language can be called object-oriented if it provides ________ basic capabilities to developers

  • (A) 1
  • (B) 2
  • (C) 3
  • (D) 4
πŸ’¬ Discuss
βœ… Correct Answer: (D) 4

Q. what will be the output of below code?

Code:
const event = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
console.log (event.toLocaleString('en-IN', { timeZone: 'UTC' }));
  • (A) 2012/12/20, 3:00:00 am
  • (B) 20/12/2012, 3:00:00 am
  • (C) 12/20/2012, 3:00:00
  • (D) 20/12/2012, 3:00:00
πŸ’¬ Discuss
βœ… Correct Answer: (B) 20/12/2012, 3:00:00 am

Q. If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

  • (A) "New Text"?
  • (B) para1.value="New Text";
  • (C) para1.firstChild.nodeValue= "New Text";
  • (D) para1.nodeValue="New Text";
πŸ’¬ Discuss
βœ… Correct Answer: (B) para1.value="New Text";

Q. Object ......... is the process of converting an objects state to a string from which it can later be restored.

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

Q. ________________serializes only the enumerable own properties of an object.

  • (A) JSON.Objectify()
  • (B) JSON.Null()
  • (C) JSON.Stringify()
  • (D) JSON.Parse()
πŸ’¬ Discuss
βœ… Correct Answer: (C) JSON.Stringify()

Q. Microsoft has developed a popular HTML editor called?

  • (A) Dreamweaver
  • (B) FrontPage
  • (C) HomeSite
  • (D) Macromedia
πŸ’¬ Discuss
βœ… Correct Answer: (B) FrontPage

Q. Which of the following true about Javascript?

  • (A) Client-side JavaScript does not allow the reading or writing of files
  • (B) JavaScript cannot be used for networking applications
  • (C) JavaScript doesn't have any multi-threading or multiprocessor capabilities
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

Q. which of the following are advantages of JavaScript?

  • (A) Less server interaction
  • (B) Increased interactivity
  • (C) Richer interfaces
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above