Summer Special Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: vce65

Roger works as a Software Developer for BlackWell Inc.

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.

A.

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

B.

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

C.

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

D.

StrComp(txtPassword.Text, txtConfirm.Text)

GIAC GSSP-.NET Summary

  • Vendor: GIAC
  • Product: GSSP-.NET
  • Update on: Jul 25, 2025
  • Questions: 491
Price: $52.5  $149.99
Buy Now GSSP-.NET PDF + Testing Engine Pack

Payments We Accept

Your purchase with ExamsVCE is safe and fast. Your products will be available for immediate download after your payment has been received.
The ExamsVCE website is protected by 256-bit SSL from McAfee, the leader in online security.

examsvce payment method