Deck 25: Web Services
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/16
Play
Full screen (f)
Deck 25: Web Services
1
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.
A
2
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.
C
3
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
B
4
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 16 flashcards in this deck.
Unlock Deck
k this deck
5
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 16 flashcards in this deck.
Unlock Deck
k this deck
6
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 16 flashcards in this deck.
Unlock Deck
k this deck
7
A WCF web service in Visual Studio 2012 Express for Web 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 16 flashcards in this deck.
Unlock Deck
k this deck
8
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 16 flashcards in this deck.
Unlock Deck
k this deck
9
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 their 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 their methods to be called by methods on other machines via different data formats and protocols.
Unlock Deck
Unlock for access to all 16 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 16 flashcards in this deck.
Unlock Deck
k this deck
11
JSON format is _________ compared to 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
Unlock Deck
Unlock for access to all 16 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 16 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 16 flashcards in this deck.
Unlock Deck
k this deck
14
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.
Unlock Deck
Unlock for access to all 16 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following is false?
A)The two most common HTTP request types (also known as request methods)are get and post.
B)Both get and post requests send form data to the server as part of the URL.
C)An HTTP request often sends data to a server-side form handler that processes the data.
D)A ? separates the query string from the rest of the URL in a get request.
A)The two most common HTTP request types (also known as request methods)are get and post.
B)Both get and post requests send form data to the server as part of the URL.
C)An HTTP request often sends data to a server-side form handler that processes the data.
D)A ? separates the query string from the rest of the URL in a get request.
Unlock Deck
Unlock for access to all 16 flashcards in this deck.
Unlock Deck
k this deck
16
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 16 flashcards in this deck.
Unlock Deck
k this deck