1.

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);I got this question by my college director while I was bunking the class.My question is based upon Server-Side JavaScript topic in section Server-Side and Client-Side Scripting of JavaScript

Answer»

Right ANSWER is (b) s.on(“end”,F);

For EXPLANATION: ”EOF” STANDS for end of file.The above code SNIPPET gets “end” event fired on EOF when no more data will arrive.



Discussion

No Comment Found

Related InterviewSolutions