What should you do?
You create Microsoft Windows-based applications. You design a composite user control that is used to enter e-mail addresses. The control is as shown in the following exhibit. (Refer to the Exhibit.) The control validates the user input by using a regular expression. The control validates e-mail addresses and prevents the user from submitting blocked e-mail addresses. The control must permit the user to correct the entry if the user enters a blocked e-mail address. You need to provide feedback if the user enters a blocked e-mail address in the txtEmailAddress text box. What should you do?
What should you conclude?
You create Web-based client applications.
You are creating an intranet application that reviews customer data. The internal Personally Identifiable Information (PII) policy specifies the following requirements for access to customer data:
Only employees in the customer management group can access the customer data. Access to customer data is limited to computers that are inside company facilities.
The legal team advises that you log information that verifies that you have met the PII requirements. The log might be useful if there is a legal challenge over customer privacy. You must create a design that uses minimum amount of storage. You must also ensure that the design meets all the requirements. You decide to store the Microsoft Windows user name for any user who uses the program to access the customer data. You also decide to store the date and time of the access. You need to decide if the design will meet all the requirements. What should you conclude?
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 method should you use at line 3?
You plan to use a console application that accepts the login name as an argument and returns the first name of the user.
You write the code segment for the console application:
01: Dim profileServices as New UserProfile = ProfileServices() profileServices.UseDefaultCredentials = True
02: Dim userProps as UserProfile.PropertyInfo() =
profileServices.GetUserProfileSingle()
03: …
04: For Each currentProp as Object in userProps
05: If Direct Cast(currentProp, UserProfile.PropertyData).Name = “FirstName” Then
06: Console.WriteLine(Direct Cast(currentProp,
UserProfile.ProperData).Values(0).Value)
07: End If
08: Next
You need to pre-fill the userProps variable in line 4 to ensure the first name is returned.
Which method should you use at line 3?
What should you recommend?
You create Microsoft Windows-based applications. You need to evaluate the design concept of an application.
The application must meet the following requirements:
The application relies on the operating system for authentication. The application minimizes the amount of data sent over the network when connecting to the database. The application exposes data access code so that the future Web-based and mobile applications can reuse them.
The application permits users to view and edit data contained in tables from a Microsoft SQL Server 2005 database.
The application controls access to the SQL Server 2005 database at the table level.
The design contains the following elements:
The SQL Server 2005 database uses the Windows Authentication mode. A database schema that grants rights to the users at the table level. A stored procedure in Transact-SQL that accesses the necessary data required by the application. A Web service that uses a pre-defined credential to access the database and run the stored procedures. A Microsoft Windows-based application that impersonates the logged-on user and calls the Web service to retrieve and update the data.
You need to evaluate the design and recommend appropriately. What should you recommend?
What should you recommend?
You create Web-based client applications. You are creating an online reporting application that must generate inventory restocking reports within 34 seconds. In the development
environment, during a unit test, generation of the month-end report took 42 seconds. You need to recommend what action must be taken to validate the test results. What should you recommend?
Which code segment should you use?
You are creating a browser-based Web application by using Virtual Earth 6.0 map control. A Web page of the application has a map and a list of locations.
When a user selects a location from the list, the application must meet the following requirements:
A default view of the selected location is loaded.
The selected location is centered.
The selected location appears in the three-dimensional mode, at an oblique pitch, and heads due north.
You need to program Virtual Earth map control to ensure that the requirements are met.
Which code segment should you use?
Which code segment should you add to line 5?
You have a Line of Business application defined in a business data catalog. You create a web part to browse the data of the LOB application. You have the following query to interact with the LOB application and the web part:
01: Dim lobSystem As LOBSystem = ApplicationInRegistry.GetLOBSystem()(“lob1”)
02: Dim lobSystemInstance As LOBSystemInstance =
lobSystem.GetLOBSystemInstance()(“lob1Instance”)
03: Dim ent1Entity As Entity = lobSystem.GetEntities()(“DBOEntities”)
04: Dim fc As FilterCollection = ent1Entity.GetFinderFilters()
05:
You need to render the results of the query and the web part.
Which code segment should you add to line 5?
What should you conclude?
You create Microsoft Windows-based applications. You are creating a sales management application. The application will consume Web services to retrieve and save data to a database server. These Web services will be exposed to a partner extranet so that partners can write applications that will access the same data. The deployment diagram for the entire solution is as shown in the following exhibit. (Refer to the Exhibit.) After deploying the solution, local users and partners report that they are not able to retrieve any data. You find that the client computers are able to access Web applications and Web services hosted by the Web server. You also find that the local applications are able to access other databases on the database server. You need to troubleshoot the issue. What should you conclude?
What should you do?
You create Web-based client applications. You are creating an application for a Web site. The Web site uses the application to simulate mortgage loans. Your application calculates the monthly payment for loans. The monthly payment is based on the number of payments, rate, and the amount of loan. You need to create the unit testing strategy for the application. What should you do?