adplus-dvertising
frame-decoration

Question

Which of the following reads the textual contents of a URL and returns as a string?

a.

spawn(f);

b.

load(filename,...);

c.

readFile(file);

d.

readUrl(url);

Posted under JavaScript

Answer: (d).readUrl(url);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following reads the textual contents of a URL and returns as a string?

Similar Questions

Discover Related MCQs

Q. Which Rhino command quits Rhino environment?

Q. Which is a useful way to try out small and simple Rhino programs and one-liners?

Q. Which is a more formal way of importing packages and classes as JavaScript objects?

Q. Consider the following code snippet:

var f = new java.io.File("/tmp/test");
var out = new java.io.FileWriter(f);
out instanceof java.io.Reader

What will be the output for the above code snippet?

Q. What does Rhino do when the getter and setter methods exist?

Q. The JavaScript classes can be instantiated using _____ operator?

Q. The new Java arrays can be created into a JavaScript programs using which of the following classes?

Q. Which is a fast C++ based JavaScript interpreter?

Q. Why does the Node rely on event handlers?

Q. What is the command to run the node programs?

Q. What is the alternative command used in Node for load()?

Q. What is the command used for debugging output in Node?

Q. What is the code to print hello one second from now?

Q. Among the below given functions, Node supports which of the following client-side timer functions?

Q. The necessary globals of a node are defined under which namespace?

Q. Why does Node not block while waiting for operations to complete?

Q. Which is the method used for registering handlers?

Q. The main purpose of JavaScript in web browser is to

Q. A JavaScript program can traverse and manipulate document content through

Q. The behaviour of the document elements can be defined by