Sail E0 Webinar

MCQs

Total Questions : 117 | Page 5 of 12 pages
Question 41. What is the purpose of the Math method toSource()?
  1.    Returns the string “Math”
  2.    Sends the source to the Math Library
  3.    Returns the value of the object
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Returns the string “Math”
Question 42. Which of the following are static methods in JavaScript?
  1.    Date.parse()
  2.    Date.UTC()
  3.    Both Date.parse() and Date.UTC()
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> Both Date.parse() and Date.UTC()
Question 43. How many static methods does a Date object have?
  1.    3
  2.    5
  3.    4
  4.    2
 Discuss Question
Answer: Option D. -> 2
Question 44. If we have an object r and want to know if it is a Range object, we can write:
  1.    r typeof Range
  2.    r is Range
  3.    r equals Range
  4.    r instanceof Range
 Discuss Question
Answer: Option D. -> r instanceof Range
Question 45. What is the property to access the first child of a node?
  1.    timestamp.Child1
  2.    timestamp.Child(1)
  3.    timestamp.Child(0)
  4.    timestamp.firstChild
 Discuss Question
Answer: Option D. -> timestamp.firstChild
Question 46. Which of the following is not an object?
  1.    Element
  2.    Location
  3.    Position
  4.    Window
 Discuss Question
Answer: Option C. -> Position
Question 47. What is the code snippet to change the class and let the stylesheet specify the details?
  1.    timestamp.className = "highlight";
  2.    timestamp.className = "change";
  3.    timestamp.className = "specify";
  4.    timestamp.className = "move";
 Discuss Question
Answer: Option A. -> timestamp.className = "highlight";
Question 48. What does the interpreter do when you reference variables in other scopes?
  1.    Traverses the queue
  2.    Traverses the stack
  3.    Finds the bugs
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Traverses the stack
Question 49. What will happen if you reference document.location from within an object?
  1.    Traverses the queue
  2.    Finds the bugs
  3.    Traverses the stack
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> Traverses the stack
Question 50. The attribute location belongs to which element?
  1.    document
  2.    html
  3.    image
  4.    pre
 Discuss Question
Answer: Option A. -> document

Latest Videos

Latest Test Papers