PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which two data handling mechanisms should you choose?

You create Microsoft Windows-based applications. You create a component to process daily reports. These daily reports are data-driven.
Eight database tables dictate the following properties:

the data that is printed
the format of the data
the order of output

The component loads the configuration data into a specific internal structure. Subsequently, the component retrieves and outputs the report data based on the configuration settings that are stored in the internal structure. The database is not updated. You need to develop the data handling capabilities of the component to manage the configuration data and the report data. You also need to ensure that the reports are generated as quickly as possible. Which two data handling mechanisms should you choose? (Each correct answer presents part of the solution. Choose two.)

What should you do to ensure that the exception-handling strategy does not affect performance?

You create Microsoft Windows-based applications. You create a component that calls an existing function. The design for the function specifies that it might throw an application-specific exception named InvalidChecksumException, which inherits from System.ApplicationException. The InvalidChecksumException exception is an error that can be handled. But the component cannot handle any other type of error. The component does not have any additional information that can be added to other types of errors. You need to design the component to correctly handle exceptions. You also need to ensure that the exception-handling strategy does not affect performance. What should you do?

Which counter should you use?

You create Web-based client applications. You create an ASP.NET Web application. Five hundred users will access the Web-based application simultaneously. The application uses session variables to persist user data. You monitor the application by using System Monitor. You need to identify a counter that will warn you of the problems that you are most likely to face while monitoring. Which counter should you use?

Which code segment should you use?

You are creating a North American reverse geocoding application by using the Microsoft MapPoint Web Service. The application must convert the latitude and longitude coordinates of a point on the map into a string that contains the city, province/state, and country. You need to obtain the string in the following format: “city, province/state, country”. Which code segment should you use?

Which code segment should you use at line 6?

You create an application that contains the following code segment:

01: Private Sub ModifyCellPhonePrivacy(Byval currentProfile As String)
02: Dim userProfile As New UserProfile.UserProfileServices()
03: Dim cellData as userProfile.PropertyData() = New
userProfile.PropertyData(0)~~
04: cellData(0) = New userProfile.PropertyData()
05: cellData(0).Name = “Cell Phone”
06:
07: userProfile.ModifyUserPropertyByAccountName(currentProfile, cellData)
08: End Sub

You need to set the privacy of the cell phone value to only me for all user profiles. Which code segment should you use at line 6?

Which XML fragment should you use?

You create a site definition named HR Team Site and a list definition named HR Roles.

The HR Team Site definition is configured in the following manner.

< Configuration ID=”13″ Title=”HR Team Site” Type=”0″/ >

The HR Roles list definition is configured in the following manner.

< ListTemplate Path=”STS” Name=” hrteam “
DisplayName =”HR Roles” Type=”112″ BaseType =”1″ / >

You need to ensure that the HR Team Site definition is configured to use the HR Roles list definition.

Which XML fragment should you use?