2013年7月31日星期三

Certification Microsoft de téléchargement gratuit pratique d'examen 070-686 070-662 070-565 070-561, questions et réponses

Dépenser assez de temps et d'argent pour réussir le test Microsoft 070-686 070-662 070-565 070-561 ne peut pas vous assurer à passer le test Microsoft 070-686 070-662 070-565 070-561 sans aucune doute. Choisissez le Pass4Test, moins d'argent coûtés mais plus sûr pour le succès de test. Dans cette société, le temps est tellement précieux que vous devez choisir un bon site à vous aider. Choisir le Pass4Test symbole le succès dans le future.


Peut-être vous voyez les guides d'études similaires pour le test Microsoft 070-686 070-662 070-565 070-561, mais nous avons la confiance que vous allez nous choisir finalement grâce à notre gravité d'état dans cette industrie et notre profession. Pass4Test se contribue à amérioler votre carrière. Vous saurez que vous êtes bien préparé à passer le test Microsoft 070-686 070-662 070-565 070-561 lorsque vous choisissez la Q&A de Pass4Test. De plus, un an de service gratuit en ligne après vendre est aussi disponible pour vous.


Code d'Examen: 070-686

Nom d'Examen: Microsoft (Pro: Windows 7, Enterprise Desktop Administrator)

Questions et réponses: 185 Q&As

Code d'Examen: 070-662

Nom d'Examen: Microsoft (TS: Microsoft Exchange Server)

Questions et réponses: 395 Q&As

Code d'Examen: 070-565

Nom d'Examen: Microsoft (Pro: Designing and Developing Enterprise Applications Using the Microsoft .NET Framework 3.5)

Questions et réponses: 138 Q&As

Code d'Examen: 070-561

Nom d'Examen: Microsoft (TS: MS .NET Framework 3.5, ADO.NET Application Development)

Questions et réponses: 170 Q&As

La Q&A lancée par Pass4Test est bien poupulaire. Pass4Test peut non seulement vous permettre à appendre les connaissances professionnelles, et aussi les expériences importantes résumées par les spécialistes dans l'Industrie IT. Pass4Test est un bon fournisseur qui peut répondre une grande demande des candidats. Avec l'aide de Pass4Test, vous aurez la confiance pour réussir le test. Vous n'aurez pas aucune raison à refuser le Pass4Test.


Le produit de Pass4Test que vous choisissez vous met le pied sur la première marche du pic de l'Industrie IT, et vous serez plus proche de votre rêve. Les matériaux offerts par Pass4Test peut non seulement vous aider à réussir le test Microsoft 070-686 070-662 070-565 070-561, mais encore vous aider à se renforcer les connaissances professionnelles. Le service de la mise à jour pendant un an est aussi gratuit pour vous.


070-561 Démo gratuit à télécharger: http://www.pass4test.fr/070-561.html


NO.1 {

NO.2 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application contains a DataSet object named orderDS. The object contains a table named Order as
shown in the following exhibit.
The application uses a SqlDataAdapter object named daOrder to populate the Order table.
You write the following code segment. (Line numbers are included for reference only.)
01 private void FillOrderTable(int pageIndex) {
02 int pageSize = 5;
03
04 }
You need to fill the Order table with the next set of 5 records for each increase in the pageIndex value.
Which code segment should you insert at line 03?
A. string sql = "SELECT SalesOrderID, CustomerID, OrderDate FROM Sales.SalesOrderHeader";
daOrder.SelectCommand.CommandText = sql;
daOrder.Fill(orderDS, pageIndex, pageSize, "Order");
B. int startRecord = (pageIndex - 1) * pageSize;
string sql = "SELECT SalesOrderID, CustomerID, OrderDate FROM Sales.SalesOrderHeader";
daOrder.SelectCommand.CommandText = sql;
daOrder.Fill(orderDS, startRecord, pageSize, "Order");
C. string sql = string.Format("SELECT TOP {0} SalesOrderID, CustomerID,
OrderDate FROM Sales.SalesOrderHeader WHERE SalesOrderID > {1}", pageSize, pageIndex);
daOrder.SelectCommand.CommandText = sql;
daOrder.Fill(orderDS, "Order");
D. int startRecord = (pageIndex - 1) * pageSize;
string sql = string.Format("SELECT TOP {0} SalesOrderID, CustomerID,
OrderDate FROM Sales.SalesOrderHeader WHERE SalesOrderID > {1}",
pageSize, startRecord);
daOrder.SelectCommand.CommandText = sql;
daOrder.Fill(orderDS, "Order");
Answer: B

certification Microsoft   certification 070-561   070-561 examen

NO.3 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
You need to ensure that the application can connect to any type of database.
What should you do?
A. Set the database driver name in the connection string of the application, and then create the
connection object in the following manner.
Dim connection As DbConnection = _ New OdbcConnection(connectionString)
B. Set the database provider name in the connection string of the application, and then create the
connection object in the following manner.
Dim connection As DbConnection = _ New OleDbConnection(connectionString)
C. Create the connection object in the following manner.
Dim factory As DbProviderFactory = _ DbProviderFactories.GetFactory("System.Data.Odbc")
Dim connection As DbConnection = _ factory.CreateConnection()
D. Create the connection object in the following manner.
Dim factory As DbProviderFactory = _ DbProviderFactories.GetFactory(databaseProviderName)
Dim connection As DbConnection = factory.CreateConnection()
Answer: D

Microsoft examen   070-561   certification 070-561   certification 070-561   070-561   070-561

NO.4 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application contains a DataSet object named OrderDS that has the Order and OrderDetail tables as
shown in the following exhibit.
You write the following code segment. (Line numbers are included for reference only.)
01 Private Sub GetOrders(ByVal cn As SqlConnection)
02 Dim cmd As SqlCommand = cn.CreateCommand()
03 cmd.CommandText = "Select * from [Order]; " + _
"Select * from [OrderDetail];"
04 Dim da As New SqlDataAdapter(cmd)
05
06 End Sub
You need to ensure that the Order and the OrderDetail tables are populated.
Which code segment should you insert at line 05?
A. da.Fill(OrderDS)
B. da.Fill(OrderDS.Order)
da.Fill(OrderDS.OrderDetail)
C. da.TableMappings.AddRange(New DataTableMapping() _
{New DataTableMapping("Table", "Order"), _
New DataTableMapping("Table1", "OrderDetail")})
da.Fill(OrderDS)
D. Dim mapOrder As New DataTableMapping()
mapOrder.DataSetTable = "Order"
Dim mapOrderDetail As New DataTableMapping()
mapOrder.DataSetTable = "OrderDetail"
da.TableMappings.AddRange(New DataTableMapping() _
{mapOrder, mapOrderDetail})
da.Fill(OrderDS)
Answer: C

Microsoft   070-561   070-561   070-561   070-561

NO.5 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application has a DataTable object named OrderDetailTable. The object has the following columns:
ID
OrderID
ProductID
Quantity
LineTotal
The OrderDetailTable object is populated with data provided by a business partner. Some of the records
contain a null value in the LineTotal field and 0 in the Quantity field.
You write the following code segment. (Line numbers are included for reference only.)
01 DataColumn col = new DataColumn("UnitPrice", typeof(decimal));
02
03 OrderDetailTable.Columns.Add(col);
You need to add a DataColumn named UnitPrice to the OrderDetailTable object.
Which line of code should you insert at line 02?
A. col.Expression = "LineTotal/Quantity";
B. col.Expression = "LineTotal/ISNULL(Quantity, 1)";
C. col.Expression = "LineTotal.Value/ISNULL(Quantity.Value,1)";
D. col.Expression = "iif(Quantity > 0, LineTotal/Quantity, 0)";
Answer: D

Microsoft   certification 070-561   070-561   070-561   certification 070-561

NO.6 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
The connection string of the application is defined in the following manner.
"Server=Prod;Database=WingtipToys;Integrated
Security=SSPI;Asynchronous Processing=true"
The application contains the following code segment. (Line numbers are included for reference only.)
01 Protected Sub UpdateData(ByVal cmd As SqlCommand)
02 cmd.Connection.Open()
03
04 lblResult.Text = "Updating ..."
05 End Sub
The cmd object takes a long time to execute.
You need to ensure that the application continues to execute while cmd is executing.
What should you do?
A. Insert the following code segment at line 03.
cmd.BeginExecuteNonQuery(New AsyncCallback( _
AddressOf UpdateComplete), cmd)
Add the following code segment.
Private Sub UpdateComplete (ByVal ar As IAsyncResult)
Dim count As Integer = CInt(ar.AsyncState)
LogResults(count)
End Sub
B. Insert the following code segment at line 03.
cmd.BeginExecuteNonQuery(New AsyncCallback( _
AddressOf UpdateComplete), cmd)
Add the following code segment.
Private Sub UpdateComplete(ByVal ar As IAsyncResult)
Dim cmd As SqlCommand = DirectCast(ar.AsyncState, SqlCommand)
Dim count As Integer = cmd.EndExecuteNonQuery(ar)
LogResults(count)
End Sub
C. Insert the following code segment at line 03.
AddHandler cmd.StatementCompleted, AddressOf UpdateComplete
cmd.ExecuteNonQuery()
Add the following code segment.
Private Sub UpdateComplete(ByVal sender As Object, _
ByVal e As StatementCompletedEventArgs)
Dim count As Integer = e.RecordCount
LogResults(count)
End Sub
D. Insert the following code segment at line 03.
Dim notification As New _
SqlNotificationRequest("UpdateComplete ", "", 10000)
cmd.Notification = notification
cmd.ExecuteNonQuery()
Add the following code segment.
Private Sub UpdateComplete (ByVal notice As SqlNotificationRequest)
Dim count As Integer = Integer.Parse(notice.UserData)
LogResults(count)
End Sub
Answer: B

Microsoft   070-561 examen   certification 070-561   070-561 examen

NO.7 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
The application analyzes large amounts of transaction data that are stored in a different database.
You write the following code segment. (Line numbers are included for reference only.)
01 using (SqlConnection connection = new
SqlConnection(sourceConnectionString))
02 using (SqlConnection connection2 = new
SqlConnection(destinationConnectionString))
03 using (SqlCommand command = new SqlCommand())
04 {
05 connection.Open();
06 connection2.Open();
07 using (SqlDataReader reader = command.ExecuteReader())
08 {
09 using (SqlBulkCopy bulkCopy = new
SqlBulkCopy(connection2))
10 {
11
12 }
13 }
14 }
You need to copy the transaction data to the database of the application.
Which code segment should you insert at line 11?
A. reader.Read()
bulkCopy.WriteToServer(reader);
B. bulkCopy.DestinationTableName = "Transactions";
bulkCopy.WriteToServer(reader);
C. bulkCopy.DestinationTableName = "Transactions";
bulkCopy.SqlRowsCopied += new
SqlRowsCopiedEventHandler(bulkCopy_SqlRowsCopied);
D. while (reader.Read())
{
bulkCopy.WriteToServer(reader);
}
Answer: B

Microsoft   070-561   070-561   070-561   070-561   070-561

NO.8 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
You need to ensure that the application can connect to any type of database.
What should you do?
A. Set the database driver name in the connection string of the application, and then create the
connection object in the following manner.
DbConnection connection = new OdbcConnection(connectionString);
B. Set the database provider name in the connection string of the application, and then create the
connection object in the following manner.
DbConnection connection = new OleDbConnection(connectionString);
C. Create the connection object in the following manner.
DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.Odbc");
DbConnection connection = factory.CreateConnection();
D. Create the connection object in the following manner.
DbProviderFactory factory = DbProviderFactories.GetFactory(databaseProviderName);
DbConnection connection = factory.CreateConnection();
Answer: D

certification Microsoft   070-561 examen   070-561 examen   070-561

NO.9 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
You write the following code segment. (Line numbers are included for reference only.)
01 using (SqlConnection connection = new
SqlConnection(connectionString)) {
02 SqlCommand cmd = new SqlCommand(queryString, connection);
03 connection.Open();
04
05 while (sdrdr.Read()){
06 // use the data in the reader
07 }
08 }
You need to ensure that the memory is used efficiently when retrieving BLOBs from the database.
Which code segment should you insert at line 04?
A. SqlDataReader sdrdr = cmd.ExecuteReader();
B. SqlDataReader sdrdr = cmd.ExecuteReader(CommandBehavior.Default);
C. SqlDataReader sdrdr = cmd.ExecuteReader(CommandBehavior.SchemaOnly);
D. SqlDataReader sdrdr = cmd.ExecuteReader(CommandBehavior.SequentialAccess);
Answer: D

Microsoft   070-561   070-561 examen

NO.10 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application contains a DataSet object named OrderDS that has the Order and OrderDetail tables as
shown in the following exhibit.
You write the following code segment. (Line numbers are included for reference only.)
01 private void GetOrders(SqlDataConnection cn) {
02 SqlCommand cmd = cn.CreateCommand();
03 cmd.CommandText = "Select * from [Order];
Select * from [OrderDetail];";
04 SqlDataAdapter da = new SqlDataAdapter(cmd);
05
06 }
You need to ensure that the Order and the OrderDetail tables are populated.
Which code segment should you insert at line 05?
A. da.Fill(OrderDS);
B. da.Fill(OrderDS.Order);
da.Fill(OrderDS.OrderDetail);
C. da.TableMappings.AddRange(new DataTableMapping[] {
new DataTableMapping("Table", "Order"),
new DataTableMapping("Table1", "OrderDetail")});
da.Fill(OrderDS);
D. DataTableMapping mapOrder = new DataTableMapping();
mapOrder.DataSetTable = "Order";
DataTableMapping mapOrderDetail = new DataTableMapping();
mapOrder.DataSetTable = "OrderDetail";
da.TableMappings.AddRange(new DataTableMapping[]
{ mapOrder, mapOrderDetail });
Da.Fill(OrderDS);
Answer: C

Microsoft   070-561 examen   070-561   070-561   070-561 examen

NO.11 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application has a DataTable object named OrderDetailTable. The object has the following columns:
ID
OrderID
ProductID
Quantity
LineTotal
The OrderDetailTable object is populated with data provided by a business partner. Some of the records
contain a null value in the LineTotal field and 0 in the Quantity field.
You write the following code segment. (Line numbers are included for reference only.)
01 Dim col As New DataColumn("UnitPrice", GetType(Decimal))
02
03 OrderDetailTable.Columns.Add(col)
You need to add a DataColumn named UnitPrice to the OrderDetailTable object.
Which line of code should you insert at line 02?
A. col.Expression = "LineTotal/Quantity"
B. col.Expression = "LineTotal/ISNULL(Quantity, 1)"
C. col.Expression = "LineTotal.Value/ISNULL(Quantity.Value, 1)"
D. col.Expression = "iif(Quantity > 0, LineTotal/Quantity, 0)"
Answer: D

certification Microsoft   070-561   070-561   certification 070-561

NO.12 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
You write the following code segment.
Dim queryString As String = "Select Name, Age from dbo.Table_1"
Dim command As New _SqlCommand(queryString, DirectCast(connection, SqlConnection))
You need to get the value that is contained in the first column of the first row of the result set returned by
the query.
Which code segment should you use?
A. Dim value As Object = command.ExecuteScalar()
Dim requiredValue As String = value.ToString()
B. Dim value As Integer = command.ExecuteNonQuery()
Dim requiredValue As String = value.ToString()
C. Dim value As SqlDataReader = _command.ExecuteReader(CommandBehavior.SingleRow)
Dim requiredValue As String = value(0).ToString()
D. Dim value As SqlDataReader = _command.ExecuteReader(CommandBehavior.SingleRow)
Dim requiredValue As String = value(1).ToString()
Answer: A

Microsoft examen   070-561   070-561   certification 070-561   070-561 examen

NO.13 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
The application analyzes large amounts of transaction data that are stored in a different database.
You write the following code segment. (Line numbers are included for reference only.)
01 Using connection As New SqlConnection(sourceConnectionString)
02 Using connection2 As _
New SqlConnection(destinationConnectionString)
03 Using command As New SqlCommand()
04 connection.Open()
05 connection2.Open()
06 Using reader As SqlDataReader = command.ExecuteReader()
07 Using bulkCopy As New SqlBulkCopy(connection2)
08
09 End Using
10 End Using
11 End Using
12 End Using
13 End Using
You need to copy the transaction data to the database of the application.
Which code segment should you insert at line 08?
A. reader.Read()
bulkCopy.WriteToServer(reader)
B. bulkCopy.DestinationTableName = "Transactions"
bulkCopy.WriteToServer(reader)
C. bulkCopy.DestinationTableName = "Transactions"
AddHandler bulkCopy.SqlRowsCopied, _
AddressOf bulkCopy_SqlRowsCopied
D. While reader.Read()
bulkCopy.WriteToServer(reader)
End While
Answer: B

certification Microsoft   certification 070-561   070-561   certification 070-561

NO.14 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
You write the following code segment.
Dim query As String = _ "Select EmpNo, EmpName from dbo.Table_1; " + _ "select Name,Age from
dbo.Table_2"
Dim command As New SqlCommand(query, connection)
Dim reader As SqlDataReader = command.ExecuteReader()
You need to ensure that the application reads all the rows returned by the code segment.
Which code segment should you use?
A. While reader.NextResult()
Console.WriteLine([String].Format("{0}, {1}", reader(0), reader(1)))
reader.Read()
End While
B. While reader.Read()
Console.WriteLine([String].Format("{0}, {1}", reader(0), reader(1)))
reader.NextResult()
End While
C. While reader.Read()
Console.WriteLine([String].Format("{0}, {1}", reader(0), reader(1)))
End While
reader.NextResult()
while reader.Read()
Console.WriteLine([String].Format("{0}, {1}", reader(0), reader(1)))
End While
D. While reader.NextResult()
Console.WriteLine([String].Format("{0}, {1}", reader(0), reader(1)))
End While
reader.Read()
while reader.NextResult()
Console.WriteLine([String].Format("{0}, {1}", reader(0), reader(1)))
End While
Answer: C

Microsoft examen   070-561 examen   070-561   certification 070-561

NO.15 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
You write the following code segment.
string query = "Select EmpNo, EmpName from dbo.Table_1;
select Name,Age from dbo.Table_2";
SqlCommand command = new SqlCommand(query, connection);
SqlDataReader reader = command.ExecuteReader();
You need to ensure that the application reads all the rows returned by the code segment.
Which code segment should you use?
A. while (reader.NextResult())
{
Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1]));
reader.Read();
}
B. while (reader.Read())
{
Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1]));
reader.NextResult();
}
C. while (reader.Read())
{
Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1]));
}
reader.NextResult();
while (reader.Read())
{
Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1]));
}
D. while (reader.NextResult())
{
Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1]));
}
reader.Read();
while (reader.NextResult())
{
Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1]));
}
Answer: C

Microsoft   070-561 examen   070-561   certification 070-561   070-561

NO.16 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application contains a DataSet object named orderDS. The object contains a table named Order as
shown in the following exhibit.
The application uses a SqlDataAdapter object named daOrder to populate the Order table.
You write the following code segment. (Line numbers are included for reference only.)
01 Private Sub FillOrderTable(ByVal pageIndex As Integer)
02 Dim pageSize As Integer = 5
03
04 End Sub
You need to fill the Order table with the next set of 5 records for each increase in the pageIndex value.
Which code segment should you insert at line 03?
A. Dim sql As String = "SELECT SalesOrderID, CustomerID, " + _
"OrderDate FROM Sales.SalesOrderHeader"
daOrder.SelectCommand.CommandText = sql
daOrder.Fill(orderDS, pageIndex, pageSize, "Order")
B. Dim startRecord As Integer = (pageIndex - 1) * pageSize
Dim sql As String = "SELECT SalesOrderID, CustomerID, " + _
"OrderDate FROM Sales.SalesOrderHeader"
daOrder.SelectCommand.CommandText = sql
daOrder.Fill(orderDS, startRecord, pageSize, "Order")
C. Dim sql As String = _
String.Format("SELECT TOP {0} SalesOrderID, " + _
"CustomerID, OrderDate FROM Sales.SalesOrderHeader " + _
"WHERE SalesOrderID > {1}", pageSize, pageIndex)
daOrder.SelectCommand.CommandText = sql
daOrder.Fill(orderDS, "Order")
D. Dim startRecord As Integer = (pageIndex - 1) * pageSize
Dim sql As String = _
String.Format("SELECT TOP {0} SalesOrderID, " + _
"CustomerID, OrderDate FROM Sales.SalesOrderHeader " + _
"WHERE SalesOrderID > {1}", pageSize, startRecord)
daOrder.SelectCommand.CommandText = sql
daOrder.Fill(orderDS, "Order")
Answer: B

