Master the essentials of networking and web services in Visual Basic .NET with these 30 multiple-choice questions. Focus areas include working with HTTP requests, creating and consuming REST APIs, and understanding WCF (Windows Communication Foundation). Test your knowledge and improve your skills in VB.NET’s powerful web programming capabilities.
Working with HTTP Requests
Creating and Consuming REST APIs
6. In a REST API, what does REST stand for?
WCF (Windows Communication Foundation) Basics
16. Which of the following is used to define a WCF service in VB.NET?
Qno | Answer |
---|---|
1 | c) HttpWebRequest |
2 | a) GetResponse() |
3 | b) Using Method property |
4 | a) HttpWebResponse |
5 | c) GET |
6 | c) Representational State Transfer |
7 | b) POST |
8 | d) 502 |
9 | c) OK |
10 | a) Use HttpClient’s PostAsync() with JSON content |
11 | b) HttpClient |
12 | c) Both XML and JSON |
13 | a) Configure routing |
14 | d) All of the above |
15 | a) Content-Type: application/json |
16 | a) ServiceContract attribute |
17 | b) Supports multiple transport protocols |
18 | a) HTTP |
19 | b) ServiceHost.Open() |
20 | a) BasicHttpBinding |
21 | c) HttpWebBinding |
22 | b) Supports multiple message patterns |
23 | c) The service interface |
24 | a) WCF supports SOAP-based communication |
25 | a) ServiceHost |
26 | d) All of the above |
27 | c) Both one-way and duplex communication |
28 | b) To expose methods in the service |
29 | b) app.config |
30 | c) Both message and transport security |