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

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: 181 – (Topic 2)

Ryan works as a Software Developer for Mansoft Inc. He creates an ASP.NET Web application named MyWebApplication using Visual Studio .NET 2005. MyWebApplication performs validation on XML files in a directory. Whenever a new XML file appears in the directory, MyWebApplication opens the file, checks it for validation, and updates it accordingly. Ryan wants to ensure that each update performed on XML files is logged in the Web application log. He creates a String object named Var1, to store the message to be logged. Which of the following will he use to accomplish the task?

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

  1. The EventLog.Source property

  2. The EventLog.WriteEntry method

  3. The Trace.WriteLine method

  4. The EventLog.EventLogSource property

Answer: A,B

Question No: 182 – (Topic 2)

You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows Forms

application using .NET Framework 3.5. You need to execute a method named ProcAmount in the background of the application. The method requires that an integer value 101 is passed to it. You are required to pass an integer value 101 to start a background thread.

Which of the following code segments should you use?

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

  1. ParameterizedThreadStart tStart;

    tStart = new ParameterizedThreadStart(ProcAmount); Thread thd = new Thread(tStart);

  2. thd.Start(101);

  3. ThreadStart tStart = new ThreadStart(ProcAmount); Thread thd = new Thread(tStart, 101);

  4. thd.Start();

Answer: A

Question No: 183 – (Topic 2)

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 perform security related operations. You want to manage the role-based security in the application. What will you do to accomplish the task?

  1. Use the StackTrace property.

  2. Use the Process class.

  3. Use the WindowsIdentity class.

  4. Use the WindowsPrincipal class.

Answer: D

Question No: 184 – (Topic 2)

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 application using .NET Framework 2.0. The application will be used by all the branches of the company. You sometimes require a variable number of arguments to be passed to a method. For example, you may require a sum method, which calculates the total of the numbers passed to it no matter how many numbers are passed. What will you do to accomplish the task?

  1. Use the out keyword.

  2. Use the base keyword.

  3. Use the volatile keyword.

  4. Use the params keyword.

  5. Use the ref keyword.

Answer: D

Question No: 185 – (Topic 2)

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You create a remoting application that provides stock information to customers using .NET Framework. The server component raises an event on the client computer when certain conditions are met. You must ensure that the server raises exactly one event for each client application that is registered for the event. What will you do to accomplish this task?

  1. Configure the server class as a SingleCall Activated Object (SAO) and check for duplicate client delegate methods before raising the event.

  2. Configure the server class as a Singleton Activated Object (SAO) and check for duplicate client delegate methods before raising the event.

  3. Configure the server class as a Client Activated Object (CAO) and override the CreateObjRef method to check for duplicate client delegate methods before raising the event.

  4. Configure the server class as a Client Activated Object (CAO) and check for duplicate client delegate methods before raising the event.

Answer: B

Question No: 186 – (Topic 2)

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating an assembly named Assem1 using

.NET Framework. Assem1 contains a public method. The global cache contains a second assembly named Assem2. You need to ensure that the public method is only called from Assem2. Which of the following permission classes will you use to accomplish the task?

  1. DataProtectionPermission

  2. PublisherIdentityPermission

  3. StrongNameIdentityPermission

  4. GacIdentityPermission

Answer: C

Question No: 187 – (Topic 2)

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 is used to map HTTP requests to HTTP handlers based on a file name extension. You need to ensure that each HTTP handler processes individual HTTP URLs or groups of URL extensions in the application. Which of the following built-in HTTP handlers will you use to accomplish this task?

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

  1. Web service handler (*.asmx)

  2. Generic handler (*.ashx)

  3. Generic Web handler (*.ashx)

  4. ASP.NET page handler (*.aspx)

  5. Trace handler (trace.axd)

Answer: A,C,D,E

Question No: 188 – (Topic 2)

Which of the following code snippets is an example of tight encapsulation?

  1. protected int x; protected void fun(){x=5;}

  2. int x;

    public void fun(){x=5;}

  3. public int x;

    public void fun() {x=5;}

  4. private int x;

    public void fun(){x=5;}

  5. private int x;

private void fun(){x=5;}

Answer: D

Question No: 189 – (Topic 2)

John works as a Web Developer for ABC Inc. He develops an ASP.NET application, named MyApp1, using Visual Studio .NET. The application will be used in the Sales department to generate monthly reports. John wants to deploy the application on the company#39;s intranet. The company uses Microsoft Windows authentication. John wants to deny access to all the members of the Guest1 role. Which of the following attributes will he use in the lt;authorizationgt; element of the application#39;s Web.config file to accomplish the

task?

  1. lt;deny=quot;Guest1quot; /gt;

  2. lt;deny users=Guest1(quot;Allquot;) /gt;

  3. lt;deny users=quot;Guest1quot; /gt;

  4. lt;deny roles=quot;Guest1quot; /gt;

Answer: D

Question No: 190 – (Topic 2)

You work as a Software Developer for Mansoft Inc. You create an application using Visual Studio .NET 2005. You write code in the application and execute it, but it caused an error. Now, you want to find out the reason that has thrown the exception. Which of the following properties will you use to accomplish this task?

  1. Message

  2. TraceSwitch

  3. Data

  4. Source

  5. StackTrace

Answer: E

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