Microsoft   070-561   certification 070-561   070-561   070-561

NO.17 }
You need to compute the total number of records processed by the Select queries in the RecordCount
variable.
Which code segment should you insert at line 16?
A. myReader = myCommand.ExecuteReader();
RecordCount = myReader.RecordsAffected;
B. while (myReader.Read())
{
//Write logic to process data for the first result.
}
RecordCount = myReader.RecordsAffected;
C. while (myReader.HasRows)
{
while (myReader.Read())
{
//Write logic to process data for the second result.
RecordCount = RecordCount + 1;
myReader.NextResult();
}
}
D. while (myReader.HasRows)
{
while (myReader.Read())
{
//Write logic to process data for the second result.
RecordCount = RecordCount + 1;
}
myReader.NextResult();
}
Answer: D

Microsoft   certification 070-561   070-561
22. You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application uses Microsoft SQL Server 2005.
You write the following code segment. (Line numbers are included for reference only.)
01 Dim myConnString As String = _
02 "User ID=<username>;password=<strong password>;" + _
03 "Initial Catalog=pubs;Data Source=myServer"
04 Dim myConnection As New SqlConnection(myConnString)
05 Dim myCommand As New SqlCommand()
06 Dim myReader As DbDataReader
07 myCommand.CommandType = CommandType.Text
08 myCommand.Connection = myConnection
09 myCommand.CommandText = _
10 "Select * from Table1;Select * from Table2;"
11 Dim RecordCount As Integer = 0
12 Try
13 myConnection.Open()
14
15 Catch ex As Exception
16 Finally
17 myConnection.Close()
18 End Try
You need to compute the total number of records processed by the Select queries in the RecordCount
variable.
Which code segment should you insert at line 14?
A. myReader = myCommand.ExecuteReader()
RecordCount = myReader.RecordsAffected
B. While myReader.Read()
'Write logic to process data for the first result.
End While
RecordCount = myReader.RecordsAffected
C. While myReader.HasRows
While myReader.Read()
'Write logic to process data for the second result.
RecordCount = RecordCount + 1
myReader.NextResult()
End While
End While
D. While myReader.HasRows
While myReader.Read()
'Write logic to process data for the second result.
RecordCount = RecordCount + 1
End While
myReader.NextResult()
End While
Answer: D

Microsoft   070-561 examen   070-561
23. You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application uses data from a Microsoft SQL Server 2005 database table. A Web page of the
application contains a GridView server control.
You write the following code segment. (Line numbers are included for reference only.)
01 private void LoadGrid()
02 {
03 using (SqlCommand command = new SqlCommand())
04 {
05 command.Connection = connection;
06 command.CommandText = "SELECT * FROM Customers";
07 connection.Open();
08
09 }
10 }
You need to retrieve the data from the database table and bind the data to the DataSource property of the
GridView server control.
Which code segment should you insert at line 08?
A. SqlDataReader rdr = command.ExecuteReader();
connection.Close();
GridView1.DataSource = rdr;
GridView1.DataBind();
B. SqlDataReader rdr = command.ExecuteReader();
GridView1.DataSource = rdr.Read();
GridView1.DataBind();
connection.Close();
C. SqlDataReader rdr = command.ExecuteReader();
Object[] values = new Object[rdr.FieldCount];
GridView1.DataSource = rdr.GetValues(values);
GridView1.DataBind();
connection.Close();
D. DataTable dt = new DataTable();
using (SqlDataReader reader = command.ExecuteReader())
{
dt.Load(reader);
}
connection.Close();
GridView1.DataSource = dt;
GridView1.DataBind();
Answer: D

certification Microsoft   070-561   070-561   certification 070-561   070-561
24. You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application uses data from a Microsoft SQL Server 2005 database table. A Web page of the
application contains a GridView server control.
You write the following code segment. (Line numbers are included for reference only.)
01 Private Sub LoadGrid()
02 Using command As New SqlCommand()
03 command.Connection = connection
04 command.CommandText = "SELECT * FROM Customers"
05 connection.Open()
06
07 End Using
08 End Sub
You need to retrieve the data from the database table and bind the data to the DataSource property of the
GridView server control.
Which code segment should you insert at line 06?
A. Dim rdr As SqlDataReader = command.ExecuteReader()
connection.Close()
GridView1.DataSource = rdr
GridView1.DataBind()
B. Dim rdr As SqlDataReader = command.ExecuteReader()
GridView1.DataSource = rdr.Read()
GridView1.DataBind()
connection.Close()
C. Dim rdr As SqlDataReader = command.ExecuteReader()
Dim values As Object() = New Object(rdr.FieldCount - 1) {}
GridView1.DataSource = rdr.GetValues(values)
GridView1.DataBind()
D. Dim dt As New DataTable()
Using reader As SqlDataReader = command.ExecuteReader()
dt.Load(reader)
End Using
connection.Close()
GridView1.DataSource = dt
GridView1.DataBind()
Answer: D

Microsoft   certification 070-561   certification 070-561   070-561

NO.18 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application contains a TextBox control named txtProductID. The application will return a list of active
products that have the ProductID field equal to the txtProductID.Text property.
You write the following code segment. (Line numbers are included for reference only.)
01 Private Function GetProducts(ByVal cn _
As SqlConnection) As DataSet
02 Dim cmd As New SqlCommand()
03 cmd.Connection = cn
04 Dim da As New SqlDataAdapter(cmd)
05 Dim ds As New DataSet()
06
07 da.Fill(ds)
08 Return ds
09 End Function
You need to populate the DataSet object with product records while avoiding possible SQL injection
attacks.
Which code segment should you insert at line 06?
A. cmd.CommandText = _
String.Format("sp_sqlexec 'SELECT ProductID, " + _
"Name FROM Product WHERE ProductID={0} AND IsActive=1'", _
txtProductID.Text)
B. cmd.CommandText = _
String.Format("SELECT ProductID, " + _
"Name FROM Product WHERE ProductID={0} AND IsActive=1", _
txtProductID.Text)
cmd.Prepare()
C. cmd.CommandText = _
String.Format("SELECT ProductID, " + _
"Name FROM Product WHERE ProductID={0} AND IsActive=1", _
txtProductID.Text)
cmd.CommandType = CommandType.TableDirect
D. cmd.CommandText = "SELECT ProductID, " + _
"Name FROM Product WHERE ProductID=@productID AND IsActive=1"
cmd.Parameters.AddWithValue("@productID", txtProductID.Text)
Answer: D

Microsoft examen   070-561   070-561 examen

