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

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

Roger works as a Software Developer for BlackWell Inc. He develops an application, named MyApplication1, using Visual Studio .NET. The application contains a form, named MyForm1, which will be used to set a password for a user. A password allotted to a user will be case-sensitive. MyForm1 contains several controls including two TextBox controls, named txtPassword and txtConfirm, respectively. The txtMyPassword control is used to accept a string from a user. The string entered in txtPasword will be used as the password for the user. In txtConfirm, the user has to retype the string that he enters in txtPassword. This will ensure that there are no typing errors. MyForm1 also contains a Button control, named cmdSetPassword, which when clicked will set the password for the user.

Before setting the password for a user, Roger wants to ensure that the two text boxes contain the same string. In order to accomplish this, he decides to use the StrComp function. The password for a user can only be set if the StrComp function returns 0. He has not used an Option Compare statement in the code. Which of the following statements can Roger use to compare the two strings?

Each correct answer represents a complete solution. Choose two.

  1. StrComp(txtPassword.Text, txtConfirm.Text, CompareMethod.Binary)

  2. StrComp(txtPassword.Text, txtConfirm.Text, CompareMethod.Text)

  3. StrComp(txtPassword.Text, txtConfirm.Text, CompareMethod.CaseSensitive)

  4. StrComp(txtPassword.Text, txtConfirm.Text)

Answer: A,D

Question No: 172 – (Topic 2)

Mark works as a Software Developer for CyberNet Inc. He develops a serviced component, named MyComponent1, using Visual Studio .NET. MyComponent1 uses a SQL Server database. In the code, Mark uses the ExecuteNonQuery method of the SqlCommand

class to execute a Transact- SQL statement. Which of the following values will the ExecuteNonQuery method return?

  1. A string type value

  2. A boolean type value

  3. An integer type value

  4. A double type value

Answer: C

Question No: 173 – (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 uses Session objects. You are changing the application to run on a Web farm. You want to make sure that the application can access the Session objects from all the servers in the Web farm. You also make sure that when any server in the Web farm restarts or stops responding, the Session objects are not lost. What will you do?

  1. Use InProc Session Management mode to store session data in the ASP.NET worker process

  2. Use StateServer Session Management mode to store session data in a common State Server process on a Web server in the Web farm

  3. Use SQLServer Session Management mode to store session data in an individual database for each Web server in the Web farm

  4. Use SQLServer Session Management mode to store session data in a common Microsoft SQL Server 2005 database

Answer: D

Question No: 174 – (Topic 2)

You work as a Software Developer for ABC Inc. You develop a Windows-based application named MyApp. The application contains a form named MyForm1 that displays a submit form for registered users. You want to implement a user interface for the application. Which of the following requirements will you consider for the user interface?

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

  1. The application saves the user-entered data and checks the integrity of the data.

  2. The application components are allowed to handle logging of user-entered data.

  3. The user-entered data are validated through the validation checks applied in the Windows Forms controls.

  4. Users are allowed to enter data in the required fields on the form.

Answer: C,D

Question No: 175 – (Topic 2)

You work as an ADO.NET Application Developer for ABC Inc. The company uses Microsoft Visual Studio .NET 2008 as its application development platform. You create an ADO.NET application by using .NET Framework 3.5. You need to represent a strongly typed lambda expression as a data structure in the form of an expression tree. Which of the following classes will you use to accomplish the task?

  1. MethodCallExpression

  2. LambdaExpression

  3. Expression

  4. Expression (TDelegate)

Answer: D

Question No: 176 – (Topic 2)

You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a Windows application using .NET Framework 2.0. The application provides accessibility features. The forms in the application display a background image. You want to remove the image whenever a user selects Use High Contrast in the Accessibility Options in Control Panel. You are required to add an event to handle this accessibility setting change. Which of the following events will you use to accomplish this task?

  1. UserPreferenceChanged

  2. StyleChanged

  3. ChangeUICues

  4. DisplaySettingsChanged

Answer: A

Question No: 177 – (Topic 2)

Peter works as a Software Developer for PatSoluTech Inc. He develops a Web application using Visual Studio .NET. The application contains an online ordering Web form named WebForm1. WebForm1 contains several Web server controls that include a TextBox control named TextBox1 and an ImageButton control named ImageButton1. He wants data entered in TextBox1 to be validated whenever ImageButton1 is clicked. Which of the following will Peter use to accomplish the task?

  1. ImageButton1.CausesValidation

  2. ImageButton1.OnClientClick

  3. ImageButton1.ValidationGroup

  4. ImageButton1.Enabled

Answer: A

Question No: 178 – (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. You want to authenticate users before using the application. Therefore, you decide to use the authentication method that uses encryption to authenticate users. What will you do to accomplish the task?

  1. Use the FileAuthorizationModule class

  2. Use the Windows authentication provider

  3. Use Forms authentication provider

  4. Use Passport authentication provider

Answer: D

Question No: 179 – (Topic 2)

John works as a Web Developer for ProMetaworks Inc. He creates an ASP.NET application, named MyApp1, using Visual Studio .NET. MyApp1 contains a page, named Page1. Page1 contains several TextBox controls that accept users#39; input. John uses several validation controls on the page to validate input controls. He wants to display all the validation error messages on the page in a message box. However, he does not want the validation summary to be displayed inline on the Web page. What will he do to accomplish

the task?

  1. Add a ValidationSummary control to the page. Set its ShowMessageBox and ShowSummary properties to true.

  2. Add a ValidationSummary control to the page. Set its DisplayMode property to MessageBox .

  3. Add a ValidationSummary control to the page. Set its ShowMessageBox property to true and ShowSummary property to false.

  4. Add a CustomValidator control to the page. Write a custom client-side script function. Set the ClientValidationFunction property of the control to the name of the function.

Answer: C

Question No: 180 – (Topic 2)

David works as a Software Developer for McRobert Inc. He develops a Windows-based application, named App1, using Visual C# .NET. The application contains a Form control, named Form1. He wants to write code to initialize class-level variables, named Var1, Var2, and Var3, as soon as Form1 is instantiated. Which of the following code will he use to accomplish this?

  1. private void Form1_Initialize(System.Object sender, System.EventArgs e)

    {

    int Var1 = 20; int Var2 = 40; int Var3 = 60;

    }

  2. private void Form1_New(System.Object sender, System.EventArgs e)

    {

    int Var1 = 20; int Var2 = 40; int Var3 = 60;

    }

  3. private void Form1_Load(System.Object sender, System.EventArgs e)

    {

    int Var1 = 20; int Var2 = 40; int Var3 = 60;

    }

  4. private void Form1_Create(System.Object sender, System.EventArgs e)

{

int Var1 = 20;

int Var2 = 40; int Var3 = 60;

}

Answer: C

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