Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
New Perspectives on HTML5 CSS3 and JavaScript
Quiz 14: Exploring Object-Based Programming
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
. If the constructor function is a machine to create object instances, then the _____ is the blueprint for the objects that are created.
Question 22
Multiple Choice
Which of the following commands is used to create a custom object using the new operator?
Question 23
Multiple Choice
Identify the method that ensures that the functions defined in one script do not conflict with functions or variables defined in other scripts.
Question 24
Multiple Choice
Identify the correct syntax to add methods to a custom object.
Question 25
Multiple Choice
Identify the structure in which any function, including named functions, is nested within another function.
Question 26
Multiple Choice
Identify the expression used to reference a prototype.
Question 27
Multiple Choice
In an object literal, each _____ pair contains a property and property value associated with the object.
Question 28
Multiple Choice
Which of the following objects is also known as user-defined objects?
Question 29
Multiple Choice
Which of the following methods is applied to define a custom object?
Question 30
Multiple Choice
Refer to the following code snippet and identify the use of the substring() and toLowerCase() methods. function pokerCard(cardSuit, cardRank) { … this.cardImage() = function() { var suitAbbr = this.suit.substring(0, 1) .toLowerCase() ; return suitAbbr + this.rankValue + ".p ng"; } }
Question 31
Multiple Choice
Which of the following notations is used to write object properties?
Question 32
Multiple Choice
Which of the following commands is used to add a method to a prototype .
Question 33
Multiple Choice
Which of the following methods is applied to sort any array in random order?
Question 34
Multiple Choice
Identify the general syntax of the object literal.
Question 35
Multiple Choice
Identify the use of var objInstance = new objClass(parameters) ; command.
Question 36
Multiple Choice
Identify the significance of this keyword in the following constructor function. function objClass(parameters) { this.prop1 = value1; this.prop2 = value2; … this.method1 = function1; this.method2 = function2; … }