Deck 25: Windows Communication Foundation Wcf Web Services in Vb
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/20
Play
Full screen (f)
Deck 25: Windows Communication Foundation Wcf Web Services in Vb
1
The JSON format is _________ compared to the XML format.
A) of higher quality
B) more verbose
C) less verbose
D) None of the above
A) of higher quality
B) more verbose
C) less verbose
D) None of the above
C
2
To have the same object of a web service class handle all calls to the service, the ServiceBehavior attribute's InstanceContextMode must be set to ___________.
A) PerSession
B) Single
C) PerCall
D) PerInstance
A) PerSession
B) Single
C) PerCall
D) PerInstance
B
3
An XML data object is converted to a custom type via the process of ____________.
A) deserialization
B) SOAP decoding
C) typecasting
D) None of the above.
A) deserialization
B) SOAP decoding
C) typecasting
D) None of the above.
A
4
Once the user's information is stored in a session variable, ______.
A) web methods can return personalized and localized results
B) the application will perform better because less information needs to pass between the client and the server.
C) Both (a) and (b).
D) None of the above.
A) web methods can return personalized and localized results
B) the application will perform better because less information needs to pass between the client and the server.
C) Both (a) and (b).
D) None of the above.
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
5
Which is a not requirement of a custom data type to be used in web services
A) Any variables to be accessed during runtime must be declared WebVar.
B) The class with the web methods must provide a Public default constructor.
C) Properties and instance variables that should be serialized must be declared Public.
D) Properties that should be serialized must provide both get and set accessors.
A) Any variables to be accessed during runtime must be declared WebVar.
B) The class with the web methods must provide a Public default constructor.
C) Properties and instance variables that should be serialized must be declared Public.
D) Properties that should be serialized must provide both get and set accessors.
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
6
In the Web.config file, the service binding in the endpoint element must be set to ________ to support REST-based HTTP requests.
A) webHttpBinding
B) wsHttpBinding
C) basicHttpBinding
D) netHttpBinding
A) webHttpBinding
B) wsHttpBinding
C) basicHttpBinding
D) netHttpBinding
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
7
SOAP is based on ________.
A) HTML
B) XML
C) HTTP
D) All of the above
A) HTML
B) XML
C) HTTP
D) All of the above
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
8
A WCF web service in Visual Web Developer consists of ________.
A) a code-behind file
B) a Web.config file
C) an SVC file
D) All of the above
A) a code-behind file
B) a Web.config file
C) an SVC file
D) All of the above
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
9
An application that consumes a SOAP-based web service consists of a ________ class and a ________ application.
A) client, virtual
B) proxy, client
C) virtual, proxy
D) user, proxy
A) client, virtual
B) proxy, client
C) virtual, proxy
D) user, proxy
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
10
REST-based web services differ from SOAP-based web services in that ________.
A) REST operations must be accessed through a web service proxy object
B) REST services are less verbose than SOAP-based services
C) the request and response of REST services are not wrapped in envelopes and are not necessarily in XML format
D) None of the above.
A) REST operations must be accessed through a web service proxy object
B) REST services are less verbose than SOAP-based services
C) the request and response of REST services are not wrapped in envelopes and are not necessarily in XML format
D) None of the above.
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
11
The machine on which the web service resides is commonly referred to as the ___________.
A) web service host
B) service machine
C) web machine
D) None of the above.
A) web service host
B) service machine
C) web machine
D) None of the above.
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
12
The ________ attribute exposes a class to client access.
A) DataEndpoint
B) DataBinding
C) DataMember
D) DataContract
A) DataEndpoint
B) DataBinding
C) DataMember
D) DataContract
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
13
All of the following are key components of a WCF service except:
A) contract
B) operation
C) address
D) binding
A) contract
B) operation
C) address
D) binding
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
14
For a WCF web service to return data in JSON format, WebGet's ResponseFormat property must be set to ________.
A) WebMessageFormat.Json
B) MessageFormat.Json
C) an SVC file
D) All of the above
A) WebMessageFormat.Json
B) MessageFormat.Json
C) an SVC file
D) All of the above
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
15
Each SOAP call is packaged in an XML message called a SOAP _________
A) envelope
B) packet
C) transfer
D) None of the above
A) envelope
B) packet
C) transfer
D) None of the above
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
16
JSON is a text-based data-interchange format used to represent objects in JavaScript as collections of _________ represented as strings.
A) data/format pairs
B) primary key/data rows
C) definition/key pairs
D) name/value pairs
A) data/format pairs
B) primary key/data rows
C) definition/key pairs
D) name/value pairs
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
17
Each operation in a RESTful web service is identified by a unique _________.
A) URL
B) proxy object
C) interface
D) None of the above
A) URL
B) proxy object
C) interface
D) None of the above
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following is false
A) WCF is a set of technologies for building distributed systems in which system components communicate with one another over networks.
B) Since WCF is a common framework for all communication between systems, it allows you to learn only one programming model to use WCF.
C) Web services promote software reusability in distributed systems that typically execute across the Internet.
D) Web services allow its methods to be called by methods on other machines via different data formats and protocols.
A) WCF is a set of technologies for building distributed systems in which system components communicate with one another over networks.
B) Since WCF is a common framework for all communication between systems, it allows you to learn only one programming model to use WCF.
C) Web services promote software reusability in distributed systems that typically execute across the Internet.
D) Web services allow its methods to be called by methods on other machines via different data formats and protocols.
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
19
The ________ attribute maps a method to a unique URL that can be accessed via an HTTP GET operation programmatically or in a web browser.
A) OperationContract
B) WebGet
C) OperationBinding
D) UriTemplate
A) OperationContract
B) WebGet
C) OperationBinding
D) UriTemplate
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
20
A web service's methods can be called by methods on other machines using ___________.
A) Representational State Transfer (REST) architecture
B) Simple Object Access Protocol
C) Both (a) and (b).
D) None of the above.
A) Representational State Transfer (REST) architecture
B) Simple Object Access Protocol
C) Both (a) and (b).
D) None of the above.
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck