61. What is the purpose of the method createDocumentFragment()? A. Creates a fragment object B. Creates a document fragment C. Creates imaginary node object D. None of the mentioned Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: The createDocumentFragment() method creates a imaginary Node object, with all the properties and methods of the Node object.
62. What is the default value of the asyc attribute? A. 0 B. 1 C. False D. True Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D Solution: The async attribute optionally accepts a boolean value and by default holds the value true.
63. What is the method to create a data frame ? A. frame(data) B. frameData() C. data.frame() D. none of the mentioned Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: The method to create a data frame is data.frame().
64. What is the purpose of creating a data frame? A. Hold the page render time B. Hold the load time C. Hold the page render time & load time D. None of the mentioned Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: You can create a data frame to hold the mean page render times for each test URL, and a data frame to hold the mean load time for each test URL.
65. Which of the following navigator object properties is the same in both Netscape and IE? A. navigator.appCodeName B. navigator.appName C. navigator.appVersion D. none of the mentioned Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A Solution: The property navigator.appCodeName is the same in both Netscape and IE.
66. Which best explains getSelection()? A. Returns the VALUE of a selected OPTION B. Returns document.URL of the window in focus C. Returns the value of cursor-selected text D. Returns the VALUE of a checked radio input Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: The getSelection() method returns the value of the cursor-selected text.
67. Which of the following are client-side JavaScript object? A. Database B. Cursor C. Client D. FileUpLoad Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D Solution: The FileUpLoad is a client-side JavaScript object.
68. What is the purpose of the method localeCompare()? A. If the reference string comes before or after another string B. If the reference string is validated C. If the string is a reference string D. None of the mentioned Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A Solution: The method localeCompare() returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.
69. When the “end” event fires on EOF when no more data will arrive, which function is called? A. s.on("data",f); B. s.on("end",f); C. s.on("error",f); D. s.on("default",f); Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B Solution: The above code snippet gets “end” event fired on EOF when no more data will arrive.
70. To define each of the set classes as a property of the sets object (namespace) for the module, the statement is A. sets = sets.AbstractEnumerableSet.extend(); B. sets.SingletonSet = sets.AbstractEnumerableSet.extend(...); C. sets.SingletonSet = sets.extend(...); D. sets = sets.extend(...); Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B Solution: The sets object is the namespace for the module, and we define each of the set classes as a property of this object.