PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that users can use the Web Part to create new sites

You create a Web Part that takes three values from three text boxes and creates a new
SharePoint site when you click a button named CreateNewSite. The Web Part contains the
following code segment. Protected Sub CreateNewSite_Click(ByVal sender As Object, ByVal e As
EventArgs) Dim site As SPSite = SPContext.Current.Site Dim web As SPWeb =
site.AllWebs.Add(SiteNameTextBox.Text, SiteTitleTextBox.Text, SiteDescriptionTextBox.Text, 0,
SPWebTemplate.WebTemplateSTS, False, _False) End Sub You test the Web Part and it works
properly. When another user attempts to use the Web Part to create a new site, he receives the
following error message: “Error: Access Denied.” You need to ensure that users can use the Web
Part to create new sites. What should you do?

What should you recommend?

You are designing a .NET Framework 4 solution that contains a Windows Presentation
Foundation (WPF) application. The WPF application includes CPU-intensive calculations.
The calculations can be run on a separate process and can effectively be isolated from the
rest of the WPF application. You need to recommend a deployment strategy that maximizes
the scalability of the calculations for each user. What should you recommend?

Which code segment should you add to the console application?

You have a custom theme named MyTheme. The theme is defined in a file named

MyTheme.thmx. You have a console application that contains the following code segment. (Line
numbers are included for reference only.) 01 Using site As New SPSite(“http://intranet”) 02 Dim
web As SPWeb = site.OpenWeb() 03 … 04 End Using You need to programmatically apply the
theme to a SharePoint site. Which code segment should you add to the console application?

Which two actions should you recommend?

You are designing a SharePoint 2010 application that contains a single list named UserDat
a. You need to design the application to meet these requirements: ·The application must
have a drop-down menu that contains key-value pair data. .The data in the drop-down menu
must be retrieved from a Microsoft SQL Server 2008 table. Which two actions should you
recommend? (Each correct answer presents part of the solution. Choose two.)

What should you recommend?

You are designing a Windows Presentation Foundation (WPF) application that accesses a
business tier. The business tier is implemented as a Windows Communication Foundation
(WCF) service and stores data in a Microsoft SQL Server 2008 database. The WCF service
will be accessed by external applications that do not use the .NET Framework. You need to
recommend an approach for passing data between layers. What should you recommend?