分类:
2011-01-25 10:23:26
MCTS考试题库由我们专业IT认证讲师及产品专家精心打造,包括了当前最新的全真考试试题,全部附有正确答案。题库的覆盖率在96%以上,并且随着微软认证厂商对考题做出的变化而及时更新,答案由多位专业资深讲师原版破解得出,正确率100%,最终确保考生能一次通过考试!
部分题库分享如下:
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 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
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 synchronize 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
如需下载更多完整的题库,可登陆!