Microsoft TS: Windows Applications Development with Microsoft .NET Framework 4 Sample Questions:
1. You are developing a Windows Presentation Foundation (WPF) application. You add several TextBox controls within a StackPanel control. You next add several Image controls within a second StackPanel control.
During testing, you discover that some of the textboxes do not appear in the proper layout.
You need to quickly search for the textboxes and view their properties to identify which ones are incorrect.
What should you do?
A) Open the QuickWatch window and select the Text Visualizer.
B) Open the Watch window and select the XML Visualizer.
C) Open the Locals window and select the WPF Tree Visualizer.
D) Open the Autos window and select the HTML Visualizer.
2. You are developing a Windows Presentation Foundation (WPF) application.
You need to ensure that the application includes a container control that supports logical
scrolling by default.
Which control should you select?
A) stackPanel
B) Canvas
C) WrapPanel
D) Grid
3. You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application named MyApp.exe. You use Microsoft Windows Installer to package the application.
You create an icon file named Application.ico.
You need to associate Application.ico with MyApp.exe when MyApp.exe is deployed.
What should you do?
A) Set the AddRemoveProgramsIcon property to Application.ico.
B) Rename the icon file to MyApp.exe.ico.
C) Use the File System Editor tool to set the Icon property to Application.ico.
D) Use the File Types Editor tool.
4. You are developing a Windows Presentation Foundation (WPF) application.
This application will be deployed to 20 countries. However, it will only be localized to some of those countries' regional dialects.
The localization will be performed by using resource files. However, no culture will be specified in the project file with the UlCulture tags.
You must ensure that the application defaults to English for those regions that are not localized.
What should you do?
A) Add the following code segment to the AssemblyInfo file. [assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallfcaclcLocation.Satellite) ]
B) Add the following code segment to the Application constructor. Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
C) Add the following code segment to the Application constructor. Thread.CurrentThread.CurrentUICulture= new CultureInfo("en-US");
D) Add the following code segment to the AssemblyInfo file. [assembly: NeutralResourcesLanguage("en-OS", DltimateResourceFallbackLocation.MainAssembly) ]
5. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a
Windows Presentation Foundation (WPF) application.
You suspect that the data returned from the database is incorrect.
You need to capture interactions to the database by using IntelliTrace.
Which event type should you capture?
A) ADO.NET
B) DataBinding
C) Tracing
D) ServiceModel
Solutions:
| Question # 1 Answer: C | Question # 2 Answer: A | Question # 3 Answer: C | Question # 4 Answer: A | Question # 5 Answer: A |
We're so confident of our products that we provide no hassle product exchange.


By Hunter