NO.19 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application contains a TextBox control named txtProductID. The application will return a list of active
products that have the ProductID field equal to the txtProductID.Text property.
You write the following code segment. (Line numbers are included for reference only.)
01 private DataSet GetProducts(SqlConnection cn) {
02 SqlCommand cmd = new SqlCommand();
03 cmd.Connection = cn;
04 SqlDataAdapter da = new SqlDataAdapter(cmd);
05 DataSet ds = new DataSet();
06
07 da.Fill(ds);
08 return ds;
09 }
You need to populate the DataSet object with product records while avoiding possible SQL injection
attacks.
Which code segment should you insert at line 06?
A. cmd.CommandText = string.Format("sp_sqlexec 'SELECT ProductID,
Name FROM Product WHERE ProductID={0} AND IsActive=1'", txtProductID.Text);
B. cmd.CommandText = string.Format("SELECT ProductID, Name FROM
Product WHERE ProductID={0} AND IsActive=1", txtProductID.Text);
cmd.Prepare();
C. cmd.CommandText = string.Format("SELECT ProductID, Name FROM
Product WHERE ProductID={0} AND IsActive=1", txtProductID.Text);
cmd.CommandType = CommandType.TableDirect;
D. cmd.CommandText = "SELECT ProductID, Name FROM Product WHERE
ProductID=@productID AND IsActive=1";
cmd.Parameters.AddWithValue("@productID", txtProductID.Text);
Answer: D

Microsoft   070-561 examen   070-561   certification 070-561

NO.20 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application contains a SqlDataAdapter object named daOrder. The SelectCommand property of the
daOrder object is set.
You write the following code segment. (Line numbers are included for reference only.)
01 Private Sub ModifyDataAdapter()
02
03 End Sub
You need to ensure that the daOrder object can also handle updates.
Which code segment should you insert at line 02?
A. Dim cb As New SqlCommandBuilder(daOrder)
cb.RefreshSchema()
B. Dim cb As New SqlCommandBuilder(daOrder)
cb.SetAllValues = True
C. Dim cb As New SqlCommandBuilder(daOrder)
daOrder.DeleteCommand = cb.GetDeleteCommand()
daOrder.InsertCommand = cb.GetInsertCommand()
daOrder.UpdateCommand = cb.GetUpdateCommand()
D. Dim cb As New SqlCommandBuilder(daOrder)
cb.RefreshSchema()
cb.GetDeleteCommand()
cb.GetInsertCommand()
cb.GetUpdateCommand()
Answer: C

Microsoft   070-561   070-561

NO.21 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
You write the following code segment.
string queryString = "Select Name, Age from dbo.Table_1";
SqlCommand command = new SqlCommand(queryString, (SqlConnection)connection));
You need to get the value that is contained in the first column of the first row of the result set returned by
the query.
Which code segment should you use?
A. var value = command.ExecuteScalar();
string requiredValue = value.ToString();
B. var value = command.ExecuteNonQuery();
string requiredValue = value.ToString();
C. var value = command.ExecuteReader(CommandBehavior.SingleRow);
string requiredValue = value[0].ToString();
D. var value = command.ExecuteReader(CommandBehavior.SingleRow);
string requiredValue = value[1].ToString();
Answer: A

Microsoft   certification 070-561   070-561   070-561   070-561 examen

NO.22 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
You need to separate the security-related exceptions from the other exceptions for database operations at
run time.
Which code segment should you use?
A. Catch ex As System.Security.SecurityException
'Handle all database security related exceptions.
End Try
B. Catch ex As System.Data.SqlClient.SqlException
For i As Integer = 0 To ex.Errors.Count - 1
If ex.Errors(i).[Class].ToString() = "14" Then
'Handle all database security related exceptions.
Else
'Handle other exceptions
End If
Next
End Try
C. Catch ex As System.Data.SqlClient.SqlException
For i As Integer = 0 To ex.Errors.Count - 1
If ex.Errors(i).Number = 14 Then
'Handle all database security related exceptions.
Else
'Handle other exceptions
End If
Next
End Try
D. Catch ex As System.Data.SqlClient.SqlException
For i As Integer = 0 To ex.Errors.Count - 1
If ex.Errors(i).Message.Contains("Security") Then
'Handle all database security related exceptions.
Else
'Handle other exceptions
End If
Next
End Try
Answer: B

Microsoft   certification 070-561   070-561 examen

NO.23 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
The application throws an exception when the SQL Connection object is used.
You need to handle the exception.
Which code segment should you use?
A. try
{
if(null!=conn)
conn.Close();
// code for the query
}
catch (Exception ex)
{
// handle exception
}
finally
{
if(null==conn)
conn.Open();
}
B. try
{
conn.Close();
// code for the query
}
catch (Exception ex)
{
// handle exception
}
finally
{
if(null!=conn)
conn.Open();
}
C. try
{
conn.Open();
// code for the query
}
catch (Exception ex)
{
// handle exception
}
finally
{
if(null!=conn)
conn.Close();
}
D. try
{
conn.Open();
// code for the query
}
catch (Exception ex)
{
// handle exception
}
finally
{
if(null==conn)
conn.Close();
}
Answer: C

Microsoft examen   070-561   certification 070-561   070-561 examen   070-561

NO.24 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application contains a SqlDataAdapter object named daOrder. The SelectCommand property of the
daOrder object is set.
You write the following code segment. (Line numbers are included for reference only.)
01 private void ModifyDataAdapter() {
02
03 }
You need to ensure that the daOrder object can also handle updates.
Which code segment should you insert at line 02?
A. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);
cb.RefreshSchema();
B. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);
cb.SetAllValues = true;
C. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);
daOrder.DeleteCommand = cb.GetDeleteCommand();
daOrder.InsertCommand = cb.GetInsertCommand();
daOrder.UpdateCommand = cb.GetUpdateCommand();
D. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);
cb.RefreshSchema();
cb.GetDeleteCommand();
cb.GetInsertCommand();
cb.GetUpdateCommand();
Answer: C

Microsoft   070-561   070-561   070-561

NO.25 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
The connection string of the application is defined in the following manner.
"Server=Prod;Database=WingtipToys;Integrated
Security=SSPI;Asynchronous Processing=true"
The application contains the following code segment. (Line numbers are included for reference only.)
01 protected void UpdateData(SqlCommand cmd) {
02 cmd.Connection.Open();
03
04 lblResult.Text = "Updating ...";
05 }
The cmd object takes a long time to execute.
You need to ensure that the application continues to execute while cmd is executing.
What should you do?
A. Insert the following code segment at line 03.
cmd.BeginExecuteNonQuery(new AsyncCallback(UpdateComplete), cmd);
Add the following code segment.
private void UpdateComplete (IAsyncResult ar) {
int count = (int)ar.AsyncState;
LogResults(count);
}
B. Insert the following code segment at line 03.
cmd.BeginExecuteNonQuery(new AsyncCallback(UpdateComplete), cmd);
Add the following code segment.
private void UpdateComplete (IAsyncResult ar) {
SqlCommand cmd = (SqlCommand)ar.AsyncState;
int count = cmd.EndExecuteNonQuery(ar);
LogResults(count);
}
C. Insert the following code segment at line 03.
cmd.StatementCompleted += new
StatementCompletedEventHandler(UpdateComplete);
cmd.ExecuteNonQuery();
Add the following code segment.
private void UpdateComplete (object sender, StatementCompletedEventArgs e) {
int count = e.RecordCount;
LogResults(count);
}
D. Insert the following code segment at line 03.
SqlNotificationRequest notification = new
SqlNotificationRequest("UpdateComplete", "", 10000);
cmd.Notification = notification;
cmd.ExecuteNonQuery();
Add the following code segment.
private void UpdateComplete(SqlNotificationRequest notice) {
int count = int.Parse(notice.UserData);
LogResults(count);
}
Answer: B

certification Microsoft   certification 070-561   certification 070-561   070-561   certification 070-561

NO.26 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application uses Microsoft SQL Server 2005.
You write the following code segment. (Line numbers are included for reference only.)
01 String myConnString = "User
02 ID=<username>;password=<strong password>;Initial
03 Catalog=pubs;Data Source=myServer";
04 SqlConnection myConnection = new
05 SqlConnection(myConnString);
06 SqlCommand myCommand = new SqlCommand();
07 DbDataReader myReader;
08 myCommand.CommandType =
09 CommandType.Text;
10 myCommand.Connection = myConnection;
11 myCommand.CommandText = "Select * from Table1;
Select * from Table2;";
12 int RecordCount = 0;
13 try
14 {
15 myConnection.Open();
16
17 }
18 catch (Exception ex)
19 {
20 }
21 finally

NO.27 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
The application throws an exception when the SQL Connection object is used.
You need to handle the exception.
Which code segment should you use?
A. Try
If conn IsNot Nothing Then
conn.Close()
' code for the query
End If
Catch ex As Exception
' handle exception
Finally
If conn Is Nothing Then
conn.Open()
End If
End Try
B. Try
' code for the query
conn.Close()
Catch ex As Exception
' handle exception
Finally
If conn IsNot Nothing Then
conn.Open()
End If
End Try
C. Try
' code for the query
conn.Open()
Catch ex As Exception
' handle exception
Finally
If conn IsNot Nothing Then
conn.Close()
End If
End Try
D. Try
' code for the query
conn.Open()
Catch ex As Exception
' handle exception
Finally
If conn Is Nothing Then
conn.Close()
End If
End Try
Answer: C

Microsoft   070-561   certification 070-561   070-561 examen

NO.28 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
You need to separate the security-related exceptions from the other exceptions for database operations at
run time.
Which code segment should you use?
A. catch (System.Security.SecurityException ex)
{
//Handle all database security related exceptions.
}
B. catch (System.Data.SqlClient.SqlException ex)
{
for (int i = 0; i < ex.Errors.Count; i++){
if (ex.Errors[i].Class.ToString() == "14") {
//Handle all database security related exceptions.
}
else{
//Handle other exceptions
}
}
}
C. catch (System.Data.SqlClient.SqlException ex)
{
for (int i = 0; i < ex.Errors.Count; i++){
if (ex.Errors[i].Number == 14){
//Handle all database security related exceptions.
}
else{
//Handle other exceptions
}
}
}
D. catch (System.Data.SqlClient.SqlException ex)
{
for (int i = 0; i < ex.Errors.Count; i++){
if (ex.Errors[i].Message.Contains("Security")){
//Handle all database security related exceptions.
}
else{
//Handle other exceptions
}
}
}
Answer: B

certification Microsoft   070-561   070-561 examen   070-561

NO.29 myConnection.Close();

NO.30 You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The
application connects to a Microsoft SQL Server 2005 database.
You write the following code segment. (Line numbers are included for reference only.)
01 Using connection As New SqlConnection(connectionString)
02 Dim cmd As New SqlCommand(queryString, connection)
03 connection.Open()
04
05 While sdrdr.Read()
06 ' use the data in the reader
07 End While
08 End Using
You need to ensure that the memory is used efficiently when retrieving BLOBs from the database.
Which code segment should you insert at line 04?
A. Dim sdrdr As SqlDataReader = _ cmd.ExecuteReader()
B. Dim sdrdr As SqlDataReader = _ cmd.ExecuteReader(CommandBehavior.[Default])
C. Dim sdrdr As SqlDataReader = _ cmd.ExecuteReader(CommandBehavior.SchemaOnly)
D. Dim sdrdr As SqlDataReader = _ cmd.ExecuteReader(CommandBehavior.SequentialAccess)
Answer: D

certification Microsoft   070-561   certification 070-561   070-561   certification 070-561   070-561 examen

Pass4Test offre de Microsoft MB3-859 070-523 070-512 070-513 070-516 matériaux d'essai

L'équipe de Pass4Test rehcerche la Q&A de test certification Microsoft MB3-859 070-523 070-512 070-513 070-516 en visant le test Microsoft MB3-859 070-523 070-512 070-513 070-516. Cet outil de formation peut vous aider à se préparer bien dans une courte terme. Vous vous renforcerez les connaissances de base et même prendrez tous essences de test Certification. Pass4Test vous assure à réussir le test Microsoft MB3-859 070-523 070-512 070-513 070-516 sans aucune doute.


Vous choisissez l'aide de Pass4Test, Pass4Test fait tous effort à vous aider à réussir le test. De plus, la mise à jour de Q&A pendant un an est gratuite pour vous. Vous n'avez plus raison à hésiter. Pass4Test est une meilleure assurance pour le succès de test Microsoft MB3-859 070-523 070-512 070-513 070-516. Ajoutez la Q&A au panier.


Code d'Examen: MB3-859

Nom d'Examen: Microsoft (Microsoft Dynamics GP 2010 Financials)

