PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You create Web-based client applications. You are designing a procedure to retrieve product data from a database. The product data will be displayed on several pages of your Web site. The data will be filtered and sorted by different parameters and will be displayed in grids with paging. Users will not be able to modify the data that is displayed on the Web site. The product data is stored in a database on an instance of Microsoft SQL Server that is located on a different server. The database is configured to support SQL cache invalidation. You need to ensure that the data is retrieved such that the pages of the Web site load as quickly as possible. What should you do?

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?

Which method should you use?

You are creating a Microsoft Windows SharePoint Services application.

You create a Windows SharePoint Services feature named MyFeature. You implement the feature within a Microsoft .NET namespace named MyFeature. You create a class named SiteMonitor that inherits from the SPWebEventReceiver class. The SiteMonitor class overrides two methods, named SiteDeleting and WebDeleting. Both methods cancel the deletion process.

You need to prevent all users, including site administrators, from deleting the MySite Web site.

Which method should you use?

which tier of the application architecture this component will belong to. Where should you place the component

You create Microsoft Windows-based applications. You are upgrading an application that contains custom data-centric user controls. Each of these controls implements its own custom data-binding logic. Much of the data-binding code is similar from control to control. You create a new component that combines the common data-binding logic. You change the existing controls so they use this new component. You need to decide which tier of the application architecture this component will belong to. Where should you place the component?

What should you do?

You develop Web-based client applications. You are developing a custom Web control named ShoppingCart. The ShoppingCart control tracks the products in a users shopping cart. The ShoppingCart control contains a read-only property named SubTotal. The pages that use the ShoppingCart control compare the SubTotal property with the users credit limit before attempting to add any new items to the users shopping cart. The ShoppingCart control also contains display properties, such as Font, Color, and DisplayDirections. These properties are not critical to the functionality of the control. You need to establish how to implement the SubTotal property and the display properties in the ShoppingCart control. What should you do?