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

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: 271 – (Topic 3)

Martin works as a Software Developer for BlueWell Inc. He creates an ASP.NET application, named App1. During beta testing of App1, he ensures that the actual ASP.NET error messages are displayed whenever errors are encountered. He also ensures that both developers and beta testers see the actual text of the error messages.

During beta testing of App1, Martin performs beta testing of other applications also on the same test server. All the other applications display the ASP.NET error messages. After completing beta testing, Martin promotes the beta test server to a production server. He wants all the applications to display a single, user-friendly error message. Martin also wants to configure App1 and the production server to meet these goals. He removes the customErrors element from the Web.config file for App1. What else will he do to accomplish the required task with minimum administrative effort?

  1. In the Web.config file for App1, add the following element:

    lt;customErrors mode=quot;RemoteOnlyquot; /gt;

  2. In the App1.config file, add the following element:

    lt;customErrors mode=quot;RemoteOnlyquot; /gt;

  3. In the App1.config file, add the following element:

    lt;customErrors mode=quot;Onquot; /gt;

  4. In the Machine.config file, add the following element:

    lt;customErrors mode=quot;RemoteOnlyquot; /gt;

  5. In the Machine.config file, add the following element:

    lt;customErrors mode=quot;Onquot; /gt;

  6. In the Web.config file for App1, add the following element:

lt;customErrors mode=quot;Onquot; /gt;

Answer: E

Question No: 272 – (Topic 3)

Peter works as a Software Developer for PentaSoft Inc. He develops an application, named App1, using Visual C# .NET. The application is intended to deal with several file input and output operations. He uses the following try structure in the application code to handle errors that occur during the execution of App1.

try

{

//Statements that might cause a runtime error.

}

catch (System.IO.FileNotFoundException ex)

{

//Statements

}

catch (System.IO.PathTooLongException ex)

{

//Statements

}

catch (System.IO.IOException ex)

{

//Statements

}

catch (Exception ex)

{

//Statements

}

What will happen if an exception of type System.IO.DirectoryNotFoundException occurs in the try block?

  1. The catch block that handles an exception of type IOException will be executed.

  2. The catch block that handles an exception of type Exception will be executed.

  3. The catch block that handles an exception of type FileNotFoundException will be executed.

  4. The catch block that handles an exception of type PathTooLongException will be executed.

Answer: A

Question No: 273 – (Topic 3)

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 hosted on Microsoft Windows Server 2008. Only FTP access is available to the server. You need to improve the searching of the pages in the search engines by taking action to URLs that do not have an .aspx file extension. You must ensure that all pages as well as static content can also be requested. What will you do to accomplish this?

  1. Use an HttpHandler object.

  2. Use a Request object.

  3. Use an HttpModule object.

  4. Use an ISAPI filter.

Answer: C

Question No: 274 – (Topic 3)

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. BeginPrint

  2. QueryPageSettings

  3. PrintPage

  4. EndPrint

Answer: C

Question No: 275 – (Topic 3)

You work as an Enterprise 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 use cross-page posting to redirect users to another page. You want to access the public property values from the source page in the target page.

Which of the following actions can you perform to accomplish the task? Each correct answer represents a complete solution. Choose all that apply.

  1. Include an @PreviousPageType directive in the target page. Set the VirtualPath attribute to the path of the source page and set the TypeName attribute to the type name of the previous page.

  2. Include an @Master directive in the target page.

  3. Include an @PreviousPageType directive in the target page and set the VirtualPath attribute to the path of the source page.

  4. Include an @Register directive in the target page that references the source page.

Answer: C,D

Question No: 276 – (Topic 3)

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are deploying a class library using the

.NET Framework. Portions of your code need to access system environment variables. You need to force a runtime security exception only when the callers that are higher in the call stack do not have necessary permissions to access the resources. Which of the following methods will you use to accomplish the task?

  1. PermitOnly()

  2. Demand()

  3. Assert()

  4. Deny()

Answer: B

Question No: 277 – (Topic 3)

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. The assembly

contains a public method. The Global Assembly Cache contains a second assembly. You require that the public method is only called from the second assembly. Which of the following permission classes will you use to accomplish this task?

  1. DataProtectionPermission

  2. DBDataPermission

  3. StrongNameIdentityPermission

  4. GacIdentityPermission

  5. PublisherIdentityPermission

Answer: C

Question No: 278 – (Topic 3)

Allen works as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. He develops an application that manipulates files containing confidential information. He wants to make a copy of the existing file, named

ConfidentInfo1 to a new file, named ConfidentInfo2 in the local drive by using an instance method. However, Allen wants to ensure that the existing file does not overwrite the new file.

Which of the following classes#39; instance method will Allen consider in the application to accomplish the task?

  1. StringWriter class

  2. FileInfo class

  3. BinaryWriter class

  4. DirectoryInfo class

Answer: B

Question No: 279 – (Topic 3)

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 application using .NET Framework 3.5. The application will process one million records in a production environment. Therefore, you need to test the application by using 7,500 records in a limited test environment to identify potential problems that might arise when the

application is moved to the production environment. What will you do? Each correct answer represents a part of the solution. Choose two.

  1. Test the resource files.

  2. Test the thread pool pattern usage.

  3. Test the collection type usage.

  4. Test the number of MSI files used for deployment.

Answer: B,C

Question No: 280 – (Topic 3)

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. File Signing tool

  2. .NET Services Installation tool

  3. Installer tool

  4. Strong Name tool

Answer: A,D

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