You need to design the application so that it displays a dialog box prompting users to validate…
You are designing a SharePoint 2010 application that allows users to enter contact
information into a form. You need to design the application so that it displays a dialog box
prompting users to validate their contact information before the data is saved.Which
approach should you recommend?
Which method should you use?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server 2008 database.
SQLConnection conn = new SQLConnection(connectionString);
conn.Open();
SqlTransaction tran = db.BeginTransaction(IsolationLevel. …);
…
You must retrieve not commited records originate from various transactions.
Which method should you use?
You have been assigned the task of writing code that executes an Entity SQL query that return…
You have been assigned the task of writing code that executes an Entity SQL query that returns
entity type objects that contain a property of a complex type. You need to fix line 12 –
Choose the correct line of code
01 using (EntityCommand cmd = conn.CreateCommand())
02 {
03 cmd.CommandText = esqlQuery;
04 EntityParameter param = new EntityParameter();
05 param.ParameterName = “id”;
06 param.Value = 3;
07 cmd.Parameters.Add(param);
08 using (EntityDataReader rdr = cmd.ExecuteReader(CommandBehavior.SequentialAccess))
09 {
10 while (rdr.Read())
11 {
12
13 Console.WriteLine(“Email and Phone Info:”);
14 for (int i = 0; i < nestedRecord.FieldCount; i++)
15 {
16 Console.WriteLine(” ” + nestedRecord.GetName(i) + “: ” + nestedRecord.GetValue(i));
17 }
18 }
19 }
Which settings should you configure from the properties of the DNS zone?
Which code segment should you inser at the empty line?
The application contains following XML document.
<feed>
<title>Products</title>
<entry>
<title>Entry title 1</title>
<author>Author 1</author>
<content>
<properties>
<description>some description</description>
<notes>some notes</notes>
<comments>some comments</comments>
</properties>
</content>
</entry>
…
</feed>
You plan to add localizationfeatures to the application.
You add the following code segment:
public IEnumerable <XNode> GetTextNodesForLocalization(XDocument doc)
{
— empty line here
return from n in nodes
where n.NodeType = XmlNodeType.Text
select n;
}
You need to ensure that the GetTextNodeForLocalization method returns all the XML text nodes of
the XML document. Which code segment should you inser at the empty line?
You need to ensure that the product details can be viewed by all users and modified only by product managers
You are designing an application by using Windows Presentation Foundation (WPF) and
Microsoft .NET Framework 4. The application allows users to view product details. Product
managers can modify the product details for the products that they manage. You plan to
design the application by using the Model-View-ViewModel (M-V-VM) pattern. You need to
ensure that the product details can be viewed by all users and modified only by product
managers. What should you do?
What should you recommend?
You are designing an ASP.NET MVC 2 Web application. The Web application must meet
the following requirements: Validate all user input for a class named Customer. Perform
client-side and server-side validation. You need to recommend an approach for validating
user input. What should you recommend?
Which code segment should you add to the Web Part?
You create a Feature named Feature1. Feature1 is activated in a SharePoint site. You create a
Web Part that contains the following code. Dim site As New SPSite(“http://intranet/site1”) Dim web
As SPWeb = site.OpenWeb() Dim feature As SPFeatureDefinition =
SPFarm.Local.FeatureDefinitions(“Feature1”) You need to modify the Web Part to activate
Feature1 in Site1 only. Which code segment should you add to the Web Part?
Ensure that SSDL can be modified without rebuilding application.
Ensure that SSDL can be modified without rebuilding application.
Which query parts should you use in sequence to complete the expression?
The user interface requires that a paged view be displayed of all the products sorted in alphabetical
order. The user interface supplies a current starting index and a page size in variables named
startIndex and pageSize of type int.
You need to construct a LINQ expression that will return the appropriate Parts from the database
from an existing ContosoEntities context object named context. You begin by writing the following
expression: context.Parts
Which query parts should you use in sequence to complete the expression?
(To answer, move the appropriate actions from the list of actions to the answer area and arrange
them in the correct order.)