Deck 25: Windows Communication Foundation Wcf Web Services in Vb

Full screen (f)
exit full mode
Question
The JSON format is _________ compared to the XML format.

A) of higher quality
B) more verbose
C) less verbose
D) None of the above
Use Space or
up arrow
down arrow
to flip the card.
Question
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
Question
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.
Question
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.
Question
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.
Question
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
Question
SOAP is based on ________.

A) HTML
B) XML
C) HTTP
D) All of the above
Question
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
Question
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
Question
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.
Question
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.
Question
The ________ attribute exposes a class to client access.

A) DataEndpoint
B) DataBinding
C) DataMember
D) DataContract
Question
All of the following are key components of a WCF service except:

A) contract
B) operation
C) address
D) binding
Question
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
Question
Each SOAP call is packaged in an XML message called a SOAP _________

A) envelope
B) packet
C) transfer
D) None of the above
Question
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
Question
Each operation in a RESTful web service is identified by a unique _________.

A) URL
B) proxy object
C) interface
D) None of the above
Question
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.
Question
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
Question
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.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/20
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
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
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
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
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.
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.
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
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
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
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
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.
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.
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
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
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
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
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
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
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.
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
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.
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 20 flashcards in this deck.