Black Friday Sale Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

You work as a Software Developer for ABC Inc. You create a Web service application named MyWebService using Visual Studio .NET 2005. You use the MyWebService to create a SOAP message. You are not sure whether or not the SOAP message format is correct. Therefore, you decide to use the AsynchronousOperationException class. This class is used to throw an exception when the format of a SOAP message is invalid. Which of the following code segments will you use to accomplish the task?

Each correct answer represents a part of the solution. Choose all that apply.

A.

public class MyException : AsynchronousOperationException

{

//Code here

}

B.

public class AsynchronousOperationException : AsynchronousOperationException

{

//Code here

}

C.

public class AsynchronousOperationException : Exception

{

//Code here

}

D.

public class MyException : Exception

{

//Code here

}

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are deploying a class library using the .NET Framework. Portions of your code need to access system environment variables. You need to force a runtime security exception only when the callers that are higher in the call stack do not have necessary permissions to access the resources. Which of the following methods will you use to accomplish the task?

A.

PermitOnly()

B.

Demand()

C.

Assert()

D.

Deny()

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2008 as its application development platform. You create an ASP.NET Web application using the .NET Framework 3.5. The application contains a data-bound control. The user interface (UI) for modifying data from a LinqDataSource control is typically provided through the data-bound control. You are required to perform automatic data modifications. Which of the following conditions are required to enable automatic data modifications?

Each correct answer represents a part of the solution. Choose all that apply.

A.

The class that is assigned to the ContextTypeName property must derive from DataContext .

B.

The Where property cannot be assigned a value.

C.

The GroupBy property cannot be assigned a value.

D.

The Select property cannot be assigned a value.

E.

The property that is assigned to the TableName property must derive from Table(TEntity).

Sandra works as a Software Developer for ABC Inc. She develops a Windows form named MyForm1. She wants to add a Button control named button1 to a Panel control named panel1 at runtime. Therefore, she writes the following code:

1. private void MyForm1_Load(object sender, EventArgs e)

2. {

3. Button button1 = new Button();

4. button1.Location = new Point(50,50);

5. button1.Size = new Size(100, 30);

6. button1.Text = "My First button";

7. Panel panel1 = new Panel();

8. panel1.Location = new Point(10, 100);

9. // Write code here

10. // Write code here

11. }

Which of the following code statements will Sandra write in line numbers 9 and 10? (Line numbers are for reference only.)

Each correct answer represents a part of the solution. Choose two.

A.

She will write the following code statement in line number 9:

Form1.Controls.Add(button1);

B.

She will write the following code statement in line number 9:

this.Controls.Add(button1);

C.

She will write the following code statement in line number 9:

this.Controls.Add(panel1);

D.

She will write the following code statement in line number 10:

button1.Controls.Add(panel1);

E.

She will write the following code statement in line number 10:

panel1.Controls.Add(button1);

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. You create an ASP.NET application by using the .NET Framework 3.5. You need to implement a means to monitor Service Level Agreement (SLA) compliance in the application. You are required to identify a method to enable perfect calculation of the time that all requests take to process.

What will you do?

A.

Create and register a custom HttpModule.

B.

Use the IRequiresSessionState interface.

C.

Use the WebHttpBinding class.

D.

Create and register a custom HttpHandler.

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. You need to represent a strongly typed lambda expression as a data structure in the form of an expression tree. Which of the following classes will you use to accomplish the task?

A.

MethodCallExpression

B.

Expression(TDelegate)

C.

Expression

D.

LambdaExpression

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. You are creating an application that will perform statistics calculations using .NET Framework. You want to ensure that the application is capable of performing multiple calculations concurrently. What will you do to accomplish the task?

A.

Set the Process.GetCurrentProcess().BasePriority property to High.

B.

Set the ProcessorAffinity property of the ProcessThread class object.

C.

For every calculation, call the QueueUserWorkItem method of the ThreadPool class.

D.

Set the IdealProcessor property of the ProcessThread class object.

Allen works as a Software Developer for Mansoft Inc. He creates a Console application. He writes the following line of code in the application:

String str="ABC's World";

According to the given line of code, which of the following are legal statements?

Each correct answer represents a part of the solution. Choose all that apply.

A.

String st1="Hello" + str;

B.

int j=str.Length;

C.

str[2]="y";

D.

str=str+10;

E.

str=5;

You work as an Enterprise Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Windows Forms application using .NET Framework 3.5. You want to notify the users when a print job has finished. Which of the following events will you use to accomplish the task?

A.

PrintDocument.PrintPage

B.

PrintDocument.EndPrint

C.

PrintDocument.QueryPageSettings

D.

PrintDocument.BeginPrint

Martin works as a Software Developer for BlueWell Inc. He creates an ASP.NET application, named App1. During beta testing of App1, he ensures that the actual ASP.NET error messages are displayed whenever errors are encountered. He also ensures that both developers and beta testers see the actual text of the error messages.

During beta testing of App1, Martin performs beta testing of other applications also on the same test server. All the other applications display the ASP.NET error messages. After completing beta testing, Martin promotes the beta test server to a production server. He wants all the applications to display a single, user-friendly error message. Martin also wants to configure App1 and the production server to meet these goals. He removes the customErrors element from the Web.config file for App1. What else will he do to accomplish the required task with minimum administrative effort?

A.

In the Web.config file for App1, add the following element:

B.

In the App1.config file, add the following element:

C.

In the App1.config file, add the following element:

D.

In the Machine.config file, add the following element:

E.

In the Machine.config file, add the following element:

F.

In the Web.config file for App1, add the following element: