网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
A Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a SerializationException if any of the data members are not present when a serialized instance of the data contract is deserialized.What should you do?()
A
Add the KnownType attribute to the data contract. Set a default value in each of the data member declarations.
B
Add the KnownType attribute to the data contract. Set the Order property of each data member to unique integer value.
C
Set the EmitDefaultValue property of each data member to false.
D
Set the lsRequired property of each data member to true.
参考答案
参考解析
解析:
暂无解析
更多 “单选题A Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a SerializationException if any of the data members are not present when a serialized instance of the data contract is deserialized.What should you do?()A Add the KnownType attribute to the data contract. Set a default value in each of the data member declarations.B Add the KnownType attribute to the data contract. Set the Order property of each data member to unique integer value.C Set the EmitDefaultValue property of each data member to false.D Set the lsRequired property of each data member to true.” 相关考题
考题
You create a Windows Communication Foundation (WCF) service. It is deployed on Microsoft Internet Information Services (IIS) with an application pool running as Network Service. You enable WMI tracing before launching the service. Your IT support staff adds WMI data collection through ASP.NET WMI tracing.You need to restrict the collection of WMI data to a privileged account.What should you do in WMI Control in the Computer Management console?()A.B.C.D.
考题
You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows:[OperationContract]void PostData(Order data);You need to modify PostData so that it can receive any SOAP message. Which code segment should you use?()A. [OperationContract(IsOneWay=true, Action=*, ReplyAction=*)] void PostData(Order data);B. [OperationContract(IsOneWay=true, Action=*, ReplyAction = *)] void PostData(BodyWriter data);C. [OperationContract] void PostData(BodyWriter data);D. [OperationContract] void PostData(Message data);
考题
Exhibit: You are developing a Web application. The Web application uses a GridView control to display data. You build your Web Forms for the Web application by dragging and dropping tables from the Data Connections tree in Server Explorer. You need to add a connection to your data by using the Add Connection dialog box as shown in the exhibit. During the process, you need to configure the .NET Data Provider that you use to create the data source objects. What should you do?()A. Right-click the connection, and click Properties. Modify the Provider property of the data connection.B. Click the Change button, and change the data provider for the selected data source.C. Click the Advanced button, and change the Data Source property to the target provider.D. Click the Advanced button, and change the Application Name property to the target provider.
考题
You install a custom application on a computer that runs Microsoft Windows XP. The application stores each user’s data in the %programfiles%\app1\data folder on the computer. You install the custom application on a computer that runs Windows Vista.On the Windows Vista computer, you back up the %programfiles%\app1\data folder and notice that the backup contains no data.You need to back up the application’s user data on the Windows Vista computer.What should you do?()A.AB.BC.CD.D
考题
You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows:[OperationContract]void PostData(Order data);You need to modify PostData so that it can receive any SOAP message. Which code segment should you use?()A、[OperationContract(IsOneWay=true, Action="*", ReplyAction="*")] void PostData(Order data);B、[OperationContract(IsOneWay=true, Action="*", ReplyAction = "*")] void PostData(BodyWriter data);C、[OperationContract] void PostData(BodyWriter data);D、[OperationContract] void PostData(Message data);
考题
An application uses Windows Azure Table storage. The application uses five tables. One table used by the application is approaching the limit for storage requests per second. You need to recommend an approach for avoiding data access throttling. What should you recommend?()A、 Use a single partition key for the table.B、 Compress data before storing it in the table.C、 Create additional partition keys for the table.D、 Continually remove unnecessary data from the table.
考题
You are a database administrator for your company. The company uses a vendor company’s application that is based on a proprietary database. You query data from the application database and import the data into a SQL Server 2005 database. The application vendor provides you with a new OLE DB driver to be used when querying the application database. Company policy prohibits connections between the SQL Server database and the application database, except when querying this data. You need to provide a way to query data from the application database. What should you?()A、Configure a Linked Server connection to the application database.B、Write a query that uses an OPENDATASOURCE command.C、Write a query that uses an OPENQUERY command.D、Configure a Remote Server connection to the application database.
考题
You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()A、ICommunicationObjectB、IExtensionC、IExtensibleObjectD、IExtensibleDataObject
考题
Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a Serialization Exception if any of the data members are not present when a serialized instance of the data contract is deserialized. What should you do?()A、 Add the Known Type attribute to the data contract.Set a default value in each of the data member declarations.B、 Add the Known Type attribute to the data contract.Set the Order property of each data member to unique integer value.C、 Set the Emit Default Value property of each data member to false.D、 Set the Is Required property of each data member to true.
考题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has multiple data entry windows. Each window contains controls that allow the user to type different addresses for shipping and mailing. All addresses have the same format. You need to ensure that you can reuse the controls. What should you create?()A、a user controlB、a data templateC、a control templateD、a control that inherits the Canvas class
考题
You use Microsoft Visual Studio 2010 and Microsoft . NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a WPF window in the application. You add the following code segment to the application. public class ViewModel { public CollectionView Data { get; set; } } public class BusinessObject { public string Name { get; set; } } The DataContext property of the window is set to an instance of the ViewModel class. The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects. You add a TextBox control to the Window. You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object. You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A . Which binding expression should you use?()A、{ Binding Path=Data/Name, FallbackValue='N/A' }B、{ Binding Path=Data.Name, FallbackValue='N/A' }C、{ Binding Path=Data/Name, TargetNullValue='N/A' }D、{ Binding Path=Data.Name, TargetNullValue='N/A' }
考题
You are developing an ASP.NET Web application. The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user. What should you do?()A、Pass the object data in a hidden field.B、Store the object instance in a session variable.C、Use a cookie that contains the object data.D、Encode the object data and pass it in a query string parameter.
考题
A Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a SerializationException if any of the data members are not present when a serialized instance of the data contract is deserialized.What should you do?()A、Add the KnownType attribute to the data contract. Set a default value in each of the data member declarations.B、Add the KnownType attribute to the data contract. Set the Order property of each data member to unique integer value.C、Set the EmitDefaultValue property of each data member to false.D、Set the lsRequired property of each data member to true.
考题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You use the ClickOnce deployment methodology to distribute the application. You need to store application-specific data along with read/write permissions without requiring elevated permissions for the application. Where should you store the application data?()A、In isolated storage.B、On the database server.C、In the ClickOnce data directory.D、In the App.config file of the application.
考题
A Windows Communication Foundation (WCF) service interacts with the database of a workflow engine. Data access authorization is managed by the database, which raises security exceptions if a user is unauthorized to access it.You need to ensure that the application transmits the exceptions raised by the database to the client that is calling the service.Which behavior should you configure and apply to the service?()A、routingB、service DebugC、service Security AuditD、workflow Unhandled Exception
考题
You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding and message security enabled.You create an intermediate WCF service for logging messages sent to the primary service.The intermediate service is called via endpoint behaviour. The primary service is receiving malformed data from a client application.You need to enable inspection of the malformed data and prevent message tampering. What do you do?()A、Specify a protection level of None in the contract for the intermediate service. Disable message and transport security from the client application configuration file.B、Specify a protection level of Sign in the contract for the intermediate service. Disable transport security from the client application configuration file.C、Modify the binding on the intermediate service to use netNamedPipeBinding.D、Modify the binding on the intermediate service to use webHttpBinding.
考题
单选题A Windows Communication Foundation (WCF) service interacts with the database of a workflow engine. Data access authorization is managed by the database, which raises security exceptions if a user is unauthorized to access it.You need to ensure that the application transmits the exceptions raised by the database to the client that is calling the service.Which behavior should you configure and apply to the service?()A
routingB
service DebugC
service Security AuditD
workflow Unhandled Exception
考题
单选题You use Microsoft Visual Studio 2010 and Microsoft . NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a WPF window in the application. You add the following code segment to the application. public class ViewModel { public CollectionView Data { get; set; } } public class BusinessObject { public string Name { get; set; } } The DataContext property of the window is set to an instance of the ViewModel class. The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects. You add a TextBox control to the Window. You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object. You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A . Which binding expression should you use?()A
{ Binding Path=Data/Name, FallbackValue='N/A' }B
{ Binding Path=Data.Name, FallbackValue='N/A' }C
{ Binding Path=Data/Name, TargetNullValue='N/A' }D
{ Binding Path=Data.Name, TargetNullValue='N/A' }
考题
单选题You are a database administrator for your company. The company uses a vendor company’s application that is based on a proprietary database. You query data from the application database and import the data into a SQL Server 2005 database. The application vendor provides you with a new OLE DB driver to be used when querying the application database. Company policy prohibits connections between the SQL Server database and the application database, except when querying this data. You need to provide a way to query data from the application database. What should you?()A
Configure a Linked Server connection to the application database.B
Write a query that uses an OPENDATASOURCE command.C
Write a query that uses an OPENQUERY command.D
Configure a Remote Server connection to the application database.
考题
单选题Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a Serialization Exception if any of the data members are not present when a serialized instance of the data contract is deserialized. What should you do?()A
Add the Known Type attribute to the data contract.Set a default value in each of the data member declarations.B
Add the Known Type attribute to the data contract.Set the Order property of each data member to unique integer value.C
Set the Emit Default Value property of each data member to false.D
Set the Is Required property of each data member to true.
考题
单选题You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()A
ICommunicationObjectB
IExtensionC
IExtensibleObjectD
IExtensibleDataObject
考题
单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You use the ClickOnce deployment methodology to distribute the application. You need to store application-specific data along with read/write permissions without requiring elevated permissions for the application. Where should you store the application data?()A
In isolated storage.B
On the database server.C
In the ClickOnce data directory.D
In the App.config file of the application.
考题
单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has multiple data entry windows. Each window contains controls that allow the user to type different addresses for shipping and mailing. All addresses have the same format. You need to ensure that you can reuse the controls. What should you create?()A
a user controlB
a data templateC
a control templateD
a control that inherits the Canvas class
考题
单选题You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding and message security enabled.You create an intermediate WCF service for logging messages sent to the primary service.The intermediate service is called via endpoint behaviour. The primary service is receiving malformed data from a client application.You need to enable inspection of the malformed data and prevent message tampering. What do you do?()A
Specify a protection level of None in the contract for the intermediate service. Disable message and transport security from the client application configuration file.B
Specify a protection level of Sign in the contract for the intermediate service. Disable transport security from the client application configuration file.C
Modify the binding on the intermediate service to use netNamedPipeBinding.D
Modify the binding on the intermediate service to use webHttpBinding.
考题
单选题You are developing an ASP.NET Web application. The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user. What should you do?()A
Pass the object data in a hidden field.B
Store the object instance in a session variable.C
Use a cookie that contains the object data.D
Encode the object data and pass it in a query string parameter.
考题
单选题You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows:[OperationContract]void PostData(Order data);You need to modify PostData so that it can receive any SOAP message. Which code segment should you use?()A
[OperationContract(IsOneWay=true, Action=*, ReplyAction=*)] void PostData(Order data);B
[OperationContract(IsOneWay=true, Action=*, ReplyAction = *)] void PostData(BodyWriter data);C
[OperationContract] void PostData(BodyWriter data);D
[OperationContract] void PostData(Message data);
考题
单选题An application uses Windows Azure Table storage. The application uses five tables. One table used by the application is approaching the limit for storage requests per second. You need to recommend an approach for avoiding data access throttling. What should you recommend?()A
Use a single partition key for the table.B
Compress data before storing it in the table.C
Create additional partition keys for the table.D
Continually remove unnecessary data from the table.
热门标签
最新试卷