ExamVeda
Login
Home
61
What is the purpose of the method createDocumentFragment()?
Discuss
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?
Discuss
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 ?
Discuss
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?
Discuss
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?
Discuss
Answer & Solution
Answer: Option A
Solution:
The property navigator.appCodeName is the same in both Netscape and IE.
66
Which best explains getSelection()?
Discuss
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?
Discuss
Answer & Solution
Answer: Option C
Solution:
Client-side JavaScript objects refer to objects that are available within the browser environment and interact directly with the user or the browser's document model.

Option A: Database - This is not a client-side JavaScript object. Databases are typically managed server-side or through external services.

Option B: Cursor - This is not a client-side JavaScript object. While cursors are used in database operations, they are not part of the JavaScript object model in the browser.

Option C: Client - This is the correct answer. Client-side JavaScript objects include the browser's window, document, navigator, and other objects that interact directly with the user's interface.

Option D: FileUpload - This is not a standard client-side JavaScript object. File uploads are handled via HTML input elements and server-side processing, though JavaScript can interact with these elements.

Conclusion:
In JavaScript, client-side objects are those that interact directly with the browser environment and user interface. Among the given options, only the Client is a client-side JavaScript object, making Option C the correct answer. Other options like Database, Cursor, and FileUpload are not considered standard client-side JavaScript objects.
68
What is the purpose of the method localeCompare()?
Discuss
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?
Discuss
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
Discuss
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.