9
Microsoft 70-580 TS: Windows Mobile 6.5, Application Development 10 Q&A Version 3.0 http://www.selfexamprep.com/70-580.htm

Selfexamprep 70-580 Exam - Windows Mobile 6.5, Application Development

Embed Size (px)

DESCRIPTION

Selfexamprep offers Microsoft 70-580 questions and answers for your Windows Mobile 6.5, Application Development exam preparation. Download 70-580 free sample to check the quality.

Citation preview

Page 1: Selfexamprep 70-580 Exam - Windows Mobile 6.5, Application Development

Microsoft 70-580TS: Windows Mobile 6.5, Application Development

10 Q&A

Version 3.0

http://www.selfexamprep.com/70-580.htm

Page 2: Selfexamprep 70-580 Exam - Windows Mobile 6.5, Application Development

Leading the way in IT testing and certification tools, www.SelfExamPrep.com

- 2 -

Important Note, Please Read Carefully

Other 70-580 productsA) Offline Testing engineUse the offline Testing engine product topractice the questions in an exam environment.

Build a foundation of knowledge which will be useful also after passing the exam.

Latest VersionWe are constantly reviewing our products. New material is added and old material isrevised. Free updates are available for 90 days after the purchase. You should check yourmember zone at 70-580 and update 3-4 days before the scheduled exam date.

Here is the procedure to get the latest version:

1.Go towww.70-580.com2.Click on Log in3.The latest versions of all purchased products are downloadable from here. Just click thelinks.For most updates,it is enough just to print the new questions at the end of the newversion, not the whole document.

FeedbackIf you spot a possible improvement then please let us know. We always interested inimproving product quality.Feedback should be send to [email protected]. You should include the following:Exam number, version, page number, question number, and your login Email.

Our experts will answer your mail promptly.

CopyrightEach iPAD file is a green exe file. if we find out that a particular iPAD Viewer file isbeing distributed by you, 70-580 reserves the right to take legal action against youaccording to the International Copyright Laws.

ExplanationsThis product does not include explanations at the moment. If you are interested inproviding explanations for this exam, please contact [email protected].

Page 3: Selfexamprep 70-580 Exam - Windows Mobile 6.5, Application Development

Leading the way in IT testing and certification tools, www.SelfExamPrep.com

- 3 -

www.70-580.com Q: 1 You are developing a Windows Mobile 6.5 application. Youneed to programmatically write a file named customerlist.txt to the root of the filesystem.Which path should you use?

A. //customerlist.txt

B. \customerlist.txt

C. file://customerlist.txt

D. \device\root\customerlist.txt

Answer: A

www.70-580.com Q: 2 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 toaccomplish 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: A

Page 4: Selfexamprep 70-580 Exam - Windows Mobile 6.5, Application Development

Leading the way in IT testing and certification tools, www.SelfExamPrep.com

- 4 -

www.70-580.com Q: 3 You are developing a Windows Mobile 6.5 application. Youuse Microsoft ADO.NET Synchronization Services to synchronize data with aserver. 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: A

www.70-580.com Q: 4 You are developing a Windows Mobile 6.5 application thatreferences data stored in a Microsoft SQL Server Compact 3.5 database namedcustomers.sdf. You need to ensure that the application creates the database if it doesnot already exist.Which code should you include?

A. If Not File.Exists("customer.sdf") ThenFile.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") ThenDim 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 ThenDim sqlCeEngine As SqlCeEngine = _

Page 5: Selfexamprep 70-580 Exam - Windows Mobile 6.5, Application Development

Leading the way in IT testing and certification tools, www.SelfExamPrep.com

- 5 -

New SqlCeEngine("Data Source='customer.sdf'")sqlCeEngine.CreateDatabase()End If

Answer: A

www.70-580.com Q: 5 You are developing a Windows Mobile 6.5 application. Youneed to dynamically create a Microsoft SQL Server Compact 3.5 database by usingmerge replication.Which System.Data.SqlServerCe.SqlCeReplication method should you call beforeyou synchronize?

A. BeginSynchronize()

B. ReinitializeSubscription()

C. AddSubscription(AddOption.CreateDatabase)

D. AddSubscription(AddOption.ExistingDatabase)

Answer: A

