PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which type should you recommend?

You are designing an ASP.NET Web application that allows user input. You have the
following requirements: • Use client-side state management. • Prevent users from
accidentally modifying data. • Automatically encode data. • Preserve data during a page
postback. You need to recommend the appropriate type of state management. Which type
should you recommend?

You need to ensure that GridView1 only displays items from Announcements that have an expiry date that is grea

You create a Web Part. The Web Part contains a grid view named GridView1 and the following
code segment. (Line numbers are included for reference only.) 01 IntranetDataContext dc = new
IntranetDataContext(“http://intranet”); 02 MyGridView.DataSource = from announce In
dc.Announcements _ ; 03 04 Select announce IntranetDataContext is a LINQ context. You need
to ensure that GridView1 only displays items from Announcements that have an expiry date that is
greater than or equal to the current date. What should you do?

You need to ensure that administrators can access a server named RDP1 by using Remote Desktop Protocol (RDP)

Your company has a single Active Directory domain. The domain has servers that run Windows
Server 2008 R2. You have a server named NAT1 that functions as a NAT server. You need to ensure
that administrators can access a server named RDP1 by using Remote Desktop Protocol (RDP). What
should you do?

You need to ensure that the .NET application displays the title of the SharePoint Web application in textBoxTi

You have a SharePoint Web application that has the URL http://intranet. You are creating a
Microsoft .NET Framework application that will display the title of the SharePoint Web application
and will execute outside of the SharePoint server. You create a textbox named textBoxTitle. You
write the following code segment. (Line numbers are included for reference only.) 01
ClientContext context = new ClientContext(“http://intranet”); 02 03 Web site = context.Web; 04
context.Load(site); 05 06 textBoxTitle.Text = site.Title; You discover that line 04 generates an
error. You need to ensure that the .NET application displays the title of the SharePoint Web
application in textBoxTitle. What should you do?

You need to ensure that smart card users are able to connect to RAS1 by using a dial-up connection

Your corporate network has a member server named RAS1 that runs Windows Server 2008 R2. You
configure RAS1 to use the Routing and Remote Access Services (RRAS). The company’s remote
access policy allows members of the Domain Users group to dial in to RAS1. The company issues
smart cards to all employees. You need to ensure that smart card users are able to connect to RAS1
by using a dial-up connection. What should you do?

You need to ensure that the VPN connections between the main office and the branch offices meet the following

Your company has a main office and 15 branch offices. The company has a single Active Directory
domain. All servers run Windows Server 2008 R2. You need to ensure that the VPN connections
between the main office and the branch offices meet the following requirements:
• All data must be encrypted by using end-to-end encryption.
• The VPN connection must use computer-level authentication.
• User names and passwords cannot be used for authentication.
What should you do?

Which code element should you add at line 09?

You have a Microsoft .NET Framework console application that uses the SharePoint client object
model. The application contains the following code segment. (Line numbers are included for
reference only.) 01 ClientContext cCtx = new ClientContext(“http://intranet/hr”); 02 List
sharedDocList = cCtx.Web.Lists.GetByTitle(“Shared Documents”); 03 CamlQuery camlQuery =
new CamlQuery(); 04 camlQuery.ViewXml = 05 @”<View> 06 <Query> 07 <Where> 08 <Eq> 09
10 <Value Type=’Text’>Doc1.docx</Value> 11 </Eq> 12 </Where> 13 </Query> 14 </View>”; 15
ListItemCollection docLibItems = sharedDocList.GetItems(camlQuery); 16
cCtx.Load(sharedDocList); 17 cCtx.Load(docLibItems); 18 cCtx.ExecuteQuery(); You need to
ensure that the application queries Shared Documents for a document named Doc1.docx. Which
code element should you add at line 09?

What should you recommend?

You are designing an ASP.NET Web application. Each page of the Web application will
have a common master page and derive from a common base page class. You have the
following requirements: • Support multiple languages for user interface labels. • Enable

automatic detection of language based on browser language settings. You need to
recommend an approach to support localization. What should you recommend? A. In the
code-behind for the master page, override the OnInit() method. Set the
Thread.CurrentThread.CurrentUICulture property based on the value of the
Request.Browser.Capabilities(“preferredLanguage”) dictionary entry.