Questions et réponses: 75 Q&As

Code d'Examen: 070-523

Nom d'Examen: Microsoft (UPG:Transition MCPD.NET Frmwrk 3.5 Web Dev to 4 Web Dev)

Questions et réponses: 118 Q&As

Code d'Examen: 070-512

Nom d'Examen: Microsoft (TS Visual Studio Team Foundation Server 2010)

Questions et réponses: 72 Q&As

Code d'Examen: 070-513

Nom d'Examen: Microsoft (TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4)

Questions et réponses: 163 Q&As

Code d'Examen: 070-516

Nom d'Examen: Microsoft (TS: Accessing Data with Microsoft .NET Framework 4)

Questions et réponses: 196 Q&As

Le succès n'est pas loin de vous si vous choisissez Pass4Test. Vous allez obtenir le Certificat de Microsoft MB3-859 070-523 070-512 070-513 070-516 très tôt. Pass4Test peut vous permettre à réussir 100% le test Microsoft MB3-859 070-523 070-512 070-513 070-516, de plus, un an de service en ligne après vendre est aussi gratuit pour vous.


Selon les feedbacks les professionnels bien réputés dans l'Industrie IT, Pass4Test est un bon catalyseur de leurs succès. L'outil de formation offert par Pass4Test leur aide d'économiser le temps et l'argent, le plus important est qu'ils aient passé le test Microsoft MB3-859 070-523 070-512 070-513 070-516 avec succès. Pass4Test est un fournissur fiable. Vous allez réaliser votre rêve avec l'aide de Pass4Test.


Choisissez le Pass4Test, choisissez le succès de test Microsoft MB3-859 070-523 070-512 070-513 070-516. Bonne chance à vous.


Le test simulation Microsoft MB3-859 070-523 070-512 070-513 070-516 sorti par les experts de Pass4Test est bien proche du test réel. Nous sommes confiant sur notre produit qui vous permet à réussir le test Microsoft MB3-859 070-523 070-512 070-513 070-516 à la première fois. Si vous ne passe pas le test, votre argent sera tout rendu.


070-512 Démo gratuit à télécharger: http://www.pass4test.fr/070-512.html


NO.1 You have a dual-tier Visual Studio Team Foundation Server 2010 environment. You run Windows
SharePoint Services 3.0 on the application tier server.
You configure Team Foundation Server to support an existing SharePoint Web application. When you
attempt to create a new team project portal in the existing SharePoint Web application, you receive the
following error:
TF218017: A SharePoint site could not be created for use as the team project portal. The following error
occurred: TF250034: An access grant could not be found between Team Foundation Server and the
SharePoint Web application that you specified.
You need to ensure that Team Foundation Server integrates with the SharePoint Web application.
What should you do in the Team Foundation Server Administration Console?
A. In the Extensions for SharePoint Products node, grant access to Team Foundation Server.
B. In the Extensions for SharePoint Products node, modify access to the SharePoint Web application.
C. In the SharePoint Web Applications node, add the SharePoint Web application to Team Foundation
Server.
D. In the SharePoint Web Applications node, remove the SharePoint Web application from Team
Foundation Server.
Answer: A

Microsoft   certification 070-512   070-512 examen   070-512

NO.2 You are setting up a Visual Studio Team Foundation Server 2010 environment. The environment
includes a Microsoft SQL Server 2008 cluster.
You need to ensure high availability and redundancy for the front-end Web servers in the Team
Foundation Server environment.
What should you do?
A. Install a virtual application tier server and create a snapshot.
B. Install two application tier servers. Use one as a cold-standby.
C. Install two application tier servers. Use one as a warm-standby.
D. Install multiple application tier servers with network load balancing.
Answer: D

Microsoft   certification 070-512   070-512

NO.3 You plan to install a dual-tier Visual Studio Team Foundation Server 2010 environment using two
servers named Server1 and Server2.
You install and configure Microsoft SQL Server 2008 and SQL Server 2008 Analysis Services on Server1.
You install and configure IIS 7.5, SQL Server Reporting Services, and Windows SharePoint Services 3.0
on Server2.
You need to install and configure Team Foundation Server using the two servers.
What should you do?
A. Install Team Foundation Server on Server2 and run the configuration wizard on Server2 using the
Basic option.
B. Install Team Foundation Server on Server2 and run the configuration wizard on Server2 using the
Advanced option.
C. Install Team Foundation Server on Server1 and Server2. Run the configuration wizard on Server1
using the Basic option. Run the configuration wizard on Server2 using the Application-Tier Only option.
D. Install Team Foundation Server on Server1 and Server2. Run the configuration wizard on Server1
using the Advanced option. Run the configuration wizard on Server2 using the Application-Tier Only
option.
Answer: B

Microsoft   070-512 examen   070-512   certification 070-512   070-512   certification 070-512

NO.4 You install Visual Studio Team Foundation Server 2010. You have an existing Microsoft Office
SharePoint Server (MOSS) 2007 server that uses Microsoft SQL Server 2008.
You need to configure Team Foundation Server to use the existing SQL Server and SharePoint servers.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Install and configure the Team Foundation Server Extensions for SharePoint Products on the MOSS
2007 server.
B. Install and configure the Team Foundation Server 2010 SharePoint Package (.wsp) files on the MOSS
2007 server.
C. Run the configuration wizard on an application tier server, using the Advanced option.
D. Run the configuration wizard on an application tier server, using the Application-Tier Only option.
Answer: AC

Microsoft   certification 070-512   070-512   certification 070-512

NO.5 Your company has a main office and a branch office. You are installing Visual Studio Team Foundation
Server 2010 at the main office.
You need to minimize the bandwidth required to access version-controlled files from the branch office.
What should you do?
A. Install Team Foundation Server Proxy at the main office. Configure the Team Explorer client
applications at the branch office to connect to the proxy server.
B. Install Team Foundation Server Proxy at the branch office. Configure the Team Explorer client
applications at the branch office to connect to the proxy server.
C. Create a team project collection for the branch office. Configure the Team Explorer client applications
at the branch office to connect to the application tier at the main office.
D. Install an application tier server at the branch office and configure it to connect to Team Foundation
Server. Configure the Team Explorer client applications at the branch office to connect to the application
tier server at the branch office.
Answer: B

Microsoft   070-512   070-512   070-512

Guide de formation plus récente de Microsoft 98-366 98-364 98-361 77-884 77-882 77-881

Pass4Test vous promet de vous aider à passer le test Microsoft 98-366 98-364 98-361 77-884 77-882 77-881, vous pouvez télécharger maintenant les Q&As partielles de test Microsoft 98-366 98-364 98-361 77-884 77-882 77-881 en ligne. Il y a encore la mise à jour gratuite pendant un an pour vous. Si vous malheureusement rater le test, votre argent sera 100% rendu.


Vous serez impressionné par le service après vendre de Pass4Test, le service en ligne 24h et la mise à jour après vendre sont gratuit pour vous pendant un an, et aussi vous allez recevoir les informations plus nouvelles à propos de test Certification IT. Vous aurez un résultat imaginaire en coûtant un peu d'argent. D'ailleurs, vous pouvez économier beaucoup de temps et d'efforts avec l'aide de Pass4Test. C'est vraiment un bon marché de choisir le Pass4Test comme le guide de formation.


Code d'Examen: 98-366

Nom d'Examen: Microsoft (MTA Networking Fundamentals)

Questions et réponses: 185 Q&As

Code d'Examen: 98-364

Nom d'Examen: Microsoft (Microsoft Database Fundamentals)

Questions et réponses: 200 Q&As

Code d'Examen: 98-361

Nom d'Examen: Microsoft (Microsoft MTA Software Development Fundamentals)

Questions et réponses: 88 Q&As

Code d'Examen: 77-884

Nom d'Examen: Microsoft (Microsoft Office Outlook 2010 Practice Test)

Questions et réponses: 225 Q&As

Code d'Examen: 77-882

Nom d'Examen: Microsoft (Excel 2010)

Questions et réponses: 81 Q&As

Code d'Examen: 77-881

Nom d'Examen: Microsoft (Word 2010)

Questions et réponses: 110 Q&As

Si vous êtes intéressé par l'outil formation Microsoft 98-366 98-364 98-361 77-884 77-882 77-881 étudié par Pass4Test, vous pouvez télécharger tout d'abord le démo. Le service de la mise à jour gratuite pendant un an est aussi offert pour vous.


Les spécialistes d'expérience de Pass4Test ont fait une formation ciblée au test Microsoft 98-366 98-364 98-361 77-884 77-882 77-881. Cet outil de formation est convenable pour les candidats de test Microsoft 98-366 98-364 98-361 77-884 77-882 77-881. Pass4Test n'offre que les produits de qualité. Vous aurez une meilleure préparation à passer le test avec l'aide de Pass4Test.


Dans cette Industrie IT intense, le succès de test Microsoft 98-366 98-364 98-361 77-884 77-882 77-881 peut augmenter le salaire. Les gens d'obtenir le Certificat Microsoft 98-366 98-364 98-361 77-884 77-882 77-881 peuvent gagner beaucoup plus que les gens sans Certificat Microsoft 98-366 98-364 98-361 77-884 77-882 77-881. Le problème est comment on peut réussir le test plus facile?


98-361 Démo gratuit à télécharger: http://www.pass4test.fr/98-361.html


NO.1 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been tasked with creating a new program for ABC.com using C#. The new program will iterate
throughout an assortment of lists and arrays. Every element in this assortment must be processed just
one time.
You are then informed that reading and debugging your code should not be difficult.
What action should you take?
A. You should consider making use of the switch C# statement as part of your code.
B. You should consider making use of the void keyword as part of your code.
C. You should consider making use of the foreach C# statement as part of your code.
D. You should consider making use of the interface keyword as part of your code.
Answer: C

certification Microsoft   98-361   98-361   certification 98-361

