显示标签为“70-561”的博文。显示所有博文
显示标签为“70-561”的博文。显示所有博文

2014年3月20日星期四

Le dernier examen Microsoft MB7-840 70-565 70-561 70-503 70-662 70-680 70-542 gratuit Télécharger

Le Certificat Microsoft MB7-840 70-565 70-561 70-503 70-662 70-680 70-542 est un passport rêvé par beaucoup de professionnels IT. Le test Microsoft MB7-840 70-565 70-561 70-503 70-662 70-680 70-542 est une bonne examination pour les connaissances et techniques professionnelles. Il demande beaucoup de travaux et efforts pour passer le test Microsoft MB7-840 70-565 70-561 70-503 70-662 70-680 70-542. Pass4Test est le site qui peut vous aider à économiser le temps et l'effort pour réussir le test Microsoft MB7-840 70-565 70-561 70-503 70-662 70-680 70-542 avec plus de possibilités. Si vous êtes intéressé par Pass4Test, vous pouvez télécharger la partie gratuite de Q&A Microsoft MB7-840 70-565 70-561 70-503 70-662 70-680 70-542 pour prendre un essai.

Vous pouvez s'exercer en Internet avec le démo gratuit. Vous allez découvrir que la Q&A de Pass4Test est laquelle le plus complète. C'est ce que vous voulez.

Bien qu'Il y ait plein de talentueux dans cette société, il manque beaucoup de professionnels dans les domaine en cours de développement, l'Industrie IT est l'un de ces domaines. Donc le test Microsoft MB7-840 70-565 70-561 70-503 70-662 70-680 70-542 est un bon l'examination de technique informatique. Pass4Test est un site d'offrir la formation particulière au test Microsoft MB7-840 70-565 70-561 70-503 70-662 70-680 70-542.

Pass4Test est un seul site de provider le guide d'étude Microsoft MB7-840 70-565 70-561 70-503 70-662 70-680 70-542 de qualité. Peut-être que vous voyiez aussi les Q&A Microsoft MB7-840 70-565 70-561 70-503 70-662 70-680 70-542 dans autres sites, mais vous allez découvrir laquelle est plus complète. En fait, Pass4Test est aussi une resource de Q&A pour les autres site web.

Généralement, les experts n'arrêtent pas de rechercher les Q&As plus proches que test Certification. Les documentations offertes par les experts de Pass4Test peuvent vous aider à passer le test Certification. Les réponses de nos Q&As ont une précision 100%. C'est facile à obtenir le Certificat de Microsoft après d'utiliser la Q&A de Pass4Test. Vous aurez une space plus grande dans l'industrie IT.

Code d'Examen: MB7-840
Nom d'Examen: Microsoft (NAV 2009 C/SIDE Introduction)
Questions et réponses: 109 Q&As

Code d'Examen: 70-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: 70-561
Nom d'Examen: Microsoft (TS: MS .NET Framework 3.5, ADO.NET Application Development)
Questions et réponses: 170 Q&As

Code d'Examen: 70-503
Nom d'Examen: Microsoft (TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation)
Questions et réponses: 158 Q&As

Code d'Examen: 70-662
Nom d'Examen: Microsoft (TS: Microsoft Exchange Server)
Questions et réponses: 395 Q&As

Code d'Examen: 70-680
Nom d'Examen: Microsoft (TS:Windows 7,Configuring)
Questions et réponses: 546 Q&As

Code d'Examen: 70-542
Nom d'Examen: Microsoft (MS Office SharePoint Server 2007.Application Development)
Questions et réponses: 68 Q&As

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

NO.1 You have an Exchange Server 2010 Service Pack1 organization. The Organization contains a Hub
Transport server named Server1 and an Edge Transport sever named server2.
All servers are configured to use an internal DNS named DNS1 for host resolution.
You configure an Edge Subscription from Server1 to Server2.
You need to modify the delayed acknowledgment (ACK) setting of Server2.
What should you do?
A. From the Exchange Management Console (EMC), modify the properties of the accepted domain.
B. From the Exchange Management Console (EMC), create a transport rule.
C. From the Exchange Management Shell, run the Set-TransportServer cmdlet.
D. From the Exchange Management Shell, run the Set-ReceiveConnector cmdlet.
E. From the Exchange Management Console (EMC), disable the IP Block List feature.
F. From the Exchange Management Shell, run the Set-TransportAgent cmdlet.
G. From the Exchange Management Shell, run the Set-TransportConfig cmdlet.
H. From the Exchange Management Console (EMC), modify the properties of the remote domain.
Answer: D

Microsoft   70-662   certification 70-662   70-662

NO.2 Your network contains two Active Directory forests named contoso and nwtraders. The contoso forest
contains Exchange 2003 SP2 Servers. The nwtraders forest contains Exchange 2010 SP1 Servers.
You need to move all mailboxes from contoso to nwtraders.
What should you do from nwtraders forest?
A. Create a mail enabled contact for each mailbox in contoso. Run the Move-Mailbox cmdlet.
B. Create a mail enabled user for each mailbox in contoso. Run the New-MoveRequest cmdlet.
C. Create a linked mailbox for each mailbox in contoso. Run Move-Mailbox cmdlet.
D. Create a shared mailbox for each mailbox in contoso. Run the New-MoveRequest cmdlet.
Answer: B

certification Microsoft   70-662 examen   70-662   70-662

NO.3 Your network contains an Active Directory forest named fabrikam.com. The forest contains an
Exchange Server 2010 Service Pack 1 (SP1) organization.
All client computers run Microsoft Office Outlook 2003.A server named Ex1 hosts all public folders. You
upgrade all of the client computers to Outlook 2010.You need to remove all of the public folders from Ex1.
What should you do first.?
A. Modify the offline address book (OAB) distribution settings.
B. Modify the properties of the mailbox database.
C. Delete all of the public folders from the public folder database.
D. Perform an offline defragmentation of the public folder database files.
Answer: A

Microsoft   70-662   70-662   70-662   70-662

NO.4 You have an Exchange Server 2010 Service Pack 1 (SP1) organization. The SMTP domain for
theorganization is contoso.com.
You enable the Exchange anti-spam features. You need to specify a quarantine mailbox for the Exchange
organization.
What should you do?
A. From the Exchange Management Console (EMC), modify the Content Filter agent.
B. Run the Set-ContentFilterConfig cmdlet from the Exchange Management Shell.
C. Run the Set-TransportConfig cmdlet from the Exchange Management Shell.
D. From the Exchange Management Console (EMC), modify the Recipient Filter agent.
E. Run the New-TransportRule cmdlet from the Exchange Management Shell.
F. Run the Set-OrganizationConfig cmdlet from the Exchange Management Shell.
G. From the Exchange Management Console (EMC), modify the Sender Filter agent.
H. Run the New-JournalRule cmdlet from the Exchange Management Shell.
Answer: B

Microsoft examen   certification 70-662   70-662   certification 70-662

NO.5 Your company has two offices. Each office is configured as an Active Directory site. The offices connect
to each other by using a congested WAN link. Each office has a direct, high-speed connection to the
Internet. Each site contains two Exchange Server 2010 Service Pack 1 (SP1) Hub Transport servers. You
need to ensure that email messages sent to the Internet from the Exchange organization are neverrouted
over the WAN link.
What should you do from each site?
A. From the Exchange Management Shell, run the Set-TransportConfig crndlet
B. From the Exchange Management Console (EMC), modify the properties of the accepted domain
C. From the Exchange Management Shell, run the Set-SendConnector cmdlet
D. From the Exchange Management Console (EMC), modify the properties of the Receive connector
E. From the Exchange Management Console (EMC), modify the properties of the Send connector
F. From the Exchange Management Console (EMC), modify the properties of the remote domain
G. From the Exchange Management Shell, run the Set-ForeignConnector cmdlet
H. From the Exchange Management Shell, run the Set-TransportAgent cmdlet
Answer: C

Microsoft   70-662 examen   70-662

NO.6 You have an Exchange Server 2010 Service Pack1 (SP1) organization. The organization contains the
servers configured as shown in the following table
The Mailbox servers are members of a database availability group (DAG) named DAG1.The organization
also has a load balancing solution for Client Access. The load balancing solution has a
virtual IP address that is available by using the mail.contoso.com host name.
You create a new Client Access array that uses the outlook.contoso.com fully qualified name (FQFN)
You need to ensure that all users connect to outlook.contoso.com from Microsoft Outlook 2010.
Which Windows Powershell should you run
A. Set-MailbxDatabaseCopy
B. New-DatabaseAvailabilityGroup
C. Set-MailboxServer
D. Set-ClientAccessServer
E. New-PublicMailboxDatabase
F. New-PublicFolderDatabase
G. Set-ClientAccessArray
H. Add-MailboxDatabaseCopy
I. Set-DatabaseAvailabilityGroup
J. Set-PublicFolderDatabae
K. Add-RoleGroupMember
L. Add-DatabaseAvailabilityGroupServer
M. Set-MailboxDatabase
Answer: M

certification Microsoft   70-662   70-662

NO.7 The network contains an Active Directory domain. The domain contains one site.
You have an Exchange Server 2010 Service Pack 1 (SP1) organization that contains two Client Access
servers, two Hub Transport servers, and users report that they fail to receive email messages from the
Internet.
You review the message tracking logs and discover that the organization failed to receive any email
messages from the Internet during the past hour.
You need to identify what is prevening the hub Transport servers from receiving email messages.
What should run from the Exchange Management Shell?
A. Test-WebServicesConnectivity
B. Test-MailFlow
C. Get-MailboxDatabase
D. Test-MapiConnectivity
E. Test-ReplicationHealth
F. Test-AvailabilityService
G. Get-SenderIdConfig
H. Test-SMTPConnectivity
I. Checkdatabaseseredundancy.ps1
J. Retry-Queue
K. Test-SenderID
L. Get-MailboxDatabaseCopyStatus
M. Test-SystemHealth
N. Test-OutlookWebServices
Answer: H

Microsoft   70-662 examen   70-662

NO.8 You have an Exchange Server 2010 Service Pack1 organization. The Organization contains a
HubTransport server named Server1 and an Edge Transport sever named server2.All servers are
configured to use an internal DNS named DNS1 for host resolution.
You configure an Edge Subscription from Server1 to Server2.You deploy a monitoring server named
ServerApp1. ServerApp1 will send email notification toadministrators.
You need to ensure that ServerApp1 can relay email to the administrators through Server1.
What should you do?
A. From the Exchange Management Shell, run the Set-TransportServer cmdlet.
B. From the Exchange Management Shell, run the Set-TransportConfig cmdlet.
C. From the Exchange Management Console (EMC), create a transport rule.
D. From the Exchange Management Console (EMC), modify the properties of the remote domain.
E. From the Exchange Management Shell, run the Set-receiveConnector cmdlet.
F. From the Exchange Management Console (EMC), disable the IP Block List feature.
G. From the Exchange Management Console (EMC), modify the properties of the accepted domain.
H. From the Exchange Management Shell, run the Set-TransportAgent cmdlet.
Answer: E

certification Microsoft   certification 70-662   70-662   70-662

NO.9 Your network contains an Active Directory domain named contoso.com. All domain controllers run
Windows Server 2008 R2.You have a server named Server1 that runs Windows Server 2008 R2 Service
Pack 1 (SP1).You plan to install the following Exchange Server 2010 SP1 server roles on
Server1:-Mailbox-Client Access-Hub Transport
You need to prepare Served for the planned installation. You import the Server Manager module for
Windows Power Shell.
What should you do next?
A. From Windows PowerShell, run add-windowsfeature net-framework,rsat,adlds.
B. At the command prompt, run servermanagercmd and use the Exchange-Typical.xml template.
C. From Windows PowerShell, run add-windowsfeature net-framework. From the Exchange Server 2010
installation program, select the Automatically install Windows Server roles and features required for
Exchange Server check box.
D. At the command prompt, run servermanagercmd and use the Exchange-Elase.xml template.
E. At the command prompt, run setup /pl. From the Exchange Server 2010 installation program, select the
Automatically install Windows Server roles and features required for Exchange Server check box.
F. From Windows PowerShell, run add-windowsfeature
net-framework,rsat-adds,web-server,web-basic-auth.
Answer: C

Microsoft examen   70-662   70-662

NO.10 You have an Exchange organization. All servers in the organization have Exchange Server 2010
SP1installed.The organization contains a distribution group named Group1.You need to ensure that a
user named User1 can review and approve all messages sent to Group1.What should you do?
A. Modify the Managed By list for Group1.
B. Create a new journal rule and specify user1 as the journal recipient.
C. Modify the mail flow settings for User1.
D. Modify the mail flow settings for Group1.
Answer: D

Microsoft   70-662   70-662 examen

NO.11 You have an Exchange organization. All servers in the organization have Exchange Server 2010 SP1
installed.
You need to ensure that an equipment mailbox can be scheduled for meetings that occur during working
hours only.
What should you do from the properties of the mailbox?
A. Configure the Mailbox Features settings.
B. Configure the Resource Policy settings.
C. Enable the Resource Booking Attendant.
D. Configure the Resource In-Policy Requests settings.
E. Configure the Mail Flow settings.
F. Configure the Account settings.
G. Configure the Resource Out-of-Policy Requests settings.
H. Configure the Resource Information settings.
Answer: B

certification Microsoft   certification 70-662   70-662 examen

NO.12 You have an Exchange Server 2010 Service Pack 1 (SP1) Mailbox server named Server1.You need to
ensure that a copy of each email message modified or deleted by a user named User1 isretained on
Server1.
What should you do?
A. Create a personal tag.
B. Enable single item recovery.
C. Enable message tracking
D. Enable a litigation hold
E. Create a retention policy
F. Create a journal rule
Answer: D

Microsoft   certification 70-662   70-662   70-662   70-662

NO.13 You have an Exchange Server 2010 Service Pack1 (SP1) organization. The organization contains the
servers configured as shown in the following table
The Mailbox servers are members of a database availability group (DAG) named DAG1.
You need to configure DAG1 to use a static DAG IP 192.168.1.100
Which Windows PowerShell cmdlet should you run?
A. Set-MailboxServer
B. Set-DatabaseAvailabilityGroup
C. New-DatabaseAvailabilityGroup
D. Add-MailboxDatabaseCopy
E. Add-DatabaseAvailabilityGroupServer
F. Set-MailboxDatabase
G. Set-ClientAccessServer
H. Set-ClientAccessArray
I. Set-PublicFolderDatabae
J. New-PublicFolderDatabase
K. Add-RoleGroupMember
L. Set-MailbxDatabaseCopy
M. New-MailboxDatabase
Answer: B

Microsoft   70-662   70-662   70-662

NO.14 You have a hosted Exchange organization. All servers in the organization have Exchange Server 2010
SP1 installed.
You need to group a set of users for administrative delegation.
What should you create?
A. A new distribution group
B. A new management role
C. a managed folder mailbox policy
D. a new role assignment
Answer: D

Microsoft examen   70-662   certification 70-662   70-662

NO.15 Your network contains an Active Directory domain. The domain contains one site.
You have an Exchange Server 2010 Service Pack 1 (SP1) organization that contains two Client
Accessservers, two Hub Transport servers, and three Mailbox servers.
The mailbox servers are members of a database availability group (DAG) named DAG1.
You have a mailbox database named DB1.You configure two mailbox database copies of DB1.You verify
that both mailbox database copies have a status of Healthy.
You need to ensure that an administrator is notified when the health status of a mailbox database
copychanges.
What should you run from the Exchange Management Shell?
A. Test-WebServicesConnectivity
B. Test-SystemHealth
C. Test-AvailabilityService
D. checkdatabaseredundancy.ps1
E. Test-ReplicationHealth
F. Test-SmtpConnectivity
G. Get-MailboxDataboxCopyStatus
H. Retry-Queue
I. Test-MailFlow
J. Get-MailboxDatabase
K. Test-SenderId
L. Get-SenderIdConfig
M. Test-MapiConnectivity
N. Test-OutlookWebServices
Answer: D

Microsoft   70-662   certification 70-662   certification 70-662

NO.16 You are a network administrator for a company named Contoso, Ltd. Contoso has an Exchange Server
2010 Service Pack 1 (SP1) organization named contoso.com. The organization contains the following
Exchange servers: -Two Hub Transport servers -Two Edge Transport servers that have Edge
Subscriptions Contoso merges with another company named Fabrikam, Inc. Fabrikam has an Exchange
Server 2010 SP1 organization that uses the fabrikam.com SMTP domain.
All mail exchange (MX) records for fabrikam.com point to the contoso.com Edge Transport servers.
You deploy a solution for Contoso to journal all email messages by using Hub Transport rules.
You need to ensure that all email messages received by fabrikam.com users from the Internet are
journaled by the contoso.com Exchange organization.
What should you do?
A. From the Exchange Management Shell, run the new-accepteddornain -domaintypeinternalrelay
command.
B. From the Exchange Management Shell, run the new-sendconnector -addressspaces fabrikam.com
command.
C. From the Exchange Management Console (EMC), create an accepted domain that uses the
authoritative domain type.
D. From the Exchange Management Shell, run the new-receiveconnector -partner command.
E. From the Exchange Management Shell, run the new-accepteddornain -domaintypeexternalrelay
command.
F. From the Exchange Management Console (EMC), create an accepted domain that uses the internal
relay domain type.
Answer: C

certification Microsoft   certification 70-662   certification 70-662

NO.17 Your network contains an Active Directory domain named contoso.com. You have an Exchange Server
2010 Service Pack 1 (SP1) organization. External users access their email by Outlook Web Apps. On you
need to ensure that the external users can log on to Outlook Web App without specifying a domain name.
Which cmdlet should you use?
A. Set-OrganizationConfig
B. Set-OwaVirtualDirectory
C. New-OrganizationRelationShip
D. New-OwaMailboxPolicy
Answer: B

Microsoft   70-662   70-662   certification 70-662

NO.18 You have an Exchange Server 2010 Service Pack 1 (SP1) organization named fabrikam.com A partner
company has an Exchange Server 2010 Service Pack 1 (SP1) organization named contoso.com. You
plan to implement federated delegation between fabrikam.com and contoso.com. You need to identify
which DNS records must be created to support federated delegation. Which DNS records should you
identify? (Choose all that apply.)
A. Host (A)
B. Mail exchanger (MX)
C. Host information (HINFO)
D. Text (TXT)
E. Mail group (MG)
Answer: AD

certification Microsoft   70-662   70-662

NO.19 You have an Exchange Server 2010 Service Pack 1 (SP1) organization named contoso.com.
All users access their mailbox by using Microsoft Outlook 2010.You need to ensure that the users can
prevent sensitive email messages from being forwarded to otherrecipients.
What should you first?
A. Configure Transport Layer Security (TLS) on all Send connectors
B. Install Active Directory Rights Management Services (AD RMS).
C. Run the Set-TransportConfig cmdlet.
D. Deploy Secure MIME.
Answer: B

Microsoft   70-662 examen   certification 70-662   certification 70-662

NO.20 You have an Exchange organization. All servers in the organization have Exchange Server 2010 SP1
installed.
You need to ensure that each user who sends a meeting request to a room mailbox receives a custom
message from the mailbox.
What should you do from the properties of the mailbox?
A. Configure the Mailbox Features settings.
B. Configure the Mail Flow settings.
C. Enable the Resource Booking Attendant.
D. Configure the Resource Information settings.
E. Configure the Resource In-Policy Requests settings.
F. Configure the Resource Out-of-policy Requests settings.
G. Configure the Account settings.
H. Configure the Resource Policy settings.
Answer: D

Microsoft   70-662   70-662 examen

2013年7月14日星期日

Pass4Test offre une formation sur Microsoft 70-561 matériaux examen

Le test certification Microsoft 70-561 est une bonne preuve de connaissances professionnelles et la techniques. Dans l'Industrie IT, beaucoiup de humains ressource font l'accent de lesquels certificats que les volontiers obtiennent. C'est clairement que le certificat Microsoft 70-561 puisse augmenter la compétition dans ce marché.


