Microsoft TS: Visual Studio Tools for 2007 MS Office System (VTSO) (70-543) Free Practice Test
Question 1
You create an add-in for Microsoft Office Word 2007 by using Visual Studio Tools for the Microsoft Office System (VSTO). The add-in contains code that customizes the Ribbon user interface (UI). You run the add-in. The add-in does not customize the Ribbon UI and does not display an exception. You need to display the exceptions in the user interface of the add-in when the add-in starts. What should you do?
Correct Answer: A
Question 2
You create a document-level solution for Microsoft Office Word 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO). You create a user control named MyUserControl.
You write the following code segment for your document class. (Line numbers are included for reference only.)
01 private void ThisDocument_Startup(object sender,
System.EventArgs e) {
02 MyUserControl userControl = new MyUserControl();
03 ...
04 }
You need to display userControl in the actions pane.
Which code segment should you insert at line 03?
You write the following code segment for your document class. (Line numbers are included for reference only.)
01 private void ThisDocument_Startup(object sender,
System.EventArgs e) {
02 MyUserControl userControl = new MyUserControl();
03 ...
04 }
You need to display userControl in the actions pane.
Which code segment should you insert at line 03?
Correct Answer: A
Question 3
You are creating an add-in project for Microsoft Office by using Visual Studio Tools for the Microsoft Office System (VSTO). You create a data source named ContactRef from a class in an assembly. The author digitally signs a new version of the assembly. You need to ensure that the add-in can load a new version of the assembly. What should you do?
Correct Answer: D
Question 4
You are creating an add-in for Microsoft Office Word 2007 by using Visual Studio Tools for the Microsoft Office System (VSTO). The add-in contains a custom task pane named MyPane. MyPane is docked by default on the right of the Word application frame. You need to prevent users from changing the default docked position of MyPane. Which code segment should you use?
Correct Answer: C
Question 5
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?
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: A
Question 6
You create an add-in for Microsoft Office Word 2007 by using Visual Studio Tools for the Microsoft Office System (VSTO).
The add-in contains a Ribbon1.xml file that customizes the Ribbon user interface (UI). The Ribbon1.xml file contains the following element.
< dropDown id=" CountryCodes " getItemCount =" GetItemCount "
getItemLabel =" GetItemLabel "/>
You write the following lines of code in the add-in.
private System.Collections.ArrayList countries;
...
countries = n ew System.Collections.ArrayList () ;
countries.Add ("USA") ;
countries.Add ("JPN") ;
countries.Add ("IND"} ;
You need to bind the drop-down list to the countries collection.
Which code segments should you use? (Each correct answer presents part of the solution.
Choose two.)
The add-in contains a Ribbon1.xml file that customizes the Ribbon user interface (UI). The Ribbon1.xml file contains the following element.
< dropDown id=" CountryCodes " getItemCount =" GetItemCount "
getItemLabel =" GetItemLabel "/>
You write the following lines of code in the add-in.
private System.Collections.ArrayList countries;
...
countries = n ew System.Collections.ArrayList () ;
countries.Add ("USA") ;
countries.Add ("JPN") ;
countries.Add ("IND"} ;
You need to bind the drop-down list to the countries collection.
Which code segments should you use? (Each correct answer presents part of the solution.
Choose two.)
Correct Answer: C,D
Question 7
You create a document-level solution for Microsoft Office 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO). You publish the solution to a folder on a network share. You copy a new version of the solution to a subfolder of the folder. You need to ensure that the users are redirected to the new version of the solution when they open the solution from the network share. What should you do?
Correct Answer: A