Winter Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Newly Released GIAC GSSP-.NET Exam PDF

Page: 15 / 18
Total 491 questions

GIAC GIAC Secure Software Programmer - C#.NET Questions and Answers

Question 57

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. You create a Windows service application using the .NET Framework. You are required to synchronize execution of some resources across multiple processes.

What will you do to accomplish this task?

Options:

A.

Use the Mutex class.

B.

Use the Monitor class.

C.

Use the ThreadPool class.

D.

Use the Interlocked class.

Question 58

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 for a Bank using the .NET Framework. You create a method that gets the images of cancelled checks and displays them. You presently have access to a method that reads the images from a SQL server database as a sequence of bytes. You need to transfer the image from the SQL server database to a form with the least amount of temporary buffers and files. Which of the following classes will you use to accomplish this task?

Options:

A.

FileStream

B.

NetworkStream

C.

BufferedStream

D.

MemoryStream

Question 59

You work as a Web Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create an ASP.NET AJAX application using .NET Framework 3.5. You have enabled debugging in your application to get error information. Now, you want to deploy the release version of the application. How will you set the application to release mode?

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

Options:

A.

Set the debug attribute of the @Page directive to false.

B.

Set the ScriptMode property of the ScriptManager control to Debug in pages that contain a ScriptManager control.

C.

In the Web.config file, set the compilation element's debug attribute to false.

D.

Set the ScriptMode property of the ScriptManager control to Release in pages that contain a ScriptManager control.

Question 60

John works as a Software Developer for CyberOrbit Inc. He develops an application, named App1, using Visual C# .NET. He implements security by using the security classes of the .NET Framework. In the application code, he uses the following statements to create two PrincipalPermission objects representing two different administrative users:

PrincipalPermission Perm1 = new PrincipalPermission("Mark", "Manager");

PrincipalPermission Perm2 = new PrincipalPermission("Davis", "Manager");

John wants to create a new PrincipalPermission object by combining these two objects and use the new object to make a demand. He wants the demand to succeed only if the current principal object represents either Mark or Davis in the role of Manager. Which of the following methods will he use to create the new permission?

Options:

A.

Intersect

B.

Copy

C.

IsSubSetOf

D.

Union

Page: 15 / 18
Total 491 questions