Microsoft 70-543 Actual Free Exam Questions & Community Discussion

  • Exam Code/Number: 70-543
  • Exam Name/Title: TS: Visual Studio Tools for 2007 MS Office System (VTSO)
  • Certification Provider: Microsoft
  • Corresponding Certification: MCTS
  • Exam Questions: 120
  • Updated On: May 28, 2026
You are creating an add-in for Microsoft Office Outlook by using Visual Studio Tools for the Microsoft Office System (VSTO). You write the following lines of code. (Line numbers are included for reference only.)
01 Private folders As List(Of Outlook.MAPIFolder)
02 Private explorer As Outlook.Explorer
03
04 Public Sub CreateCollection()
05 explorer = Application.ActiveExplorer()
06 folders = New List(Of Outlook.MAPIFolder)
07 ProcessFolders(explorer.CurrentFolder)
08 End Sub
09
10 Public Sub ProcessFolders(ByVal folder As Outlook.MAPIFolder)
11 ...
12 End Sub
You need to ensure that the folders collection includes all the folders and subfolders within the selected Outlook folder.
Which code segment should you insert at line 11?
Correct Answer: D Vote an answer
You are creating an add-in for Microsoft Office Excel by using Visual Studio Tools for the Microsoft Office System (VSTO). The add-in contains a server document named doc. The add-in also contains a variable named filepath that will store the location of an XML file. You need to load the XML file into the document cache. Which code segment should you use?
Correct Answer: C Vote an answer
You are creating a customized Microsoft Office Excel workbook by using the Visual Studio Tools for the Microsoft Office System (VSTO). The data in the Excel workbook will be used to update a Microsoft Office Word report named MyDoc.doc. The MyDoc.doc report is located in the C:\ folder. You need to retrieve a Document object that sends updates from the Excel workbook to the Mydoc.doc report. Which code segment should you use?
Correct Answer: B Vote an answer
You create a document-level solution for Microsoft Office Excel 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO). The Excel workbook contains a worksheet object named Sheet1 that contains data in the range A1 through A5.
You write the following lines of code for the Sheet1 object. (Line numbers are included for reference only.)
01 Word.Application app = new Word.Application ();
02 Word.Document doc;
03 ...
04 object index = 1;
05 Word.Bookmark bMark = doc.Bookmarks.get_Item (
ref index);
06 ...
You need to insert the data from the range A1 through A5 into a Microsoft Office Word document after bMark. Your solution must retain the sequence of the data that is inserted.
Which code segment should you insert at line 06?
Correct Answer: D Vote an answer
You are creating an application by using Visual Studio Tools for the Microsoft Office System (VSTO). The application contains the following objects:
a DataSet object named OrderData
a ServerDocument object named sd1
You write the following lines of code. (Line numbers are included for reference only.)
01 System.Text.StringBuilder stringIn =
02 new System.Text.StringBuilder ();
03 System.IO.StringWriter stringOut =
04 new System.IO.StringWriter ( stringIn );
05 ...
06 sd1.Save();
You need to store the contents of the OrderData object in the document cache for offline use.
Which code segment should you insert at line 05?
Correct Answer: B Vote an answer
You create an add-in for Microsoft Office Word by using Visual Studio Tools for the Microsoft Office System (VSTO). You deploy the add-in to a folder on a network share. The folder hosts 20 assemblies. All the assemblies are signed and contain the same digital signature. The add-in runs from a local computer. When the add-in is accessed from a network share by using th e same computer, a security exception is raised. You need to ensure that the add-in can run from the network share. You must achieve this goal without elevating permissions for the other assemblies. What should you do?
Correct Answer: D Vote an answer
You are creating an add-in for Microsoft Office Excel by using Visual Studio Tools for the Microsoft Office System (VSTO). The add-in fills in sales forecast data for each month in an Excel sheet. You write the following method. (Line numbers are included for reference only.)
01 public void FillMonths () {
02 Excel.Application app = Globals.ThisAddIn.Application ;
03 Excel.Worksheet ws = app.ActiveSheet as Excel.Worksheet ;
04 ...
05 }
You need to insert the names of the months into the cells in the range A1 through A12.
Which code segment should you insert at line 04?
Correct Answer: C Vote an answer
You are creating a document-level solution for Microsoft Office Word 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO). The solution document has a table that contains data. The table has two columns and two rows.
You write the following lines of code. (Line numbers are included for reference only.)
01 Excel.Workbook book;
02 Excel.Worksheet sheet = book.Worksheets [1] as Excel.Worksheet ;
03 Word.Table tbl = this.Tables [1];
04 ...
You need to insert the data in the cell range A1 through B2 of the first worksheet in the Excel workbook.
Which code segment should you insert at line 04?
Correct Answer: A Vote an answer
0
0
0
10