Exam Details

  • Exam Code
    :GSSP-NET-CSHARP
  • Exam Name
    :GIAC Secure Software Programmer - C#.NET
  • Certification
    :GIAC Information Security
  • Vendor
    :GIAC
  • Total Questions
    :491 Q&As
  • Last Updated
    :May 13, 2024

GIAC GIAC Information Security GSSP-NET-CSHARP Questions & Answers

  • Question 11:

    You work as a Software Developer for InfoTech Inc. You develop an application named MyApp that works as a scientific calculator. A user inputs data and retrieves the calculated results based on the input values. The application uses a SQL database that contains two tables. One table contains data related to standard calculation specifications and the other table stores input values entered by the user. You want to ensure that the user is able to retrieve appropriate data fast. Which of the following actions will you take to accomplish the task?

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

    A. Use more than one component to process input data.

    B. Write code that performs multiple tasks simultaneously.

    C. Run multiple processes on a single thread.

    D. Use a single component to process input data.

    E. Run multiple processes on separate threads.

  • Question 12:

    You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are developing an application for the customer support using the .NET Framework. The customer support application accepts phone numbers. While running a report, you notice that the phone numbers displayed do not pursue similar format. Furthermore, there are cases of missing digits and missing area codes. You are required to ensure that the phone numbers are entered in the following format:

    (###) ###- ####

    You need to accomplish this task with the least amount of code. What will you do?

    A. Use the CustomValidator control.

    B. Replace all TextBox controls that are used for phone number input with MaskedTextBox con trols.

    C. Write code that uses a regular expression.

    D. Use the RegularExpressionValidator control.

  • Question 13:

    Martha works as a Software Developer for HiTech Inc. She develops a Web application named SalesApp that contains a Web page named MyWebForm1.aspx. The Web page contains validation controls for the Web server controls on the page. Martha wants the custom validation error message to display if the validation fails to call the validation control on the Web page. Which of the following actions will Martha take to accomplish the task?

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

    A. Call the Validate method of the validation control.

    B. Check the IsValid property of the validation control.

    C. Handle the Page_Init event handler.

    D. Handle the Page_Load event handler.

  • Question 14:

    Mark works as a Web Developer for ABC Inc. He develops an ASP.NET application, named MyApp1, using Visual Studio .NET. MyApp1 allows users to view and purchase company products. It includes several pages. The start-up page of the application is Page1.aspx. He configures the application's Web.config file to use form-based authentication.

    Mark wants users to log on to Page1.aspx by providing their user names and passwords. To accomplish this, he creates an ASP.NET page named UsersLogIn.aspx that allows each user to specify a user name and password. He then writes the following syntax in the Web.config filE.

    loginUrl="/UsersLogIn.aspx"

    protection="All"

    timeout="60"

    slidingExpiration="true">

    What will be the result?

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

    A. The session will expire after 60 seconds.

    B. The session will expire after 60 minutes.

    C. The session will expire after 60 hours.

    D. The session lifetime will be reset periodically.

    E. The session will never expire.

    F. Once the session lifetime is set, it will not change.

  • Question 15:

    You work as a Web 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 want to attach the Visual Studio Debugger to Internet Explorer when the application is running. Which of the following steps will you take to accomplish the task?

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

    A. In Visual Studio, go to the Debug menu and select Start Debugging.

    B. In Visual Studio, go to the Debug menu, click Windows, and then click Script Explorer.

    C. In the Attach to Process dialog box, select the instance of Internet Explorer (iexplorer.exe) to be attached to the debugger.

    D. In Visual Studio, go to the Debug menu and click Attach to Process.

  • Question 16:

    Allen works as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2008 as its application development platform. Allen develops an application using .NET Framework 3.5. The application connects to a SQL Server database using a SqlConnection object named Connection1. He creates some stored procedures in the database, which are used to update the data. Allen finds that sometimes, the update operation does not affect any row. He wants to add an error handling code to the application. Which of the following code segments will he use to accomplish the task?

    A. try { Connection1.open(); } catch(DataException Myexcept) { //Error-handling code }

    B. try { Connection1.open(); } catch(SqlException Myexcept) { //Error-handling code }

    C. try { Connection1.open(); } catch(DBConcurrencyException Myexcept) { //Error-handling code }

    D. try { Connection1.open(); } catch(InvalidCastException Myexcept) { //Error-handling code }

  • Question 17:

    You work as a Software Developer for InfoTech Inc. You create a Windows form in a Windows- based application named MyWinApp1. You use graphics in the form. You write the following code in your form:

    private void MyMouseEvent1(object sender1, MouseEventArgs event)

    { // Code to handle mouse events

    }

    You want to implement a property of the MouseEventArgs object. This property will return a Point structure that contains the x-coordinate and y-coordinate of the mouse. Which of the following properties of the MouseEventArgs object will you use to accomplish this?

    A. Y

    B. Location

    C. Button

    D. X

    E. Delta

    F. Clicks

  • Question 18:

    John works as a Web Developer for TechCom Inc. He creates an ASP.NET application, named MyApp1, by using Visual Studio .NET for a University Web site. Students will use MyApp1 to view their term end results. MyApp1 contains an ASP.NET page, named Page1. Page1 contains a TextBox control, named txtEnrolmentNo, and two Button controls, named btnSubmit and btnCancel.

    John wants to display the text "Enter Enrolment Number" within txtEnrolmentNo. He wants to ensure that if a user tries to submit the page without entering an enrolment number, the word "Error" appears next to txtEnrolmentNo. Which of the following actions will he take to accomplish the task?

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

    A. Add a RequiredFieldValidator control to the page. Set its ControlToValidate property to txtEnrolmentNo, InitialValue property to "Enter Enrolment Number", and ErrorMessage property to "Error".

    B. Add a RequiredFieldValidator control to the page. Set its ControlToValidate property to txtEnrolmentNo, ErrorMessage property to "Enter Enrolment Number", and InitialValue property to "Error".

    C. Set the InitialValue property of txtEnrolmentNo to "Enter Enrolment number".

    D. Set the Text property of txtEnrolmentNo to "Enter Enrolment number".

    E. Add a RegularExpressionValidator control to the page. Set its ControlToValidate property to txtEnrolmentNo, ErrorMessage property to "Enter Enrolment Number", and InitialValue property to "Error".

  • Question 19:

    You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. You have recently finished development of an application using .NET Framework. The application used two threads named threadOne and threadTwo. You are required to modify the code of the application to prevent the execution of threadOne until threadTwo completes execution. What will you do to accomplish this task?

    A. Use a WaitCallback delegate to synchronize the threads.

    B. Configure threadTwo to run at a higher priority.

    C. Configure threadOne to run at a lower priority.

    D. Call the Sleep method of threadOne.

    E. Call the SpinLock method of threadOne

  • Question 20:

    You work as a Software Developer for ManSoft Inc. You use Microsoft Visual Studio to create a Web service named MyWebService. You create a SOAP message that is not secure in the Web service. You want to use the ReceiveSecurityFilter class in the Web service to handle the receiving and securing of SOAP messages. Which of the following code segments will you use to accomplish the task?

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

    A. public class MyReceiveSecurityFilter : ReceiveSecurityFilter { public MyReceiveSecurityFilter(string service, Boolean client) { base(service, client); } public override void ValidateMessageSecurity(SoapEnvelope envelope, Security security) { // Implementation validation here } }

    B. public class MyReceiveSecurityFilter : ReceiveSecurityFilter { public MyReceiveSecurityFilter(string service, Boolean client) : base(service, client) { } public override void ValidateMessageSecurity(SoapEnvelope envelope, Security security) { // Implementation validation here } }

    C. public class MyReceiveSecurityFilter : ReceiveSecurityFilter { public MyReceiveSecurityFilter(string service, Boolean client) { } public override void ValidateMessageSecurity(SoapEnvelope envelope, Security security) { // Implementation validation here } }

    D. public class MyReceiveSecurityFilter : ReceiveSecurityFilter { public MyReceiveSecurityFilter(string service, Boolean client) : base(service, client) { } public void ValidateMessageSecurity(SoapEnvelope envelope, Security security) { // Implementation validation here } }

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only GIAC exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your GSSP-NET-CSHARP exam preparations and GIAC certification application, do not hesitate to visit our Vcedump.com to find your solutions here.