What will you do?

You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You are creating a Windows Forms application using .NET Framework 3.5. You need to develop a new control for the application. You must ensure that the control inherits the TreeView control by adding a custom node tag and a highlight color.

What will you do?
A . Set the control’s DrawMode property to OwnerDrawText, and then implement a custom DrawNode event handler.
B . Set the control’s DrawMode property to OwnerDrawAll, and then implement a custom DrawNode event handler.
C . Write a code segment in the DrawNode event handler to give the highlight color.
D . Override the OnPaint method.

Answer: A

Which of the following actions will Allen take to accomplish the task?

Allen works as a Software Developer for ManSoft Inc. He develops an application using Visual Studio .NET 2005. Only the employees of the company use the application. Allen wants to ensure that when a request on a page is made by a user the application asks for his authentication.

Which of the following actions will Allen take to accomplish the task? Each correct answer represents a part of the solution. Choose two.
A . Specify User.Identity to authenticate the user.
B . Set the impersonate attribute of the <identity> element to true.
C . Specify the username and password attributes.
D . Set the impersonate attribute of the <identity> element to false.

Answer: B,C

Which of the following statements about satellite assemblies are true?

You work as a Software Developer for ABC Inc. You create a Console application to create multiple satellite assemblies.

Which of the following statements about satellite assemblies are true? Each correct answer represents a complete solution. Choose all that apply.
A . They do not contain any executable code.
B . An application can have only one satellite assembly.
C . The Assembly Linker tool is used to compile .resources files into satellite assemblies.
D . They are used to deploy language-specific resources for an application.

Answer: A,C,D

Which of the following will the CLR check to locate Assembly1?

Georgina works as a Software Developer for BlueChip Inc. She develops an application named App1 using Visual Studio .NET. The company wants her to deploy App1 to a customer’s laptop. Georgina creates an assembly named Assembly1 to be stored in the Global Assembly Cache so that the Common Language Runtime (CLR) can locate and bind Assembly1.

As the application executes, the CLR locates the path of Assembly1 through the codebase setting. But, it finds no <codebase> element in the app.config file, and fails to bind Assembly1. Now, the CLR tries to locate Assembly1 through probing.

Which of the following will the CLR check to locate Assembly1? Each correct answer represents a part of the solution. Choose all that apply.
A . Previously loaded assemblies
B . The application base or root directory
C . The Gacutil.exe tool in the Global Assembly Cache
D . Sub-directories in the application’s root directory
E . The culture attribute of the assembly
F . The correct version of the assembly
G . The assembly’s name

Answer: B,D,E,G

Which of the following methods of the Regex class will you use to accomplish the task?

You work as a Software Developer for ManSoft Inc. The company has several branches worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You create an application that will be used by all the branches of the company. You use the Regex class in the application to validate some strings. You want to search an input string for an occurrence of a regular expression.

Which of the following methods of the Regex class will you use to accomplish the task?
A . Match
B . Matches
C . Equals
D . IsMatch

Answer: A

Which of the following steps will you take to accomplish the task?

You work as a Web Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Web application using .NET Framework 3.5. You want to attach the Visual Studio Debugger to Internet Explorer when the application is running.

Which of the following steps will you take to accomplish the task? Each correct answer represents a part of the solution. Choose all that apply.
A . In the Attach to Process dialog box, select the instance of Internet Explorer (iexplorer.exe) to be attached to the debugger.
B . In Visual Studio, go to the Debug menu and select Start Debugging.
C . In Visual Studio, go to the Debug menu, click Windows, and then click Script Explorer.
D . In Visual Studio, go to the Debug menu and click Attach to Process.

Answer: A,D

What will you do to accomplish this task?

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You have recently finished development of Web services using the .NET Framework. The access control to Web services is part of your accountability. You are currently revealing an existing class as a XML Web service. You are required to ensure that the XML Web service is exclusively accessible to Web service clients within the ABC Inc. domain. To fulfill this requirement you want to change the access modifiers on methods that must be represented as Web methods.

What will you do to accomplish this task?
A . Use the Public access modifier for each Web method.
B . Use the Private access modifier for each Web method.
C . Use the Internal or Friend access modifier for each Web method.
D . Use the Protected access modifier for each Web method.

Answer: A