The strState variable should contain two uppercase letters. Which of the following statements determines whether the variable contains a valid state?

A. If strState = "[A-Z][A-Z]" Then
B. If strState Like "[A-Z]" Then
C. If strState Like "[a-z][a-z]" Then
D. If strState Like "[A-Z][A-Z]" Then


Answer: D

Computer Science & Information Technology

You might also like to view...

Which of the following statements for a JTextField is false?

a. Can be used to display uneditable text. b. Can be used to display editable text. c. Enables users to enter data from the keyboard. d. Displays a list of fields.

Computer Science & Information Technology

Web applications usually do not require users to register by supplying personal information.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Append a(n) _____ after the closing quote (") of a string literal to indicate that it’s a C++14 string-object literal.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A footer appears at the top of each printed page. _________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology