Free Cheat-test Samples and Demo Questions Download
Adobe exams Adobe
Apple exams Apple
Avaya exams Avaya
Check Point exams Check Point
Cisco exams Cisco
Citrix exams Citrix
CIW exams CIW
CompTIA exams CompTIA
CWNP exams CWNP
EC-Council exams EC-Council
EMC exams EMC
Exin exams Exin
Fortinet exams Fortinet
GIAC exams GIAC
Hitachi exams Hitachi
HP exams HP
IBM exams IBM
Isaca exams Isaca
ISC exams ISC
ISEB exams ISEB
Juniper exams Juniper
LPI exams LPI
McAfee exams McAfee
Microsoft exams Microsoft
Oracle exams Oracle
PMI exams PMI
Riverbed exams Riverbed
SNIA exams SAP
Sun exams SAS
Symantec exams Symantec
VMware exams VMware
All certification exams

Microsoft 70-580 Exam - Cheat-Test.com

Free 70-580 Sample Questions:

1. You are developing a Windows Mobile 6.5 application.
You need to programmatically write a file named customerlist.txt to the root of the file system.
Which path should you use?
A. /customerlist.txt
B. \customerlist.txt
C. file://customerlist.txt
D. \device\root\customerlist.txt
Answer: B

2. You are developing a Windows Mobile 6.5 applica tion.
You need to programmatically write a file named customerlist.txt to the root of the file system.
Which path should you use?
A. //customerlist.txt
B. \customerlist.txt
C. file://customerlist.txt
D. \device\root\customerlist.txt
Answer: B

3. You are developing a Windows Mobile 6.5 application.
You have a DataSet object in memory.
You need to save the DataSet object to the file system as an XML file. You need to accomplish this by using the fewest lines of code.
Which method should you use?
A. System.IO.StreamWriter.Write()
B. System.Xml.XmlDocument.Save()
C. System.Data.DataSet.WriteXml()
D. System.Data.DataTable.WriteXml()
Answer: C

4. You are developing a Windows Mobile 6.5 application.
You use Microsoft ADO.NET Synchronization Services to synchron ize data with a server.
You need to synchronize pending changes from the server to the client.
Which Microsoft.Synchronization method should you call?
A. Data.SqlServerCe.SqlCeClientSyncProvider.GetChanges()
B. Data.SqlServerCe.SqlCeClientSyncProvider.AcceptChanges()
C. Data.SqlServerCe.SqlCeClientSyncProvider.GetTableReceivedAnchor()
D. SyncAgent.Synchronize()
Answer: D

5. You are developing a Windows Mobile 6.5 application that references data stored in a Microsoft SQL Server Compact 3.5 database named customers.sdf.
You need to ensure that the application creates the database if it does not already exist.
Which code should you include?
A. if (!File.Exists("customer.sdf")) {
File.Create("customer.sdf");
}
B. var fileInfo = new FileInfo("customer.sdf");
if(fileInfo.Length == 0) {
File.Create("customer.sdf");
}
C. if(!File.Exists("customer.sdf")) {
var sqlCeEngine = new SqlCeEngine("Data Source='customer.sdf'");
sqlCeEngine.CreateDatabase();
}
D. var fileInfo = new FileInfo("customer.sdf");
if (fileInfo.Length == 0) {
var sqlCeEngine = new SqlCeEngine("Data Source='customer.sdf'");
sqlCeEngine.CreateDatabase();
}
Answer: C

6. You are developing a Windows Mobile 6.5 application that references data stored in a Microsoft SQL Server Compact 3.5 database named customers.sdf.
You need to ensure that the application creates the database if it does not already exist.
Which code should you include?
A. If Not File.Exists("customer.sdf") Then
File.Create("customer.sdf")
End If
B. Dim fileInfo As FileInfo = New FileInfo ("customer.sdf")
if fileInfo.Length = 0 Then
File.Create("customer.sdf")
End If
C. If Not File.Exists("customer.sdf") Then
Dim sqlCeEngine As SqlCeEngine = _
New SqlCeEngine("Data Source='customer.sdf'")
sqlCeEngine.CreateDatabase()
End If
D. Dim fileInfo As FileInfo = New FileInfo("customer.sdf")
if fileInfo.Length = 0 Then
Dim sqlCeEngine As SqlCeEngine = _
New SqlCeEngine("Data Source='customer.sdf'")
sqlCeEngine.CreateDatabase()
End If
Answer: C

7. You are developing a Windows Mobile 6.5 application.
You need to dynamically create a Microsoft SQL Server Compact 3.5 database by using merge replication.
Which System.Data.SqlServerCe.SqlCeReplication method should you call before you synchronize?
A. BeginSynchronize()
B. ReinitializeSubscription()
C. AddSubscription(AddOption.CreateDatabase)
D. AddSubscription(AddOption.ExistingDatabase)
Answer: C

8. You are developing a Windows Mobile 6.5 application that stores data in a Microsoft SQL Server Compact 3.5 database.
You write the following code segment to select data from a table.
string query = "SELECT * FROM ORDERS";
SqlCeConnection conn = new SqlCeConnection(connectionString);
SqlCeCommand command = new SqlCeCommand(query, conn);
conn.Open();
You need to iterate through the records in the result set.
Which code segment should you use?
A. SqlCeCommand cmd = command.ExecuteResultSet();
while (cmd.Read())
{ // do work }
B. SqlCeDataAdapter adp = new SqlCeDataAdapter(cmd);
while (adp.Iterate())
{ // do work }
C. SqlCeDataReader rdr = command.ExecuteReader();
while (rdr.Read())
{ // do work }
D. SqlCeResultSet rst = command.ExecuteResultSet();
while (rst.Results())
{ // do work }
Answer: C

9. You are developing a Windows Mobile 6.5 application that stores data in a Microsoft SQL Server Compact 3.5 database.
You write the following code segment to select data from a table.
Dim query As String = "SELECT * FROM ORDERS"
Dim conn As SqlCeConnection = _
New SqlCeConnection(connectionString)
Dim command As SqlCeCommand = New SqlCeCommand(query, conn)
conn.Open()
You need to iterate through the records in the result set.
Which code segment should you use?
A. Dim cmd As SqlCeCommand = command.ExecuteResultSet()
Do While cmd.Read()
'do work
Loop
B. Dim adp As SqlCeDataAdapter = New SqlCeDataAdapter(cmd)
Do While adp.Iterate()
'do work
Loop
C. Dim rdr As SqlCeDataReader = command.ExecuteReader()
Do While rdr.Read()
'do work
Loop
D. Dim rst As SqlCeResultSet = command.ExecuteResultSet()
Do While rst.Results()
'do work
Loop
Answer: C

10. You have a Windows Mobile 6.5 application that stores data in a Microsoft SQL Server Compact 3.5 database.
You need to write code that automatically determines whether the database is corrupted and repairs the database if it is corrupted.
You are using the System.Data.SqlServerCe namespace.
Which two members should you use? (Each correct answer presents part of the solution. Choose two.)
A. SqlCeEngine.Repair()
B. SqlCeEngine.RepairOption
C. SqlCeReplication.Validate()
D. SqlCeEngine.Verify()
Answer: AD


© 2014 Cheat-Test.com, All Rights Reserved