Topic 1, Main QUESTION NO: 1 You work as a Silverlight 4.0 developer for ABC.com. You have recently developed a Silverlight application named ABCApp. While testing ABCApp, you do a right-click within ABCApp that result in the Silverlight standard panel being displayed when the mouse button is released. You do not want this information to be displayed. You notice that the layout root element of ABCApp is set up to manage the RightMouseButtonDown in the right way. What should be done in this scenario? A. You should consider making use of the MouseButtonEventArgs.Handled property, and setting it to FALSE. B. You should consider making use of the MouseButtonEventArgs.Handled property, and setting it to TRUE. C. You should consider making use of the MouseButtonEventArgs.OriginalSource property, and setting it to TRUE. D. You should consider making use of the MouseButtonEventArgs.OriginalSource property, and setting it to FALSE. Answer: B Explanation:
QUESTION NO: 2 You work as a Silverlight 4.0 developer for ABC.com. ABC.com has a file server named ABC-SR13. You have developed a Silverlight application named ABCApp that sends files to ABC-SR13. You have configured ABCApp as a trusted application. You are required the make sure that a user is able to select a file. Which of the following actions should you take? A. You should consider making use of the OpenFileDialog class to achieve your goal. B. You should consider making use of the SaveFileDialog class to achieve your goal. C. You should consider making use of the CopyFileDialog class to achieve your goal. D. You should consider making use of the CloseFileDialog class to achieve your goal.
Answer: A Explanation:
QUESTION NO: 3 You work as a Silverlight 4.0 developer for ABC.com. ABC.com has a file server named ABC-SR13. You have developed a Silverlight application named ABCApp that sends files to ABC-SR13. You have configured ABCApp as a trusted application. You are required the make sure that a user is able to select a file. What should be done in this scenario? Select two or three. A. You should make use of the File.SpecialFolder method. B. You should make use of the Environment.SpecialFolder method. C. You should make use of the File.GetFolderPath method. D. You should make use of the Environment.GetFolderPath method. Answer: B,D Explanation:
QUESTION NO: 4 You work as a Silverlight 4.0 developer for ABC.com. You have developed a Silverlight application, named ABCApp13. You have configured a control within ABCApp13 to show a picture. You notice that the picture is being presented upside down. You decide to make use of XAML code to configure the application to correct the presentation of the picture. Which of the following is TRUE with regards to the required code? (Choose all that apply.) A. Your code should include the CompositeTransform class combined with the Dispatcher property. B. Your code should include the CompositeTransform class combined with the SkewY property. C. Your code should include the CompositeTransform class combined with the Rotation property. D. Your code should include the CompositeTransform class combined with the SkewX property.
Answer: C Explanation:
QUESTION NO: 5 You work as a Silverlight 4.0 developer for ABC.com. There is a Silverlight application named ABCApp7. ABCApp has three VisualStates OK, HalfOK, and NotOK. You want to make sure that the NotOK VisualState changes to the OK VisualState in 7 seconds exactly. Which of the following actions should you take? A. You should create an XAML code segment that makes use of the VisualTransition class, and includes the GeneratedDuration Property. B. You should create an XAML code segment that makes use of the VisualState Class class, and includes the GeneratedDuration Property. C. You should create an XAML code segment that makes use of the VisualStateGroup Class class, and includes the GeneratedDuration Property. D. You should create an XAML code segment that makes use of the VisualStateChangedEventArgs Class class, and includes the GeneratedDuration Property. Answer: A Explanation:
QUESTION NO: 6 You work as a Silverlight 4.0 developer for ABC.com. You are currently creating a Silverlight application named ABCApp7. ABCApp7 has a page, named ABCPage, which includes a text box control named ABCTB. ABCApp7 also includes a ControlTemplate, which has been set up as a Resource. You want to make sure that ABCTB makes use of this resource via XAML code. Which of the following actions should you take?
A. You should consider making use of the segment below: B. You should consider making use of the segment below: C. You should consider making use of the segment below: D. You should consider making use of the segment below: Answer: A Explanation:
QUESTION NO: 7 You work as a Silverlight 4.0 developer for ABC.com. You have created a Silverlight application named ABCApp13. ABCApp13 has a page, named ABCPage, which includes a text box named ABCTB. You have written the segment shown below: TargetType="TextBox">
Which of the following options are TRUE with regards to using this segment? A. It defines an explicit style for ABCTB. B. It defines an implicit style for ABCTB. C. It defines an explicit style for ABCPage. D. It defines an implicit style for ABCPage. Answer: B Explanation: QUESTION NO: 8
XAML exhibit: You work as a Silverlight 4.0 developer for ABC.com. There is a Silverlight application named ABCApp. ABCApp includes the code being displayed in the exhibit. You are now required to add a customer control in relation to the definition in the exhibit. Which of the following actions should you take? A. You should consider writing code that makes use of the BaseOn property. B. You should consider writing code that makes use of the TargetType property. C. You should consider writing code that makes use of the IsSealed property. D. You should consider writing code that makes use of the Setter property. Answer: D Explanation:
QUESTION NO: 9 You work as a Silverlight 4.0 developer for ABC.com. There is an MS Visual Studio 2010/Silverlight 4.0 application named ABCApp21 that should be configured to support three languages. There should be only three resource files, one for each language. ABCApp should choose the proper language with no additional code. Which of the following file extensions should form part of the resource naming solution? A. .res B. .resx C. .xml D. .xaml Answer: B Explanation: QUESTION NO: 10
You work as a Silverlight 4.0 developer for ABC.com.
There is a Silverlight/MS Visual Studio 2010 web site named ABCSite.
English, German, Spanish, Arabic, Swahili and French are used within ABCSite.
ABCSite stack panel control for the user controls must be set up to be able show languages that
are bidirectional.
What should be done in this scenario?
A. You should consider setting the HorizontalAlignment property of the stack panel control. B. You should consider setting the VerticalAlignmentproperty of the stack panel control. C. You should consider setting the FlowDirection property of the stack panel control. D. You should consider setting the Orientation property of the stack panel control. Answer: A Explanation:
QUESTION NO: 11 You work as a Silverlight 4.0 developer for ABC.com. ABC.com has a Silverlight/MS .NET 4.0 application named ABCApp, which includes a DataGrid. You have written the following code:
Which of the following is TRUE with regards to using this code? (Choose all that apply.) A. At design time, the DataGrid is bound to the ABCList property in CRDABCVM. B. At run time, the DataGrid is bound to the ABCList property in CRDABCVM. C. At design time, the DataGrid is bound to the ABCList property in ABCVM D. At run time, the DataGrid is bound to the ABCList property in ABCVM. Answer: A,D Explanation:
QUESTION NO: 12 You work as a Silverlight 4.0 developer for ABC.com. You are creating a Silverlight application named ABCApp32. There is an assembly, named ABCAss.dll, which contains a resource dictionary named ABCLibrary.XAML. The App.XAML file currently contains code that defines an assembly named Assets that includes the Styles.xaml resource dictionary. You need to make sure that the App.xaml file contains the appropriate code to include the ABCLibrary.xaml resource dictionary. Which of the following options represents the required code? A. B. C.
D. Answer: A Explanation:
QUESTION NO: 13 You work as a Silverlight 4.0 developer for ABC.com. ABC.com has a Silverlight application named ABCApp15 that has an Employee class configured. The Employee class has a public property named Hiredate, which is set as nullable. You have configured a DataGrid control, named ABCC, whose second column is bound to Hiredate. You are required to make sure that the column presents the the data by making use of the long date format. Which of the following actions should you take? A. You should consider making use of the binding expression shown below: {Binding Path=Hiredate, UpdateSourceTrigger=\{0:D\}} B. You should consider making use of the binding expression shown below: {Binding Path=Hiredate, StringFormat=\{0:D\}} C. You should consider making use of the binding expression shown below: {Binding Path=Hiredate, RelativeSource=\{0:D\}} D. You should consider making use of the binding expression shown below: {Binding Path=Hiredate, TargetNullValue='hiredate'} Answer: B Explanation: QUESTION NO: 14
You work as a Silverlight 4.0 developer for ABC.com. You are in the process of developing a Silverlight application named ABCApp15. You have configured the use of a class named Employee, which has a public property named Hiredate that. You have also included a TextBox control named ABCC in ABCApp15. You have received instructions to make sure ABCC changes in the appropriate manner when Hiredate is updated, but HireDate should not change when ABCC changes. You have decided to make use of OneWay data binding. Which of the following is the interface that you should apply in the Emploee object as part of your solution? A. INotifyPropertyChanged B. INotifyPropertyChanging C. INotifyDataErrorInfo D. IRevertibleChangeTracking Answer: A Explanation:
QUESTION NO: 15 You work as a Silverlight 4.0 developer for ABC.com. You are in the process of developing a Silverlight application named ABCApp that includes a text box control named ABCC. You have set the DataContext property of ABCC to an object named ABCObject, which is exposed by a datetime property named HireData. You want to make sure that the text ��The hire data of this employee is��, and the the value of the HireData property is displayed in ABCC. You have to define the binding expression. Which of the following is the type of code you should use? A. XAML. B. ASPX. C. XML. D. HTML.
Answer: A Explanation:
QUESTION NO: 16 You work as a Silverlight 4.0 developer for ABC.com. You have created a Silverlight application named ABCApp17, which includes an Employees class and a BoolToVisibilityConverter class. The Employees class has a property IsOnLeave which is of type Boolean. ABCApp17 also includes an XAML page named ABCPage. You have configured data binding between ABCPage and an instance of the Employee class. You have configured ABCPage to include a Button control named ABCButton. You want to make sure that ABCButton only displays if the IsOnLeave property is set to FALSE. You start by configuring a Resource block to include an instance of the BoolToVisibilityConverter class. Which of the following actions should you take NEXT? A. You should consider applying an instance of the BoolToVisibilityConverter class to the binding syntax of the Buttons Visibility property. B. You should consider applying an instance of the BoolToVisibilityConverter class to the binding syntax of the Buttons DataContext property. C. You should consider removing the data binding between ABCPage and the instance of the Employee class. D. You should consider configuring data binding between ABCApp17 and an instance of the BoolToVisibilityConverter class. Answer: B Explanation:
QUESTION NO: 17 You work as a Silverlight 4.0 developer for ABC.com. You have developed a Silverlight application, named ABCApp, which includes a page named ABCPage. A TextBox control named ABCC has been includes in the ABCPage.
You have configured data binding between ABCC and a class that only executes the INotifyPropertyChanged interface. A ValidationException is thrown the Set block of the Name property of the class whenever a user types and enters incorrect data into ABCC. You then write the XAML segment shown below: Which of the following options is a result of this code? A. The validation error will be displayed. B. The validation error will not be displayed. C. The validation error will be deleted. D. The validation error will be disabled. Answer: A Explanation: QUESTION NO: 18 You work as a Silverlight 4.0 developer for ABC.com. You are in the process of creating a Silverlight application named ABCApp. You have configured ABCApp to include a form named ABCForm, which is configured to include a GridControl named ABCGC. You have been instructed to make sure that validation errors are summed up and presented to ABCApp users. Which of the following actions should you take? A. You should consider adding a ListBox control, setting the NotifyOnValidationError to true, and also setting the Mode to TwoWay. B. You should consider adding a ListBox control, setting the NotifyOnValidationError to true, and also setting the Mode to OneTime. C. You should consider adding a ListBox control, setting the NotifyOnValidationError to true, and also setting the Mode to OneWay. D. You should consider adding a ListBox control, setting the OnValidation to true, and also setting the Mode to TwoWay.
Answer: A Explanation:
QUESTION NO: 19 You work as a Silverlight 4.0 developer for ABC.com. You are in the pocess o creating a Silverlight application named ABCApp. You have configured ABCApp to include an Employee class, a public string property BestManager, and a public ObservableCollection property Managers. The Employee class is configured to apply the INotifyPropertyChanged interface. You are preparing to define a user control using a ListBox and TextBox. You want to make sure that the text of the TextBox is ��Nothing is in focus" when nothing is selected in the ListBox. You should also make sure that whenever an item of the ListBox is selected, the Employee Class BestManager property is changed. Furthermore, if the content of the TextBox is changed to a proper member of the Managers collection, then the selected property of the ListBox is changed accordingly. Which of the following actions should you take? A. You should consider writing the code shown below:
B. You should consider writing the code shown below:
C. You should consider writing the code shown below:
D. You should consider writing the code shown below:
Answer: B Explanation:
QUESTION NO: 20 You work as a Silverlight 4.0 developer for ABC.com. You are in the process of creating a Silverlight application named ABCApp. You have configured ABCApp to include a page named ABCPage that includes a control named ABCC. ABCC provides the user of ABCApp to select display options. You have written the code shown below: Which of the following statements are TRUE with regards to the code you have written? (Choose two.) A. It allows the user to choose between the 800x600, and 600x400 window sizes. B. It only allows the user to choose a red, blue, or green background when the the 800x600 window size is selected C. It only allows the user to choose a red, blue, or green background when the the 600x400 window size is selected
D. It allows users to choose between the red, blue, or green backgrounds in any window size. Answer: A,D Explanation:
QUESTION NO: 21 You work as a Silverlight 4.0 developer for ABC.com.
There is a Silverlight application named ABCApp.
ABCApp has a page named ABCPage.
ABCPage has a control named ABCMedia that handles media.
You are preparing to write code to handle the post playing of the media.
Which of the following should be used as part of the code?
A. A MarkerReached Event. B. A MediaEnded Event. C. A MediaFailed Event. D. A CurrentStateChanged Event. Answer: B Explanation:
QUESTION NO: 22 You work as a Silverlight 4.0 developer for ABC.com.
You are creating a Silverlight application named ABCApp15 that includes a page named
ABCPage.
You have configured ABCPage to include a grid control named ABCGC.
You have written the code shown below:
Which of the following options are TRUE with regards to using this code? A. It allows ABCGC to have five columns that are each 20 % of the overall width of the Grid. B. It defines five equally distributed grid column lines. C. It defines four equally spaced grid clolumns. D. It defines the maximum height and width of the Grid. E. It defines the minimum height and width of the Grid. Answer: A,E Explanation:
QUESTION NO: 23 You work as a Silverlight 4.0 developer for ABC.com. You are in the process of designing a Silverlight application named ABCApp.xap. ABC.com has a Microsoft ASP.Net web page, named ABC.aspx. Also, two string variables exist, named xSt and ySt, which are currently handled by ABC.aspx. You want to make sure that ABCApp.xap is hosted by ABC.aspx by using a HTML markup. This HTML markup should also allow for the two string variables to be sent to ABCApp.xap. Which of the following code should be used? A. B.
C.
D.
Answer: A Explanation:
QUESTION NO: 24 You work as a Silverlight 4.0 developer for ABC.com. You are designing a Silverlight application named ABCApp21. ABC.com has a web application, named ABCWeb, which has been configured to host ABCApp21. You have configured an XAML file, named TexABCing.xaml, in the ABCWeb application. The code used for this file is shown in the exhibit below:
ABCWeb also includes a Web page with the name of ABCdefault.aspx. You want to make sure that, rather than the standard Silverlight application-loading page being presented, the TexABCing.xaml should be presented in its place. Furthermore, the progress of the loading process must be shown in percentage in the ABCLoad TextBlock.
Which of the following options describes the code that should be present in the ABCdefault.aspx? A.
B.
C.
D.
Answer: B Explanation:
QUESTION NO: 25 You work as a Silverlight 4.0 developer for ABC.com. You are in the process of creating a Silverlight application named ABCApp3232. ABC.com��s Web site contains a Web page named TestPage.aspx. ABCApp3232 is being hosted by TestPage.aspx. You have configured a WCF service, which is hosted at the URL shown below: http://www.acme.com/ABCService.svc
You have been informed that ABCApp32 should be the only Silverlight application to make use of ABCService.svc. Which of the following actions should you take? A. You should consider publishing a clientaccesspolicy.xml file in the http://www.acme.com root folder. B. You should consider publishing a clientaccesspolicy.xml file in the http://www.ABC.com root folder. C. You should consider publishing a servicepolicy.xml file file in the http://www.acme.com root folder. D. You should consider publishing a servicepolicy.xml file file in the http://www ABC.com root folder. Answer: A Explanation:
QUESTION NO: 26 You work as a Silverlight 4.0 developer for ABC.com. There is a Silverlight application named ABCApp15. ABCApp is hosted in the domain ABC.com. There is a WCF server named AcmeService. AcmeService is hosted in the domain acme.com. When ABCApp15 connects to AcmeService, you are presented with the ��Page not found�� error message. You have been instructed to rectify the problem. You want to start by adding a particular file to the Web host of Silverlight. Which of the following options should you make use of? A. A clientaccesspolicy.xml file. B. A servicepolicy.xml file. C. A clientaccesspolicy.xml resource file. D. A servicepolicy.xml resource file. Answer: A Explanation:
QUESTION NO: 27 You work as a Silverlight 4.0 developer for ABC.com. You are currently in the process of creating a Silverlight application named ABCApp15, which is configured to be hosted by a web application ABCWeb. ABCWeb is accessible via http://www.ABC.com. ABCWeb includes many WCF services. Some of these are available via the http://www.ABC.com/public URL, while others are available via http://www.ABC.com/local URL. ABCApp should be able to use the services through http://www.ABC.com/local. Programmers outside the ABC company should be able to use the services through http://www.ABC.com/public. You want to publish a clientaccesspolicy.xml file. In which of the following locations should you publish the clientaccesspolicy.xml file? A. In the root folder of http://www.ABC.com/public. B. In the web.config file of ABCWeb. C. In the root folder of http://www.ABC.com. D. In the app.config file of ABCApp15. E. In the root folder of http://www.ABC.com/local. Answer: C Explanation:
QUESTION NO: 28 You work as a Silverlight 4.0 developer for ABC.com. You are in the process of creating an application via Silverlight and MS .NET Framework 4. The application is named ABCApp13, and includes a page named ABCPage.
ABCPage has a button control and a TextBox control named ABCBC and ABCTB respectively. You have also defined a class, named ABCClass, within ABCPage. ABCClass facilitates the ICommand interface. ABCBC has ABCClass bound to it as a command. You have received instructions to make sure that ABCTB acquires the ABCTB Text property as a parameter. Which of the following actions should you take? A. You should consider setting the command property of ABCBC to {Binding ElementName=ABCTB, Path=Text} B. You should consider setting the command property of ABCTB to {Binding ElementName=ABCBC, Path=Text} C. You should consider setting the property of ABCPage to {Binding ElementName=ABCTB, Path=Text} D. You should consider setting the property of ABCPage to {Binding ElementName=ABCBC, Path=Text} Answer: A Explanation: QUESTION NO: 29 You work as a Silverlight 4.0 developer for ABC.com. ABC.com has a Silverlight application named ABCApp that includes a page named ABCPage. You have configured a grid control for ABCPage, named ABCLayout. You have received instructions to add a button to ABCLayout��s first column. Furthermore, you are required to meet the requirements shown below: The ToolTip of this button must be set to Help is available. The content of this button must be set to Help. What should be done in this scenario? A.