Il demande les connaissances professionnelles pour passer le test Microsoft 70-561. Si vous manquez encore ces connaissances, vous avez besoin de Pass4Test comme une resourece de ces connaissances essentielles pour le test. Pass4Test et ses experts peuvent vous aider à renfocer ces connaissances et vous offrir les Q&As. Pass4Test fais tous efforts à vous aider à se renforcer les connaissances professionnelles et à passer le test. Choisir le Pass4Test peut non seulement à obtenir le Certificat Microsoft 70-561, et aussi vous offrir le service de la mise à jour gratuite pendant un an. Si malheureusement, vous ratez le test, votre argent sera 100% rendu.


Code d'Examen: 70-561

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

Questions et réponses: 170 Q&As

Les produits de Pass4Test sont recherchés par les experts de Pass4Test qui se profitent de leurs connaissances et leurs expériences dans l'Idustrie IT. Si vous allez participer le test Microsoft 70-561, vous devez choisir Pass4Test. La Q&A de Pass4Test peut vous aider à préparer mieux le test Microsoft 70-561 avec sa grande couiverture des questions. En face d'un test très difficile, vous pouvez obtenir le Certificat Microsoft 70-561 sans aucune doute.


70-561 est un test de Microsoft Certification, donc réussir 70-561 est le premier pas à mettre le pied sur la Certifiction Microsoft. Ça peut expliquer certiainement pourquoi le test Microsoft 70-561 devient de plus en plus chaud, et il y a de plus en plus de gens qui veulent participer le test 70-561. Au contraire, il n'y a que pas beaucoup de gens qui pourrait réussir ce test. Dans ce cas, si vous vous réfléchissez étudier avec une bonne Q&A?


Est-ce que vous vous souciez encore de réussir le test Microsoft 70-561? Est-ce que vous attendez plus le guide de formation plus nouveaux? Le guide de formation vient de lancer par Pass4Test peut vous donner la solution. Vous pouvez télécharger la partie de guide gratuite pour prendre un essai, et vous allez découvrir que le test n'est pas aussi dur que l'imaginer. Pass4Test vous permet à réussir 100% le test. Votre argent sera tout rendu si vous échouez le test.


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.


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


NO.1 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   70-561   70-561 examen

NO.2 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 examen   70-561 examen   70-561

NO.3 }
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   70-561 examen   70-561   certification 70-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

certification Microsoft   70-561 examen   70-561   70-561   70-561 examen
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

Microsoft   70-561   70-561 examen
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   70-561   70-561   70-561 examen   70-561

NO.4 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   70-561   certification 70-561

NO.5 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 examen   70-561   certification 70-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.
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   70-561   70-561   70-561 examen

NO.7 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

certification Microsoft   70-561   70-561

NO.8 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

Microsoft examen   70-561   70-561   70-561 examen

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.
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   70-561 examen   70-561

NO.10 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

certification Microsoft   certification 70-561   70-561   70-561   certification 70-561

NO.11 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   70-561   70-561   70-561 examen   70-561 examen

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.
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

Microsoft examen   certification 70-561   certification 70-561   70-561

NO.13 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 examen   70-561   70-561 examen   70-561 examen

NO.14 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.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.
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

certification Microsoft   70-561   certification 70-561   70-561   70-561 examen   certification 70-561

NO.16 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

certification Microsoft   70-561 examen   70-561   70-561

NO.17 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   70-561   70-561 examen   certification 70-561   70-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 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   70-561 examen   70-561   70-561 examen

NO.19 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

Microsoft   70-561 examen   70-561 examen   70-561 examen   70-561 examen

NO.20 {

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.
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

Microsoft   70-561   70-561   certification 70-561   70-561

NO.22 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

certification Microsoft   70-561 examen   70-561   70-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.
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   70-561   70-561   certification 70-561

NO.24 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

Microsoft   70-561   certification 70-561   certification 70-561

NO.25 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   70-561 examen   certification 70-561   70-561

NO.26 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   70-561 examen   70-561 examen

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.
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

Microsoft   70-561   certification 70-561   70-561   70-561

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 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

certification Microsoft   70-561   70-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 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 examen   certification 70-561   70-561

Pass4Test a de formations plus nouvelles pour le test Microsoft 70-561. 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 70-561 à tous les candidats qui nous choisissent. L'importance de Certification Microsoft 70-561 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.