Sail E0 Webinar

MCQs

Total Questions : 82 | Page 6 of 9 pages
Question 51. Consider the following code snippet :
var book = {
"main title": "JavaScript",
'sub-title': "The Definitive Guide",
"for": "all audiences",
author: {
firstname: "David",
surname: "Flanagan"
}
};
In the above snippet, firstname and surname are
  1.    properties
  2.    property values
  3.    property names
  4.    objects
 Discuss Question
Answer: Option C. -> property names
Question 52. A linkage of series of prototype objects is called as :
  1.    prototype stack
  2.    prototype chain
  3.    prototype class
  4.    prototypes
 Discuss Question
Answer: Option B. -> prototype chain
Question 53. Consider the below given syntax
book[datatype]=assignment_value;
In the above syntax, the datatype within the square brackets must be
  1.    An integer
  2.    A String
  3.    An object
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> A String
Question 54. To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the
  1.    isPrototypeOf() method
  2.    equals() method
  3.    === operator
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> isPrototypeOf() method
Question 55. Consider the following code snippet
function f() {};
The above prototype represents a
  1.    Function f
  2.    A custom constructor
  3.    Prototype of a function
  4.    Not valid
 Discuss Question
Answer: Option B. -> A custom constructor
Question 56. The purpose of extensible attribute is to
  1.    make all of the own properties of that object nonconfigurable
  2.    to configure and bring a writable property
  3.    “lock down” objects into a known state and prevent outside tampering
  4.    all of the mentioned
 Discuss Question
Answer: Option C. -> “lock down” objects into a known state and prevent outside tampering
Question 57. Identify the process done in the below code snippet
o = {x:1, y:{z:[false,null,""]}};
s = JSON.
  1.    Object Encapsulation
  2.    Object Serialization
  3.    Object Abstraction
  4.    Object Encoding
 Discuss Question
Answer: Option B. -> Object Serialization
Question 58. The basic purpose of the toLocaleString() is to
  1.    return a localised object representation
  2.    return a parsed string
  3.    return a local time in the string format
  4.    return a localized string representation of the object
 Discuss Question
Answer: Option D. -> return a localized string representation of the object
Question 59. Javascript is _________ language.
  1.    Programming
  2.    Application
  3.    None of These
  4.    Scripting
 Discuss Question
Answer: Option D. -> Scripting
Question 60. JavaScript is ______ Side Scripting Language.
  1.    Server
  2.    Browser
  3.    ISP
  4.    None of These
 Discuss Question
Answer: Option B. -> Browser

Latest Videos

Latest Test Papers