www.70-580.com Q: 6 You are developing a Windows Mobile 6.5 application thatstores 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

Page 6: Selfexamprep 70-580 Exam - Windows Mobile 6.5, Application Development

Leading the way in IT testing and certification tools, www.SelfExamPrep.com

- 6 -

B. Dim adp As SqlCeDataAdapter = New SqlCeDataAdapter(cmd) Do Whileadp.Iterate() 'do work Loop

C. Dim rdr As SqlCeDataReader = command.ExecuteReader() Do While rdr.Read() 'dowork Loop

D. Dim rst As SqlCeResultSet = command.ExecuteResultSet() Do While rst.Results()'do work Loop

Answer: A

www.70-580.com Q: 7 You have a Windows Mobile 6.5 application that stores datain a Microsoft SQL Server Compact 3.5 database. You need to write code thatautomatically determines whether the database is corrupted and repairs thedatabase if it is corrupted.You are using the System.Data.SqlServerCe namespace. Which two membersshould 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: A

www.70-580.com Q: 8 You are developing a Windows Mobile 6.5 application. Theapplication connects to a table in a Microsoft SQL Server Compact 3.5 database.The table contains 20,000 records. You need to iterate through the table records andconcatenate a column value from each record to a single text string. You need toachieve this goal by using the most memory efficient approach.Which method should you use?

Page 7: Selfexamprep 70-580 Exam - Windows Mobile 6.5, Application Development

Leading the way in IT testing and certification tools, www.SelfExamPrep.com

- 7 -

A. System.String.Concat()

B. System.String.Format()

C. System.Text.StringBuilder.Append()

D. System.Data.SqlServerCe.SqlCeResultSet.GetSqlString()

Answer: A

www.70-580.com Q: 9 You are developing a Windows Mobile 6.5 application. Youneed to log exceptions at runtime on your Windows Mobile device. Which methodshould you use?

A. Debug.Print()

B. EventLog.WriteEntry()

C. Trace.WriteLine()

D. Trace.TraceError()

Answer: A

www.70-580.com Q: 10 You are developing a Windows Mobile 6.5 application. Youneed to ensure that the application always closes the FileStream object when anexception occurs.Which code segment should you include?

A. Dim fileStream As System.IO.FileStream = NothingTryfileStream = File.OpenRead("file.txt")ProcessFile()if Not fileStream Is Nothing Then

Page 8: Selfexamprep 70-580 Exam - Windows Mobile 6.5, Application Development

Leading the way in IT testing and certification tools, www.SelfExamPrep.com

- 8 -

fileStream.Close()End IfCatch ex As FileNotFoundExceptionLog(ex)Catch ex As PathTooLongExceptionLog(ex)Catch ex As ArgumentExceptionLog(ex)End Try

B. Dim fileStream As System.IO.FileStream = NothingTryfileStream = File.OpenRead("file.txt")ProcessFile()Catch ex As FileNotFoundExceptionif Not fileStream Is Nothing ThenfileStream.Close()End IfLog(ex)Catch ex As PathTooLongExceptionif Not fileStream Is Nothing ThenfileStream.Close()End IfLog(ex)Catch ex As ArgumentExceptionif Not fileStream Is Nothing ThenfileStream.Close()End IfLog(ex)End Try

C. Dim fileStream As System.IO.FileStream = NothingTryfileStream = File.OpenRead("file.txt")ProcessFile()Catch ex As FileNotFoundExceptionLog(ex)Catch ex As PathTooLongExceptionLog(ex)Catch ex As ArgumentExceptionLog(ex)End Tryif Not fileStream Is Nothing Then

Page 9: Selfexamprep 70-580 Exam - Windows Mobile 6.5, Application Development

Leading the way in IT testing and certification tools, www.SelfExamPrep.com

- 9 -

fileStream.Close()End If

D. Dim fileStream As System.IO.FileStream = NothingTryfileStream = File.OpenRead("file.txt")ProcessFile()Catch ex As FileNotFoundExceptionLog(ex)Catch ex As PathTooLongExceptionLog(ex)Catch ex As ArgumentExceptionLog(ex)Finallyif Not fileStream Is Nothing ThenfileStream.Close()End IfEnd Try

Answer: A