NO.2 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You are in the process of creating a class that makes use of a method using the virtual modifier.
Which of the following is TRUE with regards to the virtual modifier? (Choose all that apply.)
A. You are unable to make use of the virtual modifier with the static, abstract, private or override modifiers.
B. You are able to make use of the virtual modifier with the static, abstract, private or override modifiers.
C. The use of the virtual modifier prevents inheritance of the class.
D. The virtual modifier is used in a class declaration to indicate that a class is intended only to be a base
class of other classes.
Answer: A

Microsoft   98-361 examen   certification 98-361   98-361

NO.3 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been instructed to create a program that includes code that allows the program to iterate a set
amount of times. Regardless of whether the loop body includes complex code, the written code should be
understandable and easily maintainable.
What option should you use?
A. You should consider making use of the public C# statement.
B. You should consider making use of the for C# statement.
C. You should consider making use of the private C# statement.
D. You should consider making use of the sealed C# statement.
Answer: B

certification Microsoft   certification 98-361   98-361   98-361   98-361 examen   98-361

NO.4 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been instructed to create a new application that should include a recursive method that
computes the factorial of a number.
You have written the following code for the method:
01. public static int Factorial(int n)
02: {
03: if (n == 0)
04: {
05: return 1;
06: }
07: else
08: { 09:

NO.5 You are employed as a developer at ABC.com. You are in the process of creating code for a method
that does not retrieve a value for the calling code.
You want to make sure that this is reflected when declaring the method.
What option should you use?
A. You should consider making use of the void keyword in the method declaration.
B. You should consider making use of the sealed C# statement in the method declaration.
C. You should consider making use of the internal C# statement in the method declaration.
D. You should consider making use of the public C# statement in the method declaration.
E. You should consider making use of the protected C# statement in the method declaration.
Answer: A

Microsoft   98-361 examen   98-361   certification 98-361

NO.6 }
You have to insert suitable code at line 09 to make sure that the proper outcome is reached.
What line of code should be inserted?
A. return n * Factorial(n - 1);
B. return n;
C. return n * Factorial(n - 0);
D. return 0;
Answer: A

Microsoft   98-361   98-361   98-361
10.You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You are writing code for a new ABC.com application. The code includes the while statement.
You want to make sure that a control enters the while loop six times.
Which of the following suitably represents the written code?
A. int count = 0;
while (count < 6)
{
when (count == 6)
break;
count++;
}
B. int count = 0;
while (count < 7)
{
if (count == 5)
break;
count++;
}
C. int count = 1;
while (count < 6)
{
if (count == 6)
break;
count++;
}
D. int count = 1;
while (count < 7)
{
when (count == 5)
break;
count++;
}
Answer: B

certification Microsoft   certification 98-361   98-361 examen   98-361
11.You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been instructed to create a new program for ABC.com. You have to include a repetition
structure that allows for the termination condition test to execute at the bottom of the loop not the top.
What action should you take?
A. You should consider making use of the public C# statement.
B. You should consider making use of the sealed C# statement.
C. You should consider making use of the private C# statement.
D. You should consider making use of the do-while C# statement.
Answer: D

Microsoft   98-361   98-361 examen   98-361

NO.7 You are employed as a developer at ABC.com. You make use of Visual Basic .Net for development
purposes.
You have written the code shown below for declaring an array of a new application:
Dim myArray as String = { apples, pears, plums, grapes, oranges, bananas}
You want to return the third item in your array.
What code would you employ?
A. myArray[1]
B. myArray[2]
C. myArray[3]
D. myArray[4]
E. myArray[5]
F. myArray[6]
Answer: B

Microsoft   98-361   98-361

NO.8 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have received instructions to create a new program for ABC.com using C#. You are informed that the
new program should allow for intricate multi-way branching. Furthermore, the code used must not be
difficult to make sense of.
What is the option you should use?
A. You should consider making use of the foreach C# statement.
B. You should consider making use of the while C# statement.
C. You should consider making use of the protected C# statement.
D. You should consider making use of the switch C# statement.
Answer: D

Microsoft   98-361 examen   98-361   98-361

NO.9 }

NO.10 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You are planning to make use of an InitFields method that obtains two parameters of data type double, but
does not retrieve a value for the calling code.
You start writing code to define the InitFields method as shown below:
public void InitFields(double l, double w)
What code should you use to complete the code?
A. {
retrieve length + width;
}
B. {
length = l;
width = w;
}
C. {
retrieve length - width;}
D. {
retrieve length + width;
}
Answer: B

certification Microsoft   98-361   98-361   98-361   98-361 examen

NO.11 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been asked to create a new program for ABC.com. Prior to creating the new program, you plan
to create an algorithm to fully comprehend how the processes of the program must run. The algorithm will
list the required actions for completing a process in the appropriate sequence.
You are informed that your method for creating the algorithm should be as simple, and clear as possible.
What option should you use?
A. You should consider making use of the flowchart method.
B. You should consider making use of the pivotchart method.
C. You should consider making use of the data table method.
D. You should consider making use of the XML method.
Answer: A

certification Microsoft   98-361 examen   98-361   98-361   98-361 examen

NO.12 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been instructed to create a new application for ABC.com using C#. The new application must
process a loop repeatedly for precisely 7 times.
Which of the following represents the code you should write?
A. int count = 1;
while (count <= 7)
{
Console.WriteLine("The value of count = {0}", count);
count++;
}
B. int count = 0;
while (count <= 7)
{
Console.WriteLine("The value of count = {7}", count);
count++;
}
C. int count = 1;
while (count <= 7)
{
Console.WriteLine("The value of count = {7}");
count++;
}
D. int count = 0;
while (count <= 7)
{
Console.WriteLine("The value of count = {0}");
count++;
}
Answer: A

Microsoft examen   98-361   98-361 examen

NO.13 You are employed as a developer at ABC.com. You are creating a .NET Framework application.
You have been instructed to make sure that you make use of Common Intermediate Language (CLI) for
programming the application.
What options are TRUE with regards to CLI.? (Choose all that apply.)
A. CIL is the highest-level human-readable programming language defined by the Common Language
Infrastructure specification.
B. CIL is the highest-level human-readable programming language defined by the Common Language
Infrastructure specification.
C. CIL is an object-oriented assembly language, and is entirely stack-based.
D. CIL is an object-oriented assembly language, but is not stack-based.
Answer: A,C

Microsoft   98-361   98-361   98-361   98-361

NO.14 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been instructed to create a new program for ABC.com. The program should be able to affect
integer values, which may be positive or negative and be greater than twelve characters.
You have to make sure that you are able to store this type of variable.
What is the option you should take?
A. You should consider making use of the static data type.
B. You should consider making use of the string data type.
C. You should consider making use of the private data type.
D. You should consider making use of the long data type.
Answer: D

Microsoft   98-361 examen   98-361   98-361 examen

NO.15 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have received instructions to create a method for determining the concession for products ABC.com
sold. A variable, named percentValue, is of the type double and must be only be available in the method.
Which of the following actions should you take?
A. You should consider making use of the private access modifier for distinguishing the percentValue
variable.
B. You should consider making use of the void access modifier for distinguishing the percentValue
variable.
C. You should consider making use of the string access modifier for distinguishing the percentValue
variable.
D. You should consider making use of the protected access modifier for distinguishing the percentValue
variable.
Answer: A

Microsoft   98-361   98-361 examen   98-361   98-361

Dernières Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp examen pratique questions et réponses

Beaucoup de gens trouvent difficile à passer le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp, c'est juste parce que ils n'ont pas bien choisi une bonne Q&A. Vous penserez que le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp n'est pas du tout autant dur que l'imaginer. Le produit de Pass4Test non seulement comprend les Q&As qui sont impressionnées par sa grande couverture des Questions, mais aussi le service en ligne et le service après vendre.


Est-ce que vous vous souciez encore pour passer le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp? Pourquoi pas choisir la formation en Internet dans une société de l'informatique. Un bon choix de l'outil formation peut résoudre le problème de prendre grande quantité de connaissances demandées par le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp, et vous permet de préparer mieux avant le test. Les experts de Pass4Test travaillent avec tous efforts à produire une bonne Q&A ciblée au test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp. La Q&A est un bon choix pour vous. Vous pouvez télécharger le démo grantuit tout d'abord en Internet.


Code d'Examen: 070-536-Csharp

Nom d'Examen: Microsoft (TS:MS.NET Framework 2.0-Application Develop Foundation)

Questions et réponses: 160 Q&As

Code d'Examen: 070-545-Csharp

Nom d'Examen: Microsoft (TS:Microsoft Visio 2007, Application Development)

Questions et réponses: 54 Q&As

Code d'Examen: 070-542-Csharp

Nom d'Examen: Microsoft (MS Office SharePoint Server 2007-Application Development)

Questions et réponses: 162 Q&As

Aujourd'hui, c'est une société pleine de gens talentueux, la meilleure façon de suivre et assurer la place dans votre carrière est de s'améliorer sans arrêt. Si vous n'augmentez pas dans votre carrière, vous êtes juste sous-développé parce que les autres sont meilleurs que vous. Pour éviter ce cas, vous devez vous former successivement.


L'équipe de Pass4Test autorisée offre sans arrêt les bonnes resources aux candidats de test Certification Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp. Les documentations particulièrement visée au test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp aide beaucoup de candidats. La Q&A de la version plus nouvelle est lancée maintenant. Vous pouvez télécharger le démo gratuit en Internet. Généralement, vous pouvez réussir le test 100% avec l'aide de Pass4Test, c'est un fait preuvé par les professionnels réputés IT. Ajoutez le produit au panier, vous êtes l'ensuite à réussir le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp.


L'importance de la position de Certificat Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp dans l'industrie IT est bien claire pour tout le monde, mais c'est pas facile à obtenir ce Certificat. Il y a beaucoup de Q&As qui manquent une haute précision des réponses. Cependant, Pass4Test peut offrir des matériaux pratiques pour toutes les personnes à participer l'examen de Certification, et il peut aussi offrir à tout moment toutes les informations que vous auriez besoin à réussir l'examen Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp par votre première fois.


