[Free] 2017(Sep) CollectDumps Testking GIAC GSSP- Dumps with VCE and PDF 61-70

CollectDumps 2017 Sep GIAC Official New Released GSSP-
100% Free Download! 100% Pass Guaranteed!
http://www.CollectDumps.com/GSSP-.html

GIAC GIAC Secure Software Programmer – C#.NET

Question No: 61 – (Topic 1)

John works as a Software Developer for Blue Well Inc. He wants to create a class named Class1 and implements the generic IComparable interface. He writes the following code:

public class Class1 : System.IComparablelt;Class1gt;

{

}

However, John needs to compare one object of Class1 with another object. Which of the following code statement will John include in his application?

  1. public int CompareTo(object obj){}

  2. public object CompareTo(int obj){}

  3. public object CompareTo(Class1 obj){}

  4. public int CompareTo(Class1 obj){}

Answer: D

Question No: 62 – (Topic 1)

John works as a Web Developer for ProLabs Inc. He develops an ASP.NET application, named

MyWebApp1, using Visual Studio .NET. One of the pages in the application is named as Page1.aspx, which does not need to maintain session state. To improve the performance of the application, John wants to disable session state for Page1. Which of the following actions will he take to accomplish the task?

  1. Set the EnableViewState attribute in the @ Page directive to false.

  2. Set the DisableSessionState attribute in the @ Page directive to true.

  3. In the sessionState configuration section of the application#39;s Web.config file, set the mode attribute to off.

  4. Set the EnableSessionState attribute in the @ Page directive to false.

Answer: D

Question No: 63 – (Topic 1)

You work as a Software Developer for ABC Inc. You develop a multi-threaded application named MyMultThreadApp using Visual Studio .NET. The application logs all warning and informational messages in an event log that keeps track of significant events when the application is running. The event log records information that might be useful for troubleshooting or performance analysis. Which of the following are the considerations that you must keep in mind when logging events with multithreaded components?

Each correct answer represents a complete solution. Choose three.

  1. An exclusive lock should be obtained on the log to avoid race conditions.

  2. Each shared component should be thread-safe when interacting with an event log.

  3. The System.Threading namespace should be used to record the identity of each thread for logging messages.

  4. The Debug and Trace classes should be used to log events.

Answer: A,B,C

Question No: 64 – (Topic 1)

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.

A.

System.AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal); PrincipalPermission MyPermission = new PrincipalPermission(null, @quot;BUILTIN\Usersquot;, true);

MyPermission.Demand();

B.

System.AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal); PrincipalPermission MyPermission = new PrincipalPermission(null, @quot;Usersquot;, true); MyPermission.Demand();

  1. PrincipalPermission MyPermission = new PrincipalPermission(null, @quot;BUILTIN\Usersquot;, true); MyPermission.Demand();

  2. PrincipalPermission MyPermission = new PrincipalPermission(null, @quot;Usersquot;, true); MyPermission.Demand();

Answer: A,B

Question No: 65 – (Topic 1)

You work as a Software Developer for ABC Inc. The company has several branches Worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You are creating an applications using .NET Framework 2.0. You want to allow users to view various details of a given unmanaged code. What will you do to accomplish the task?

  1. Use a COM/DCOM server.

  2. Use the Dispinterface.

  3. Use the Makecert.exe.

  4. Use the dumpbin.exe.

Answer: D

Question No: 66 – (Topic 1)

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?

  1. Set the control#39;s DrawMode property to OwnerDrawText, and then implement a custom DrawNode event handler.

  2. Set the control#39;s DrawMode property to OwnerDrawAll, and then implement a custom DrawNode event handler.

  3. Write a code segment in the DrawNode event handler to give the highlight color.

  4. Override the OnPaint method.

Answer: A

Question No: 67 – (Topic 1)

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a method to call a COM component using

the .NET Framework. You want to use declarative security to request the runtime to run a complete stack walk. You need to ensure that all callers be obliged to level of trust for COM interop before the callers execute the method. Which of the following attributes will you place on the method to accomplish the task?

  1. [SecurityPermission(SecurityAction.Demand, Flags=SecurityPermissionFlag.UnmanagedCode)]

  2. [SecurityPermission(SecurityAction.Deny,

    Flags = SecurityPermissionFlag.UnmanagedCode)]

  3. [SecurityPermissionSecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)]

  4. [SecurityPermission(SecurityAction.Assert, Flags = SecurityPermissionFlag.UnmanagedCode)]

Answer: A

Question No: 68 – (Topic 1)

You work as a Software Developer for ABC Inc. You develop an application using Visual Studio .NET 2005. You want to print the contents of a document named MyFile1.doc located on the local computer. Therefore, you use the printing controls in the application. Which of the following events will you use in the application code to accomplish the task?

  1. EndPrint

  2. QueryPageSettings

  3. PrintPage

  4. BeginPrint

Answer: C

Question No: 69 – (Topic 1)

Tony works as a Software Developer for TechNet Inc. He creates a satellite assembly named

SatAssembly1. He wants to install SatAssembly1 in the global assembly cache. Therefore, he compiles the assembly by using the Al.exe tool and signs SatAssembly1. Which of the following possible tools will Tony use to sign SatAssembly1?

Each correct answer represents a complete solution. Choose two.

  1. Installer tool

  2. File Signing tool

  3. .NET Services Installation tool

  4. Strong Name tool

Answer: B,C

Question No: 70 – (Topic 1)

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#39;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 lt;codebasegt; 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.

  1. Previously loaded assemblies

  2. The application base or root directory

  3. The Gacutil.exe tool in the Global Assembly Cache

  4. Sub-directories in the application#39;s root directory

  5. The culture attribute of the assembly

  6. The correct version of the assembly

  7. The assembly#39;s name

Answer: B,D,E,G

100% Free Download!
Download Free Demo:GSSP- Demo PDF
100% Pass Guaranteed!
Download 2017 CollectDumps GSSP- Full Exam PDF and VCE

CollectDumps ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 CollectDumps IT Certification PDF and VCE