ebook - do ÂściÂągnięcia - download - pdf - pobieranie

[ Pobierz całość w formacie PDF ]

file. You ensure that Baker can access all of the application's resources, except for those resources that are
located in the /Apps/ResumeApplication directory. Baker is a member of the HRDepartment group.
What should you do? (Select the best choice.)
A.
roles="HRExecutives" />
Actualtests.com - The Power of Knowing
070-320
B.
roles="HRExecutives" />
roles="HRExecutives" />
C.
D.
Answer: A
Baker can access all of the application's resources, including the resources in the /Apps/ResumeApplication
directory. The first section beginning on line 120 grants the HRDepartment group access to the
application; thus, by virtue of his membership in the HRDepartment group, Baker can access the application.
The
second block beginning on line 200 revokes access to the resources in the
/Apps/ResumeApplication directory from anonymous users, but it does not revoke this access from Baker.
Therefore, Baker can access the entire application.
QUESTION 2 You have written a class named MyClass that should be accessed only from a user with a name
of "JAMES." Which of the following lines of code should you use to control access to your class? (Select the
best choice.)
A. Public Class MyClass
B. Public Class MyClass
C. Public Class
MyClass
D. Public Class
MyClass
Answer: A
You should use the code Public
Class MyClass to allow only a user with a name of "JAMES" to access the code in MyClass.
Actualtests.com - The Power of Knowing
070-320
QUESTION 3 You have created the code shown below: (Line numbers are for reference purposes only.)
01 cRemoteObject CKRemotingApp
02 String sVal
03 String str
04 CKRemotingApp = CType(Activator.GetObject( _ GetType(cRemoteObject), _
"tcp://CKServer:454/ObjectApplicationName" _), cRemoteObject)
05 sVal = CKRemotingApp.GetData()
Which line of code results in the object's creation on the server? (Select the best choice.)
A. Line 03
B. Line 04
C. Line 02
D. Line 01
Answer: B
The object will be created on the server when line 04
CKRemotingApp = CType(Activator.GetObject( _ GetType(cRemoteObject),
_"tcp://servername:8320/ObjectApplicationName" _ ), cRemoteObject)
is executed. Client-activated objects are created on the server when New() or the Activator.GetObject method is
called. This mechanism causes the same object on the server to be used by the proxy for all calls made to the
object by the client.
QUESTION 4 You need to use the element in an XML schema definition. One student is related to
many subjects. You need to ensure that datasets created with the XML data will produce a foreign key
constraint between two columns in two of the tables. Which other elements must you not use with the
element in order to properly build the constraint? (Select the best choice.)
A.
B.
C.
D.
E.
Answer: D, E
The and elements are used to place a foreign key constraint on two fields when a dataset is
created from XML data. The element identifies the key column of the parent table. The
element establishes the link between a parent column and a child column. When a dataset is created from the
XML schema, a foreign key constraint will be created with the information supplied by the element.
When you use the and elements, you should use the and elements to identify
the tables and columns that are being constrained.
QUESTION 5 You are modifying the XSD schema for the FlightData data table. You want to add a primary
key that consists of the fields Flight No and IATA AirportCode. Which of the following XML code segments
should you use? (Select the best choice.)
A.
Actualtests.com - The Power of Knowing
070-320
B.
C.
D.
Answer: C
The element defines a unique constraint. When combined with the msdata:PrimaryKey="true"
attribute, the element defines a primary key. The xpath property of the element points to the table
element to which the constraint will be applied, and the xpath property of the element identifies the
fields that make up the primary key.
QUESTION 6 You are querying an SQL server for customers with Gold status. To do this, you create a
SqlDataReader object that contains data from the Customer Info table in a Microsoft SQL Server database. The
SQL Server data type of one of the columns, Customer Status, is SmallInt. You want to store the value of the
Customer Status column in a variable named current Index. You need to maintain the best performance. What
should you do?
(Select the best choice.)
A. GetValue
B. GetInt16
C. GetInt64
D. GetInt32
Answer: B
In order to read the data in a column of type SmallInt with the greatest performance, the GetInt16 method of a
SqlDataReader object should be used. For this reason, when the data type of a column is known, typed
accessors should be used rather than the generic GetValue method. Once retrieved, column values should be
stored in variables of the appropriate type.
QUESTION 7 You have created an ASP.Net application using C# for BlueFliers Inc. The application must
ensure that all flight bookings can be shared and displayed quickly among all users of the application. Which of
the following storage methods should you choose? (Select the best choice.)
A. an XML file on the Web server
B. an array in the Session object
C. a DataSet object stored in a Cache object
D. an array in a hidden field
Answer: C
You should create a DataSet object with the seismic data and store the dataset in a Cache object. By placing the
dataset in a Cache object, the dataset resides in memory on the Web server and is available for all users of the
application.
Actualtests.com - The Power of Knowing
070-320
QUESTION 8 You have created an ASP.Net application for BlueFliers Inc. You need to ensure that each
customer is given a unique OD. Which schema segment will place the proper constraint on the CustomerID
field? (Select the best choice.)
A.
B.
C.
D.
Answer: D
The unique element in an XML schema will create a unique constraint in a dataset so that no duplicate values
are allowed. The msdata: Constraint Name property specifies the name of the constraint. The field element
specifies the column that the constraint applies to. The selector element specifies the table that contains the
column.
QUESTION 9 You are to perform maintenance programming on an existing ASP.net application used by Blue
Inc to update their customers' profile information. Your observation is shown below: [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • bajkomoda.xlx.pl
  • Cytat

    Ad hunc locum - do tego miejsca.

    Meta