1.

Which of the following class/classes supports the task of uploading and downloading the file?(a) WebRequest(b) WebResponse(c) WebClient(d) All of the mentionedI had been asked this question in an online interview.This is a very interesting question from Fundamental of Networking topic in division Namespaces, Preprocessors and Networking of C#

Answer»

The correct option is (C) WebClient

The BEST EXPLANATION: If we only need to upload or download a file, then WebClient is often the best WAY to accomplish it.



Discussion

No Comment Found

Related InterviewSolutions