Which of the following If clauses should you use to compare the string contained in the txtId

Question:

Which of the following If clauses should you use to compare the string contained in the txtId control with the state abbreviation CA?

a. If txtId.Text = ToUpper(“CA”) Then

b. If txtId.Text = ToLower(“ca”) Then

c. If txtId.Text.ToUpper = “CA” Then

d. If ToUpper(txtId.Text) = “CA” Then

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: