Deck 25: Web Services

ملء الشاشة (f)
exit full mode
سؤال
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.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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.
سؤال
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
سؤال
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.
سؤال
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
سؤال
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 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
سؤال
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
سؤال
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.
سؤال
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.
سؤال
JSON format is _________ compared to XML format.

A)of higher quality
B)more verbose
C)less verbose
D)None of the above
سؤال
The ________ attribute exposes a class to client access.

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

A)contract
B)operation
C)address
D)binding
سؤال
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.
سؤال
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.
سؤال
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 Deck
1/16
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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
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.
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
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
12
The ________ attribute exposes a class to client access.

A)DataEndpoint
B)DataBinding
C)DataMember
D)DataContract
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
13
All of the following are key components of a WCF service except:

A)contract
B)operation
C)address
D)binding
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.