Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > GIAC > GIAC Certifications > GSSP-NET-CSHARP > GSSP-NET-CSHARP Online Practice Questions and Answers

GSSP-NET-CSHARP Online Practice Questions and Answers

Questions 4

Which of the following modifiers in C# will you use if you do NOT want a custom-build component to be a base class?

A. sealed

B. virtual

C. override

D. static

Buy Now

Correct Answer: A

Questions 5

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?

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

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

C. In the sessionState configuration section of the application's Web.config file, set the mode attribute to off.

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

Buy Now

Correct Answer: D

Questions 6

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.

A. The EventLog.Source property

B. The EventLog.WriteEntry method

C. The Trace.WriteLine method

D. The EventLog.EventLogSource property

Buy Now

Correct Answer: AB

Questions 7

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'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 element of the application's Web.config file to accomplish the task?

A.

B.

C.

D.

Buy Now

Correct Answer: D

Questions 8

Patrick works as a Software Developer for BlueWell Inc. He develops an ASP.NET application

named App1 using Visual Studio .NET. The application displays employee registration form on the company's Web site. The form contains the following fields:

l First Name

l Last Name

l Date of Birth

l E-mail

The application contains a TextBox control for each field. Patrick wants the application to provide a user-defined error message whenever an employee makes a wrong entry on the form. Patrick uses a CustomValidator validation control in the application. Which of the following properties is mandatory if the CustomValidator control is used to validate a user input data entry?

A. EnableViewState

B. IsValid

C. EnableTheming

D. ErrorMessage

Buy Now

Correct Answer: B

Questions 9

Allen works as a Software Developer for ManSoft Inc. He uses Microsoft Visual Studio 2005 to create a Web service named MyWebService. He wants to create a policy file with the help of WSE 3.0, which makes creating policy assertions

files fairly straightforward. A policy assertion is a combination of the capabilities and requirements of the Web service. Allen initially writes the following steps to create and implement a policy file:

l He creates a stud to hold the policy elements. This task is accomplished by creating a config file known as a policy file or a policy cache file.

l He creates a set of policy assertions. There exists a set of assertions that can be used.

l He references the policy file from the application configuration file.

After completing these steps, the structure of the policy file is created. Now, he wants to use the structure of the policy file to inject input filters, output filters, or both, into the processing pipeline.

Which of the following policy file structures will Allen use to accomplish the task?

A.

B.

C.

D.

Buy Now

Correct Answer: B

Questions 10

You work as a Web Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a Web application using .NET Framework 2.0. You configure the application at the following levels:

l Root Web

l Web application root directory

l Web site

l Web application subdirectory

In which of the following files will these levels be stored?

A. Proxy auto-config

B. ApplicationName.config

C. Manhine.config

D. Web.config

Buy Now

Correct Answer: D

Questions 11

George works as a Software Developer for GenTech Inc. He creates an application named App1 using Visual Studio .NET. App1 uses the version 2.0.0.0 of an assembly named Assembly1. However, he wants App1 to use a new version i.e.

2.1.0.0 of Assembly1. Therefore, he needs to specify Assembly1's location so that App1 can use version 2.1.0.0 of Assembly1. What will George use to accomplish the task?

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

A. An unmanaged code.

B. A managed code.

C. The element.

D. The element.

Buy Now

Correct Answer: CD

Questions 12

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application named StringRW using .NET Framework. You store some characters into an array of Unicode characters. You need to write all or some of these characters into a String object. Which of the following code segments will you choose to accomplish this task?

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

A. StringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c', 'l', 'a', 's', 's', 'r', 'i', 'g', 'h', 't', 'd', 'o', 'd' }; StringWriter sw = new StringWriter(sb); Object obj=(Object)b; sw.Write(obj); Console.WriteLine(sb); sw.Close();

B. StringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c', 'l', 'a', 's', 's', 'r', 'i', 'g', 'h', 't', 'd', 'o', 'd' }; StringWriter sw = new StringWriter(sb); sw.Write(b); Console.WriteLine(sb); sw.Close();

C. StringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c', 'l', 'a', 's', 's', 'r', 'i', 'g', 'h', 't', 'd', 'o', 'd' }; string str=new string(b); StringWriter sw = new StringWriter(sb); sw.Write(str); Console.WriteLine(sb); sw.Close();

D. StringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c', 'l', 'a', 's', 's', 'r', 'i', 'g', 'h', 't', 'd', 'o', 'd' }; StringWriter sw = new StringWriter(sb); sw.Write(b, 0, 5); Console.WriteLine(sb); sw.Close();

Buy Now

Correct Answer: BCD

Questions 13

You work as a Software Developer for ABC Inc. You use Visual Studio .NET to develop a Windows application named MyWindowApp. You implement the security classes of the .NET Framework. When users interact with the application, the role-based validation should perform frequently. You must ensure that only validated Windows NT or Windows 2000 domain users are permitted to access the application. You add the appropriate Imports statements for the System.Security.Principal namespace and the System.Threading namespace. Which of the following code segments will you use to accomplish this task?

A. Dim identity As WindowsIdentity = _WindowsIdentity.GetAnonymous() Dim myprincipal As New WindowsPrincipal(identity)

B. AppDomain.CurrentDomain.SetThreadPrincipal(_ PrincipalPolicy.WindowsPrincipal) Dim myprincipal As WindowsPrincipal = _CType(Thread.CurrentPrincipal, WindowsPrincipal)

C. Dim identity As WindowsIdentity = WindowsIdentity.GetCurrent() Dim myprincipal As New WindowsPrincipal(identity)

D. AppDomian.CurrentDomain.SetPrincipalPolicy(_ PrincipalPolicy.WindowsPrincipal) Dim myprincipal As WindowsPrincipal = _CType(Thread.CurrentPrincipal, WindowsPrincipal)

Buy Now

Correct Answer: D

Exam Code: GSSP-NET-CSHARP
Exam Name: GIAC Secure Software Programmer - C#.NET
Last Update: Jun 07, 2025
Questions: 491

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2025 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.