InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of these classes is used to create servers that listen to either local or remote client programs?(a) httpServer(b) ServerSockets(c) MimeHeader(d) HttpResponseThis question was addressed to me in an online quiz.This intriguing question originated from Network Errors Handling in division Namespaces, Preprocessors and Networking of C# |
|
Answer» The correct CHOICE is (b) ServerSockets |
|
| 2. |
Choose the exceptions generated by the GetResponseStream() method defined by WebRequest.(a) ProtocolViolationException(b) ObjectDisposedException(c) IOException(d) All of the mentionedThe question was posed to me in unit test.My question comes from Network Errors Handling in chapter Namespaces, Preprocessors and Networking of C# |
|
Answer» RIGHT CHOICE is (d) All of the mentioned The BEST I can EXPLAIN: NONE. |
|
| 3. |
Which of these classes is used for operating on the request from the client to the server?(a) http(b) httpDecoder(c) httpConnection(d) httpdThe question was posed to me during an interview.The doubt is from Network Errors Handling in chapter Namespaces, Preprocessors and Networking of C# |
| Answer» | |
| 4. |
Select the properties related to the network errors generated by WebException:(a) response(b) get(c) set(d) none of the mentionedThe question was asked in quiz.My question is based upon Network Errors Handling in section Namespaces, Preprocessors and Networking of C# |
|
Answer» The correct option is (a) response |
|
| 5. |
Choose the exceptions generated by the GetReponse() method defined by WebRequest.(a) InvalidOperationException(b) ProtocolViolationException(c) WebException(d) All of the mentionedThis question was posed to me in homework.My question is taken from Network Errors Handling topic in division Namespaces, Preprocessors and Networking of C# |
|
Answer» RIGHT ANSWER is (d) All of the mentioned Explanation: By DEFINITION. |
|
| 6. |
Choose the exceptions generated by the Create() method defined by WebRequest.(a) NotSupportedException(b) UriFormatException(c) System.Security.SecurityException(d) All of the mentionedThe question was posed to me by my school principal while I was bunking the class.My question is based upon Network Errors Handling topic in chapter Namespaces, Preprocessors and Networking of C# |
|
Answer» CORRECT CHOICE is (d) All of the mentioned Explanation: NONE. |
|
| 7. |
What exception is thrown if the user does not have a proper authorization?(a) URLNotFound(b) URLSourceNotFound(c) System.Security.SecurityException(d) All of the mentionedThe question was asked during an interview for a job.The doubt is from Network Errors Handling topic in portion Namespaces, Preprocessors and Networking of C# |
|
Answer» CORRECT OPTION is (C) System.Security.SecurityException The best I can EXPLAIN: None. |
|
| 8. |
What exception is thrown if the protocol supported by URI prefix is invalid?(a) URLNotFound(b) URLSourceNotFound(c) UriFormatException(d) NotSupportedExceptionI got this question during a job interview.I want to ask this question from Network Errors Handling in chapter Namespaces, Preprocessors and Networking of C# |
|
Answer» The CORRECT OPTION is (d) NotSupportedException |
|
| 9. |
What exception is thrown if the URI format is invalid?(a) URLNotFound(b) URLSourceNotFound(c) MalformedURLException(d) UriFormatExceptionThe question was posed to me in final exam.The doubt is from Network Errors Handling in chapter Namespaces, Preprocessors and Networking of C# |
|
Answer» The CORRECT CHOICE is (d) UriFormatException |
|
| 10. |
Which of these data members of HttpResponse class is used to store the response from a http server?(a) status(b) address(c) statusResponse(d) statusCodeThis question was addressed to me in an interview for internship.My query is from UrI Class in portion Namespaces, Preprocessors and Networking of C# |
|
Answer» RIGHT answer is (d) statusCode Explanation: When we SEND a REQUEST to HTTP server it responds with a status CODE. This status code is stored in statusCode and the textual equivalent is stored in reasonPhrase. |
|
| 11. |
Which of these is a standard for communicating multimedia content over email?(a) http(b) https(c) Mime(d) httpdI had been asked this question in a national level competition.I would like to ask this question from UrI Class in section Namespaces, Preprocessors and Networking of C# |
|
Answer» Correct answer is (c) Mime |
|
| 12. |
Which of these classes is used to encapsulate IP address and DNS?(a) DatagramPacket(b) URL(c) InetAddress(d) ContentHandlerThis question was addressed to me during a job interview.Question is taken from UrI Class in section Namespaces, Preprocessors and Networking of C# |
|
Answer» Right ANSWER is (c) InetAddress |
|
| 13. |
Which of these exceptions is thrown by the URL class’s constructors?(a) URLNotFound(b) URLSourceNotFound(c) MalformedURLException(d) URLNotFoundExceptionI had been asked this question in a job interview.My question comes from UrI Class topic in section Namespaces, Preprocessors and Networking of C# |
|
Answer» Correct ANSWER is (C) MalformedURLException |
|
| 14. |
What does URL stand for?(a) Uniform Resource Locator(b) Uniform Resource Latch(c) Universal Resource Locator(d) Universal Resource LatchI had been asked this question during a job interview.Question is taken from UrI Class in division Namespaces, Preprocessors and Networking of C# |
|
Answer» RIGHT choice is (a) Uniform RESOURCE Locator For explanation: NONE. |
|
| 15. |
Which of the following classes is used to encapsulate IP address and DNS?(a) DatagramPacket(b) URL(c) InetAddress(d) ContentHandlerThe question was posed to me by my college professor while I was bunking the class.I'm obligated to ask this question of Fundamental of Networking topic in division Namespaces, Preprocessors and Networking of C# |
|
Answer» The correct ANSWER is (c) InetAddress |
|
| 16. |
Which of the following is the full form of DNS?(a) Data Network Service(b) Data Name Service(c) Domain Network Service(d) Domain Name ServiceI got this question in an internship interview.Query is from Fundamental of Networking topic in portion Namespaces, Preprocessors and Networking of C# |
|
Answer» CORRECT option is (d) DOMAIN NAME Service The best I can explain: None. |
|
| 17. |
How many bits are present in a single IP address?(a) 8(b) 16(c) 32(d) 64The question was posed to me in an interview for job.This intriguing question originated from Fundamental of Networking in chapter Namespaces, Preprocessors and Networking of C# |
| Answer» | |
| 18. |
How many ports of TCP/IP are reserved for specific protocols?(a) 10(b) 1024(c) 2048(d) 512I got this question in homework.My doubt stems from Fundamental of Networking topic in division Namespaces, Preprocessors and Networking of C# |
|
Answer» RIGHT OPTION is (B) 1024 Explanation: NONE. |
|
| 19. |
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 |
|
| 20. |
Which of the following are the classes that support the standard HTTP protocol?(a) HttpWebRequest(b) HttpResponseHeader(c) HttpRequestHeader(d) HttpStatusCodeI have been asked this question during an online exam.The query is from Fundamental of Networking in chapter Namespaces, Preprocessors and Networking of C# |
|
Answer» Correct option is (a) HTTPWEBREQUEST |
|
| 21. |
Which of the following are the interfaces defined by the namespace System.Net?(a) IAuthenticationModule(b) HttpWebRequest(c) WebProxy(d) HttpResponseHeaderThis question was posed to me in an internship interview.Question is from Fundamental of Networking in section Namespaces, Preprocessors and Networking of C# |
|
Answer» Correct CHOICE is (a) IAuthenticationModule |
|
| 22. |
Which of the following are the classes defined by the namespace System.Net?(a) Cookie(b) CookieContainer(c) FileWebRequest(d) All of the mentionedThe question was asked by my college professor while I was bunking the class.My question is taken from Fundamental of Networking in chapter Namespaces, Preprocessors and Networking of C# |
|
Answer» CORRECT ANSWER is (d) All of the mentioned Explanation: NONE. |
|
| 23. |
Which namespace is mostly preferred for the operation of networking in C#?(a) System.Web(b) System.in(c) System.Net.Mail(d) All of the mentionedI got this question in examination.My question is from Fundamental of Networking topic in division Namespaces, Preprocessors and Networking of C# |
|
Answer» Correct OPTION is (c) System.NET.Mail |
|
| 24. |
Which of these can be used to differentiate two or more methods having same name?(a) Parameters data type(b) Number of parameters(c) Return type of method(d) All of the mentionedI have been asked this question in a national level competition.Asked question is from Method with Parameters topic in division Namespaces, Preprocessors and Networking of C# |
|
Answer» The CORRECT CHOICE is (d) All of the mentioned |
|
| 25. |
Which of these methods is executed first before execution of any other thing that takes place in a program?(a) main method(b) finalize method(c) static method(d) private methodI had been asked this question in unit test.I want to ask this question from Method with Parameters topic in section Namespaces, Preprocessors and Networking of C# |
|
Answer» CORRECT answer is (c) static method Explanation: If a static method is PRESENT in the PROGRAM then it will be executed FIRST, then main will be executed. |
|
| 26. |
What is the process of defining more than one method in a class differentiated by parameters known as?(a) Function overriding(b) Function overloading(c) Function doubling(d) None of the mentionedThis question was addressed to me in my homework.I need to ask this question from Method with Parameters in chapter Namespaces, Preprocessors and Networking of C# |
|
Answer» The correct answer is (b) Function overloading |
|
| 27. |
Which of these data types can be used for a method having a return statement in it?(a) void(b) int(c) float(d) all of the mentionedI have been asked this question in a job interview.Question is from Method with Parameters in portion Namespaces, Preprocessors and Networking of C# |
|
Answer» RIGHT OPTION is (d) all of the mentioned Explanation: NONE. |
|