Pass the GIAC GIAC Certification GSSP-NET-CSHARP Questions and answers with CertsForce

Viewing page 13 out of 15 pages
Viewing questions 121-130 out of questions
Questions # 121:

You work as a Web Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create an ASP.NET Web application using the .NET Framework. The application is installed in a Network Load Balancing cluster. You are evaluating a bug statement. When a failure takes place in the Web application, the client occasionally gets an error page as anticipated. At other times, the client gets an exception stack with the error message, which is not anticipated. You are required to find out the configuration setting that causes the unanticipated error.

Which of the following configuration settings causes the unanticipated error?

Options:

A.


B.


C.


D.


Expert Solution
Questions # 122:

Allen works as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. He creates an application using .NET Framework. He wants to encrypt all his e-mails that he sends to anyone. Which of the following will he use to accomplish the task?

Options:

A.

PPP


B.

FTP


C.

PPTP


D.

PGP


Expert Solution
Questions # 123:

What is the main purpose of a try-catch block?

Options:

A.

To obtain and use resources that are being caught.


B.

To signal the occurrence of an exception during the program execution.


C.

To catch and handle an exception generated by an executable code.


D.

To ensure that the necessary cleanup of external resources is done immediately.


Expert Solution
Questions # 124:

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create a Web service using the .NET Framework 2.0. You call a method in the Web service. The following exception is thrown in the Web service: client.System.Web.Services.Protocols.SoapException: Server was unable to process request. System.NullReferenceException: Object reference not set to an instance of an object. You find out that it is the following line of code that throws the exception: if (Session ["StoredValue"] == null)

You must ensure that the method runs without throwing any exception. What will you do to accomplish this task?

Options:

A.

Modify the WebMethod attribute in the Web service so that the EnableSession property is set to

true.


B.

Add the following to the System.Web section of the Web.config file:


C.

Add the following to the System.Web section of the Web.config file:

<add name="Session" type="System.Web.SessionState.SessionStateModule" />


D.

In the client code for the Web service's proxy object, assign a new instance of the

System.Net.CookieContainer object to the CookieContainer property.


E.

In the client code for the Web service's proxy object, assign a new instance of the

System.Net.CookieContainer object to the EnableSession property.


Expert Solution
Questions # 125:

Andrew works as a Software Developer for Mansoft Inc. The company's network has a Web server that hosts the company's Web site. Andrew wants to enhance the security of the Web site by implementing Secure Sockets Layer (SSL). Which of the following types of encryption does SSL use?

Each correct answer represents a complete solution. Choose two.

Options:

A.

Symmetric


B.

Secret


C.

IPSec


D.

Asymmetric


Expert Solution
Questions # 126:

John works as a Software Developer for DawnStar Inc. He creates a class, named MyClass1. He wants to generate a key pair that he will use to give the compiled assembly a strong name. Which of the following tools will he use to accomplish the task?

Options:

A.

Installutil.exe


B.

Gacutil.exe


C.

Sn.exe


D.

Al.exe


Expert Solution
Questions # 127:

John works as a Web Developer for Bitsoft Inc. He creates an ASP.NET application, named MyApp1, by using Visual Studio .Net for a University Web site. Students will use MyApp1 to view their term end result. MyApp1 contains an ASP.NET page named, named Page1. Page1 contains a TextBox control, named txtEnrolmentNo, and two Button controls, named btnSubmit and btnCancel respectively.

John wants that if a user tries to submit the page by clicking the Submit button without entering his enrolment the word "Required" appears next to txtEnrolmentNo. However, when a user clicks the Cancel button he is redirected to a new page, named PageCancel.aspx. To accomplish this he adds a RequiredFieldValidator control to the page and sets its ControlToValidate and ErrorMessage properties to txtEnrolmentNo and "Required" respectively. However, when he executes the application he finds that the validation check is also performed on clicking the Cancel button. What is the most likely cause of the issue?

Options:

A.

The CauseValidation property of btnSubmit is not set to True.


B.

The CauseValidation property of btnCancel is not set to True.


C.

The CauseValidation property of btnSubmit is not set to False.


D.

The CauseValidation property of btnCancel is not set to False.


Expert Solution
Questions # 128:

You work as a .NET Trainer for ABC Inc. The Company uses .NET Framework as its application development platform. You are creating an application to demonstrate the use of datatypes. You create an unsigned Short datatype in the application. Which of the following values can be assigned to the unsigned Short datatype?

Each correct answer represents a complete solution. Choose three.

Options:

A.

123


B.

65,535


C.

127,625


D.

32,636


E.

-123


Expert Solution
Questions # 129:

David works as a Software Developer for GenTech Inc. He creates an XML Web service, named MyWebService, using Visual Studio .NET. MyWebService uses Microsoft Windows authentication. Users of MyWebService are in the GenTech domain. David wants to configure MyWebService to use the following URL-based authorization rules:

l Anonymous users must not be allowed to access MyWebService.

l All the users except User1 and User2 must be allowed to access MyWebService.

David configures Internet Information Services (IIS) to meet these requirements. Which of the following code will David use to configure the authorization section of the Web.config file for MyWebService?

Options:

A.

<authorization>

<allow users=''*''>

</authorization>


B.

<authorization>

<allow users="*">

</authorization>


C.

<authorization>

<allow users="*">

</authorization>


D.

<authorization>

<allow users="*">

</authorization>


E.

<authorization>

<allow users="*">

</authorization>


Expert Solution
Questions # 130:

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are creating an application using .NET Framework 2.0. The application will be used by school children to read a sequential chain of characters. What will you do to accomplish this task?

Options:

A.

Use the File class.


B.

Use the TextWriter class.


C.

Use the TextReader class.


D.

Use the BinaryReader class.


Expert Solution
Viewing page 13 out of 15 pages
Viewing questions 121-130 out of questions