[ Pobierz całość w formacie PDF ]

several orders, but for each specific order there must exists exactly one corresponding row in the Customers
table. We should use the Constraints Customers constraints.
F: The constraint must be added to the Orders table.
Actualtests.com - The Power of Knowing
070-320
Incorrect Answers
A: This is incorrect. The parent column must be CustomerID in the Customers table.
B, D: The Constraint Customers constraint must be used, not Constraint Orders.
C, F: A unique constraint only applies to one single table.
E: The constraint must be added to the Orders table.
QUESTION 65 You have Dataset object named Loan Customers DataSet that contains customers serviced by
the loan department of your company. You receive a second Dataset that contains customers serviced by the
asset management department of your company. Both objects have the same structure. You want to merge asset
CustomersDataSet into loan Customers DataSet and preserve the original values in loan Customer DataSet.
Which code segment should you use?
A. loan Customers Dataset. Merge (asset CustomersDataSet);
B. loanCustomersDataSet.Merge (assetCustomersDataSet, True);
C. assetCustomersDataSet.Merge (loanCustomersDataSet);
D. assetCustomersDataSet.Merge (loanCustomersDataSet, True);
Answer: B
Explanation: The DataSet.Merge method merges this Dataset with a specified Dataset. The data will be merged
into the dataset on which the Merge method is applied. We want to merge into our Dataset, namely the
loanCustomerDataSet. Furthermore, we want to preserve the original values in loanCustomerDataSet.
The Boolean parameter is the preserve Changes. Preserve Changes indicates a value indicating whether changes
made to the current Dataset should be maintained. It should be true, if changes should be maintained, like in this
scenario. .
Reference: .NET Framework Class Library, DataSet.Merge Method (Dataset, Boolean) [C#]
Incorrect Answers
A The Preserve Changes parameter must be set to true.
C, D: We must merge into loanCustomerDataSet, not into the Dataset that we have received.
QUESTION 66 You create an XML Web service named CK Service. You must ensure that this service meets
the following URL authorization requirements.
" Anonymous access must be disabled for CK Service.
" An authenticated user named User1 cannot access CK Service.
" All other authenticated users can access CK Service.
You configure Internet Information Services (IIS) to meet these requirements. You now need to configure the
authorization section in the Web.config file to properly authorize the users.
Actualtests.com - The Power of Knowing
070-320
Which code segment should you use?
A.
B.
C.
D.
Answer: D
Explanation: The elements are applied in order one by one. The first matching element decides whether the user
should be granted access or not.
Step 1: We deny access permissions to anonymous users with
Step 2: We deny access to User1 with
Step 3: We allow access for all other users with
Note: Identity Description
* Refers to all identities
? Refers to the anonymous identity
Reference: .NET Framework Developer's Guide, ASP.NET Authorization
Incorrect Answers
A: All users are allowed access. We must deny before we allow.
B: All anonymous users are allowed access.
C: All users are denied access.
QUESTION 67 You are creating an XML Web service that tracks employee information. The service contains
a Web method named Retrieve Employees. The service also contains a base class named Employee and two
classes named Manager and Engineer, which are derived from Employee. Retrieve Employees takes a roleID as
input that specifies the type of employee to retrieve, either Manager or Engineer. Retrieve Employees returns an
array type Employee that contains all employees that are in the specified role. You want to ensure that Manager
and Engineer object types can be returned from Retrieve Employees.
What should you do?
A. Set the TypeName property of the XmlType attribute to Employee for both Manager and Engineer.
B. Apply two XmlInclude attributes to Retrieve Employees, one of type Manager and one of type Engineer.
C. Apply an XmlRoot attribute to the Employee class Apply an XmlAttribute attribute to the Manager and
Engineer classes.
D. Apply an XmlRoot attribute to the Employee class Apply an XmlElement attribute to the Manager and
Engineer classes.
Answer: B
Explanation: The XmlIncludeInclue allows the XmlSerializer to recognize a type when it serializes or
deserializes an object. We specify the two types as XmlInclude attributes to our serialzer Retrieve
CerCKillerEmployees.
Reference: .NET Framework Class Library, XmlIncludeAttribute Class .NET Framework Class Library,
XmlRootAttribute Class
Actualtests.com - The Power of Knowing
070-320
Incorrect Answers
A: The XmlAttributes.XmlType property gets or sets an object that specifies how the XmlSerializer serializes a
class to which the XmlTypeAttribute has been applied.
C: The XMLRoot attribute is not useful here. Note: The XmlRootAttribute identifies a class, structure,
enumeration, or interface as the root (or top-level) element of an XML-document instance.* The
XmlAttributes.XmlAttribute property gets or sets an object that specifies how the XmlSerializer serializes a
public field or public read/write
property as an XML attribute.
D: The XMLRoot attribute is not useful here. Note: The XmlAttribute Indicates that a public field or property
represents an XML element when the XmlSerializer serializes or deserializes the containing object.
QUESTION 68 Your Microsoft SQL Server database contains a table named CertK Orders. CertK Orders is
used to store new purchase orders as they are entered into an order-entry application. To keep up with customer
demand, the order fulfillment department wants to know at 15-minute intervals when new orders are entered.
You need to develop an application that reads CertK Orders every 15 minutes and sends all new orders to the
order fulfillment department. The application will run on computer that is used by several users who
continuously log on and log off from the network to perform miscellaneous tasks.
Which type of .NET application should you use?
A. Windows Form
B. Windows service
C. XML Web service
D. .NET Remoting object
Answer: B
Explanation: A Windows service would still be running even though users logs on and off.
Incorrect Answers [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • mew.pev.pl