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

Viewing page 5 out of 14 pages
Viewing questions 41-50 out of questions
Questions # 41:

Allen works as a Software Developer for ABC Inc. He develops an application using Visual Studio .NET

2005. The application will be used for the registration of employees by filling a form provided in the application. The form contains the following fields:

l First Name

l Last Name

l Date of Birth

l E-mail

He provides a TextBox control for each field. He wants an employee to be able to receive a user-defined error message when he makes a wrong entry. Which of the following properties is mandatory if a

CustomValidator control is used to validate an entry?

Options:

A.

EnableViewState


B.

EnableTheming


C.

ErrorMessage


D.

IsValid


Questions # 42:

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.

Options:

A.

In Visual Studio, go to the Debug menu and select Start Debugging.


B.

In Visual Studio, go to the Debug menu, click Windows, and then click Script Explorer.


C.

In the Attach to Process dialog box, select the instance of Internet Explorer (iexplorer.exe) to be attached to the debugger.


D.

In Visual Studio, go to the Debug menu and click Attach to Process.


Questions # 43:

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. The application is a library application that catalogs Classes and books. The application contains a DataContext object named Classes and a related line of business object named Books. The Classes DataContext object is queried by using the following LINQ query: var query = from class in Classes where class.Books.All(b => b.Price <= 50) select class;

You have to find out the result that will be returned from the query. What will be the result of the query?

Options:

A.

All books that have a price greater than or equal to 50.


B.

All books that have a price less than or equal to 50.


C.

All Classes that have the price of the related book greater than or equal to 50.


D.

All Classes that have the price of the related book less than or equal to 50.


Questions # 44:

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. You create an application using .NET Framework. You need to establish a Secure Sockets Layer (SSL) session with a remote server. The security policy of the company requires that both the client and server to provide a valid certificate for authentication before communications begins. Which of the following properties of the SslStream class will you use to accomplish this task?

Options:

A.

SslStream.IsServer


B.

SslStream.IsMutuallyAuthenticated


C.

SslStream.IsAuthenticated


D.

SslStream.IsSigned


E.

SslStream.IsEncrypted


Questions # 45:

Which of the following is used, if a reference to an object is required to be made when it is passed from one application to another?

Options:

A.

Marshal By Reference object


B.

Singleton object


C.

SingleCall object


D.

Marshal By Value object


Questions # 46:

Sophia works as a Software Developer for BlueWell Inc. She creates a component, named MyComp, using Visual Studio .NET. MyComp includes a method named MyMethod1, which is used to process user requests. MyMethod1 calls a private method, named MyMethod2. Sophia wants to ensure that if an error occurs during the execution, the exceptions encountered by MyMethod2 are caught and passed on to MyMethod1 for exception handling. Which of the following combinations of the exception handler should she use to accomplish the task?

Options:

A.

try, catch, and throw


B.

catch, finally, and throw


C.

try, catch, and finally


D.

try and throw


Questions # 47:

Charles works as a Web Developer for TechNet Inc. He develops an application named AdAgentsApp for advertising agents by using Visual Studio .NET. AdAgentsApp uses several Web services provided by the company. The employees in the IT department use only the existing port numbers 80 (HTTP protocol) and 443 (HTTPS protocol) for firewall security. However, they are forbidden to open any other new ports. These ports have been used to ensure the highest security level of authentication.

Which of the following actions should Charles take to maintain the highest security?

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

Options:

A.

Use Windows Basic Authentication with SSL.


B.

Use Windows Digest Authentication.


C.

Use Custom Authentication.


D.

Send the encrypted information in SOAP headers.


E.

Use Windows Authentication with Client Certificates.


Questions # 48:

You work as a Software Developer for InfoTech Inc. You create a Windows form in a Windows-based application named MyWinApp1. You use graphics in the form. You write the following code in your form:

private void MyMouseEvent1(object sender1, MouseEventArgs event)

{

// Code to handle mouse events

}

You want to implement a property of the MouseEventArgs object. This property will return a Point structure that contains the x-coordinate and y-coordinate of the mouse. Which of the following properties of the MouseEventArgs object will you use to accomplish this?

Options:

A.

Y


B.

Location


C.

Button


D.

X


E.

Delta


F.

Clicks


Questions # 49:

Mark works as a Web Developer for ABC Inc. He develops an ASP.NET application, named MyApp1, using Visual Studio .NET. MyApp1 allows users to view and purchase company products.

It includes several pages. The start-up page of the application is Page1.aspx. He configures the application's Web.config file to use form-based authentication.

Mark wants users to log on to Page1.aspx by providing their user names and passwords. To accomplish this, he creates an ASP.NET page named UsersLogIn.aspx that allows each user to specify a user name and password. He then writes the following syntax in the Web.config filE.

<authentication mode="Forms">

<forms name="MyName"

loginUrl="/UsersLogIn.aspx"

protection="All"

timeout="60"

slidingExpiration="true">

</authentication>

What will be the result?

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

Options:

A.

The session will expire after 60 seconds.


B.

The session will expire after 60 minutes.


C.

The session will expire after 60 hours.


D.

The session lifetime will be reset periodically.


E.

The session will never expire.


F.

Once the session lifetime is set, it will not change.


Questions # 50:

You work as a Software Developer for Mansoft Inc. You create an application and use it to create users as members of the local Users group. Which of the following code snippets imperatively demands that the current user is a member of the local Users group?

Each correct answer represents a complete solution. Choose all that apply.

Options:

A.

System.AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);

PrincipalPermission MyPermission = new PrincipalPermission(null, @"BUILTIN\Users", true);

MyPermission.Demand();


B.

PrincipalPermission MyPermission = new PrincipalPermission(null, @"BUILTIN\Users", true); MyPermission.Demand();


C.

System.AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);

PrincipalPermission MyPermission = new PrincipalPermission(null, @"Users", true);

MyPermission.Demand();


D.

PrincipalPermission MyPermission = new PrincipalPermission(null, @"Users", true);

MyPermission.Demand();


Viewing page 5 out of 14 pages
Viewing questions 41-50 out of questions