Pass4Test a de formations plus nouvelles pour le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp. Les experts dans l'industrie IT de Pass4Test profitant leurs expériences et connaissances professionnelles à lancer les Q&As plus chaudes pour faciliter la préparation du test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp à tous les candidats qui nous choisissent. L'importance de Certification Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp est de plus en plus claire, c'est aussi pourquoi il y a de plus en plus de gens qui ont envie de participer ce test. Parmi tous ces candidats, pas mal de gens ont réussi grâce à Pass4Test. Ces feedbacks peuvent bien prouver nos produits essentiels pour votre réussite de test Certification.


070-536-Csharp Démo gratuit à télécharger: http://www.pass4test.fr/070-536-Csharp.html


NO.1 You are developing a routine that will periodically perform a calculation based on regularly changing
values from legacy systems. You write the following lines of code. (Line numbers are included for
reference only.)
01 bool exitLoop = false;
02 do {
03
04 exitLoop = PerformCalculation();
05 } while (!exitLoop);
You need to write a code segment to ensure that the calculation is performed at 30-second intervals. You
must ensure that minimum processor resources are used between the calculations.
Which code segment should you insert at line 03?
A. Thread.Sleep(30000);
B. Thread.SpinWait(30000);
C. Thread thrdCurrent = Thread.CurrentThread;
thrdCurrent.Priority = ThreadPriority.BelowNormal;
D. Thread thrdCurrent = Thread.CurrentThread;
thrdCurrent.Priority = ThreadPriority.Lowest;
E. Thread.SpinWait(30);
Answer: A

Microsoft   certification 070-536-Csharp   070-536-Csharp examen   070-536-Csharp examen

NO.2 You develop a service application named FileService. You deploy the service application to multiple
servers on your network.
You implement the following code segment. (Line numbers are included for reference only.)
01 public void StartService(string serverName){
02 ServiceController crtl = new
03 ServiceController("FileService");
04 if (crtl.Status == ServiceControllerStatus.Stopped){
05 }
06 }
You need to develop a routine that will start FileService if it stops. The routine must start FileService on
the server identified by the serverName input parameter.
Which two lines of code should you add to the code segment? (Each correct answer presents part of the
solution. Choose two.)
A. Insert the following line of code between lines 03 and 04:
crtl.ServiceName = serverName;
B. Insert the following line of code between lines 03 and 04:
crtl.MachineName = serverName;
C. Insert the following line of code between lines 03 and 04:
crtl.Site.Name = serverName;
D. Insert the following line of code between lines 04 and 05:
crtl.Continue();
E. Insert the following line of code between lines 04 and 05:
crtl.Start();
F. Insert the following line of code between lines 04 and 05:
crtl.ExecuteCommand(0);
Answer: BE

Microsoft   070-536-Csharp   070-536-Csharp   070-536-Csharp

NO.3 You create a class library that is used by applications in three departments of your company. The
library contains a Department class with the following definition.
public class Department {
public string name;
public string manager;
}
Each application uses a custom configuration section to store department-specific values in the
application configuration file as shown in the following code.
<Department>
<name>Hardware</name>
<manager>Amy</manager>
</Department>
You need to write a code segment that creates a Department object instance by using the field values
retrieved from the application configuration file.
Which code segment should you use?
A. public class deptElement : ConfigurationElement {
protected override void DeserializeElement(
XmlReader reader, bool serializeCollectionKey) {
Department dept = new Department();
dept.name = ConfigurationManager.AppSettings["name"];
dept.manager =
ConfigurationManager.AppSettings["manager"];
return dept;
}
}
B. public class deptElement: ConfigurationElement {
protected override void DeserializeElement(
XmlReader reader, bool serializeCollectionKey) {
Department dept = new Department();
dept.name = reader.GetAttribute("name");
dept.manager = reader.GetAttribute("manager");
}
}
C. public class deptHandler : IConfigurationSectionHandler {
public object Create(object parent, object configContext,
System.Xml.XmlNode section) {
Department dept = new Department();
dept.name = section.SelectSingleNode("name").InnerText;
dept.manager =
section.SelectSingleNode("manager").InnerText;
return dept;
}
}
D. public class deptHandler : IConfigurationSectionHandler {
public object Create(object parent, object configContext,
System.Xml.XmlNode section) {
Department dept = new Department();
dept.name = section.Attributes["name"].Value;
dept.manager = section.Attributes["manager"].Value;
return dept;
}
}
Answer: C

Microsoft   070-536-Csharp   certification 070-536-Csharp   070-536-Csharp   certification 070-536-Csharp

NO.4 You are developing an application that stores data about your company's sales and technical support
teams.
You need to ensure that the name and contact information for each person is available as a single
collection when a user queries details about a specific team. You also need to ensure that the data
collection guarantees type safety.
Which code segment should you use?
A. Hashtable team = new Hashtable();
team.Add(1, "Hance");
team.Add(2, "Jim");
team.Add(3, "Hanif");
team.Add(4, "Kerim");
team.Add(5, "Alex");
team.Add(6, "Mark");
team.Add(7, "Roger");
team.Add(8, "Tommy");
B. ArrayList team = new ArrayList();
team.Add("1, Hance");
team.Add("2, Jim");
team.Add("3, Hanif");
team.Add("4, Kerim");
team.Add("5, Alex");
team.Add("6, Mark");
team.Add("7, Roger");
team.Add("8, Tommy");
C. Dictionary<int, string> team =
new Dictionary<int, string>();
team.Add(1, "Hance");
team.Add(2, "Jim");
team.Add(3, "Hanif");
team.Add(4, "Kerim");
team.Add(5, "Alex");
team.Add(6, "Mark");
team.Add(7, "Roger");
team.Add(8, "Tommy");
D. string[] team =
new string[] {"1, Hance",
"2, Jim", "3, Hanif",
"4, Kerim", "5, Alex",
"6, Mark", "7, Roger",
"8, Tommy"};
Answer: C

Microsoft examen   certification 070-536-Csharp   070-536-Csharp

NO.5 You are creating a class named Age.
You need to ensure that the Age class is written such that collections of Age objects can be sorted.
Which code segment should you use?
A. public class Age {
public int Value;
public object CompareTo(object obj) {
if (obj is Age) {
Age _age = (Age) obj;
return Value.CompareTo(obj);
}
throw new ArgumentException("object not an Age");
}
}
B. public class Age {
public int Value;
public object CompareTo(int iValue) {
try {
return Value.CompareTo(iValue);
} catch {
throw new ArgumentException ("object not an Age");
}
}
}
C. public class Age : IComparable {
public int Value;
public int CompareTo(object obj) {
if (obj is Age) {
Age _age = (Age) obj;
return Value.CompareTo(_age.Value);
}
throw new ArgumentException("object not an Age");
}
}
D. public class Age : IComparable {
public int Value;
public int CompareTo(object obj) {
try {
return Value.CompareTo(((Age) obj).Value);
} catch {
return -1;
}
}
}
Answer: C

certification Microsoft   certification 070-536-Csharp   070-536-Csharp   certification 070-536-Csharp

NO.6 You are developing an application to assist the user in conducting electronic surveys. The survey
consists of 25 true-or-false questions.
You need to perform the following tasks:
è Initialize each answer to true.
è Minimize the amount of memory used by each survey.
Which storage option should you choose?
A. BitVector32 answers = new BitVector32(1);
B. BitVector32 answers = new BitVector32(-1);
C. BitArray answers = new BitArray (1);
D. BitArray answers = new BitArray(-1);
Answer: B

Microsoft examen   070-536-Csharp examen   070-536-Csharp

NO.7 You are writing a method that returns an ArrayList named al.
You need to ensure that changes to the ArrayList are performed in a thread-safe manner.
Which code segment should you use?
A. ArrayList al = new ArrayList();
lock (al.SyncRoot)
{
return al;
}
B. ArrayList al = new ArrayList();
lock (al.SyncRoot.GetType())
{
return al;
}
C. ArrayList al = new ArrayList();
Monitor.Enter(al);
Monitor.Exit(al);
return al;
D. ArrayList al = new ArrayList();
ArrayList sync_al = ArrayList.Synchronized(al);
return sync_al;
Answer: D

Microsoft examen   070-536-Csharp   070-536-Csharp examen   070-536-Csharp examen

NO.8 You create a class that is derived from the Installer class. The class you create is used to perform a
component installation.
The component installation overwrites the value of a registry key. You create a method named
GetRegValue that returns the current value of the registry key.
You need to add a code segment that preserves the original value of the registry key if the component is
uninstalled.
Which code segment should you use?
A. private void BeforeUninstallEventHandler(
object sender, InstallEventArgs e) {
e.SavedState.Add("original RegValue", GetRegValue());
}
B. private void CommittedEventHandler(
object sender, InstallEventArgs e) {
e.SavedState.Add("original RegValue", GetRegValue());
}
C. public override void Uninstall(
IDictionary savedState) {
base.Uninstall(savedState);
savedState.Add("original RegValue", GetRegValue());
}
D. protected override void OnBeforeInstall(
IDictionary savedState) {
base.OnBeforeInstall(savedState);
savedState.Add("original RegValue", GetRegValue());
}
Answer: D

certification Microsoft   070-536-Csharp   070-536-Csharp   070-536-Csharp examen   070-536-Csharp   070-536-Csharp

NO.9 You need to write a code segment that will add a string named strConn to the connection string section
of the application configuration file.
Which code segment should you use?
A. Configuration myConfig =
ConfigurationManager.OpenExeConfiguration(
ConfigurationUserLevel.None);
myConfig.ConnectionStrings.ConnectionStrings.Add(
new ConnectionStringSettings("ConnStr1", strConn));
myConfig.Save();
B. Configuration myConfig =
ConfigurationManager.OpenExeConfiguration(
ConfigurationUserLevel.None);
myConfig.ConnectionStrings.ConnectionStrings.Add(
new ConnectionStringSettings("ConnStr1", strConn));
ConfigurationManager.RefreshSection(
"ConnectionStrings");
C. ConfigurationManager.ConnectionStrings.Add(
new ConnectionStringSettings("ConnStr1", strConn));
ConfigurationManager.RefreshSection(
"ConnectionStrings");
D. ConfigurationManager.ConnectionStrings.Add(
new ConnectionStringSettings("ConnStr1", strConn));
Configuration myConfig =
ConfigurationManager.OpenExeConfiguration(
ConfigurationUserLevel.None);
myConfig.Save();
Answer: A

certification Microsoft   070-536-Csharp examen   070-536-Csharp   certification 070-536-Csharp

NO.10 You are developing an application that dynamically loads assemblies from an application directory.
You need to write a code segment that loads an assembly named Assembly1.dll into the current
application domain.
Which code segment should you use?
A. AppDomain domain = AppDomain.CurrentDomain;
string myPath = Path.Combine(domain.BaseDirectory,
"Assembly1.dll");
Assembly asm = Assembly.LoadFrom(myPath);
B. AppDomain domain = AppDomain.CurrentDomain;
string myPath = Path.Combine(domain.BaseDirectory,
"Assembly1.dll");
Assembly asm = Assembly.Load(myPath);
C. AppDomain domain = AppDomain.CurrentDomain;
string myPath = Path.Combine(domain.DynamicDirectory,
"Assembly1.dll");
Assembly asm = AppDomain.CurrentDomain.Load(myPath);
D. AppDomain domain = AppDomain.CurrentDomain;
Assembly asm = domain.GetData("Assembly1.dll");
Answer: A

Microsoft   certification 070-536-Csharp   070-536-Csharp   certification 070-536-Csharp   070-536-Csharp   070-536-Csharp examen

NO.11 You are creating an application that retrieves values from a custom section of the application
configuration file. The custom section uses XML as shown in the following block.
<ProjectSection name="Project1">
<role name="administrator" />
<role name="manager" />
<role name="support" />
</ProjectSection>
You need to write a code segment to define a class named Role. You need to ensure that the Role class is
initialized with values that are retrieved from the custom section of the configuration file.
Which code segment should you use?
A. public class Role : ConfigurationElement {
internal string _ElementName = "name";
[ConfigurationProperty("role")]
public string Name {
get {
return ((string)base["role"]);
}
}
}
B. public class Role : ConfigurationElement {
internal string _ElementName = "role";
[ConfigurationProperty("name", RequiredValue = true)]
public string Name {
get {
return ((string)base["name"]);
}
}
}
C. public class Role : ConfigurationElement {
internal string _ElementName = "role";
private string _name;
[ConfigurationProperty("name")]
public string Name {
get {
return _name;
}
}
}
D. public class Role : ConfigurationElement {
internal string _ElementName = "name";
private string _name;
[ConfigurationProperty("role", RequiredValue = true)]
public string Name {
get {
return _name;
}
}
}
Answer: B

Microsoft   certification 070-536-Csharp   070-536-Csharp   070-536-Csharp examen

NO.12 You need to write a multicast delegate that accepts a DateTime argument.
Which code segment should you use?
A. public delegate int PowerDeviceOn(bool result,
DateTime autoPowerOff);
B. public delegate bool PowerDeviceOn(object sender,
EventArgs autoPowerOff);
C. public delegate void PowerDeviceOn(DateTime autoPowerOff);
D. public delegate bool PowerDeviceOn(DateTime autoPowerOff);
Answer: C

Microsoft examen   070-536-Csharp examen   070-536-Csharp examen   070-536-Csharp

NO.13 You are developing an application to perform mathematical calculations. You develop a class named
CalculationValues. You write a procedure named PerformCalculation that operates on an instance of the
class.
You need to ensure that the user interface of the application continues to respond while calculations are
being performed. You need to write a code segment that calls the PerformCalculation procedure to
achieve this goal.
Which code segment should you use?
A. private void PerformCalculation() {
...
}
private void DoWork(){
CalculationValues myValues = new CalculationValues();
Thread newThread = new Thread(
new ThreadStart(PerformCalculation));
newThread.Start(myValues);
}
B. private void PerformCalculation() {
...
}
private void DoWork(){
CalculationValues myValues = new CalculationValues();
ThreadStart delStart = new
ThreadStart(PerformCalculation);
Thread newThread = new Thread(delStart);
if (newThread.IsAlive) {
newThread.Start(myValues);
}
}
C. private void PerformCalculation (CalculationValues values) {
...
}
private void DoWork(){
CalculationValues myValues = new CalculationValues();
Application.DoEvents();
PerformCalculation(myValues);
Application.DoEvents();
}
D. private void PerformCalculation(object values) {
...
}
private void DoWork(){
CalculationValues myValues = new CalculationValues();
Thread newThread = new Thread(
new ParameterizedThreadStart(PerformCalculation));
newThread.Start(myValues);
}
Answer: D

certification Microsoft   070-536-Csharp   070-536-Csharp

NO.14 You need to write a code segment that will assign the name of the configuration file that the current
application domain uses to a string variable named configFile.
Which two code segments should you use to achieve the goal? (Each correct answer presents a
complete solution. Choose two.)
A. AppDomain domain = AppDomain.CurrentDomain;
configFile =
domain.GetData("APP_CONFIG_FILE").ToString();
B. AppDomain domain = AppDomain.CurrentDomain;
AppDomainSetup setup = domain.SetupInformation;
configFile = setup.ConfigurationFile;
C. AppDomain domain = AppDomain.CurrentDomain;
AppDomainSetup setup = new AppDomainSetup();
configFile = setup.ConfigurationFile;
D. AppDomainSetup setup = new AppDomainSetup();
AppDomain domain = AppDomain.CreateDomain("current",
null, setup);
configFile = setup.ConfigurationFile;
Answer: AB

Microsoft examen   070-536-Csharp   070-536-Csharp   certification 070-536-Csharp   070-536-Csharp

NO.15 You are working on a debug build of an application.
You need to find the line of code that caused an exception to be thrown.
Which property of the Exception class should you use to achieve this goal?
A. Data
B. Message
C. StackTrace
D. Source
Answer: C

certification Microsoft   070-536-Csharp examen   070-536-Csharp   070-536-Csharp examen

NO.16 You write the following code.
public delegate void FaxDocs(object sender, FaxArgs args);
You need to create an event that will invoke FaxDocs.
Which code segment should you use?
A. public static event FaxDocs Fax;
B. public static event Fax FaxDocs;
C. public class FaxArgs : EventArgs {
private string coverPageInfo;
public FaxArgs(string coverInfo) {
this.coverPageInfo = coverPageInfo;
}
public string CoverPageInformation {
get {return this.coverPageInfo;}
}
}
D. public class FaxArgs : EventArgs {
private string coverPageInfo;
public string CoverPageInformation {
get {return this.coverPageInfo;}
}
}
Answer: A

Microsoft   070-536-Csharp examen   070-536-Csharp   070-536-Csharp examen   070-536-Csharp

NO.17 You are creating a class named Temperature. The Temperature class contains a public field named F.
The public field F represents a temperature in degrees Fahrenheit.
You need to ensure that users can specify whether a string representation of a Temperature instance
displays the Fahrenheit value or the equivalent Celsius value.
Which code segment should you use?
A. public class Temperature : IFormattable {
public int F;
public string ToString(string format, IFormatProvider fp) {
if ((format == "F")|| (format == null)) return F.ToString();
if (format == "C") return ((F - 32) / 1.8).ToString();
throw new FormatException("Invalid format string");
}
}
B. public class Temperature : ICustomFormatter {
public int F;
public string Format(string format, object arg,
IFormatProvider fp) {
if (format == "C") return ((F - 32) / 1.8).ToString();
if (format == "F") return arg.ToString();
throw new FormatException("Invalid format string");
}
}
C. public class Temperature {
public int F;
public string ToString(string format, IFormatProvider fp) {
if (format == "C") {
return ((F - 32) / 1.8).ToString();
} else {
return this.ToString();
}
}
}
D. public class Temperature {
public int F;
protected string format;
public override String ToString() {
if (format == "C")
return ((F - 32) / 1.8).ToString();
return F.ToString();
}
}
Answer: A

Microsoft examen   070-536-Csharp examen   070-536-Csharp   certification 070-536-Csharp   certification 070-536-Csharp   070-536-Csharp

NO.18 You are instantiating a variable to store only strings. The variable is named messageStore.
You need to ensure that string messages are read and processed in the order in which they are received.
Which code segment should you use?
A. Stack<string> messageStore = new Stack<string>();
messageStore.Push("This is a test message...");
B. Stack messageStore = new Stack();
messageStore.Push("This is a test message...");
C. Queue messageStore = new Queue();
messageStore.Enqueue("This is a test message...");
D. Queue<string> messageStore = new Queue<string>();
messageStore.Enqueue("This is a test message...");
Answer: D

Microsoft examen   070-536-Csharp   certification 070-536-Csharp   070-536-Csharp   070-536-Csharp examen

NO.19 You need to write a code segment that will create a common language runtime (CLR) unit of isolation
within an application.
Which code segment should you use?
A. AppDomainSetup mySetup =
AppDomain.CurrentDomain.SetupInformation;
mySetup.ShadowCopyFiles = "true";
B. System.Diagnostics.Process myProcess;
myProcess = new System.Diagnostics.Process();
C. AppDomain domain;
domain = AppDomain.CreateDomain("MyDomain");
D. System.ComponentModel.Component myComponent;
myComponent = new System.ComponentModel.Component();
Answer: C

Microsoft   070-536-Csharp examen   070-536-Csharp   070-536-Csharp   certification 070-536-Csharp   070-536-Csharp

NO.20 You are writing a custom dictionary. The custom-dictionary class is named MyDictionary.
You need to ensure that the dictionary is type safe.
Which code segment should you use?
A. class MyDictionary : Dictionary<string, string>
B. class MyDictionary : HashTable
C. class MyDictionary : IDictionary
D. class MyDictionary { ... }
Dictionary<string, string> t =
new Dictionary<string, string>();
MyDictionary dictionary = (MyDictionary)t;
Answer: A

Microsoft examen   070-536-Csharp examen   certification 070-536-Csharp