The strPhone variable should contain only numbers and no dashes (-). An error message should display if there is a dash anywhere in the variable. Which of the following statements determines whether the variable contains a dash in order to display the message?

A. If strPhone.Contains("-") = True Then
B. If strPhone.Contains("-") = False Then
C. If strPhone Like "-" Then
D. If strPhone.Contains(#######) = False Then


Answer: A

Computer Science & Information Technology

You might also like to view...

To enter text from another document into a content control, you must display the Insert File dialog box by clicking the ________ in the Text group on Insert tab

A) Insert Object button B) Text Content control arrow C) Object button arrow D) Insert Text button

Computer Science & Information Technology

The act of creating an object is called ____.

A. prototyping B. modeling C. instantiation D. data hiding

Computer Science & Information Technology

What is an auto-switching AC adapter?

A. an adapter that can switch between line power and battery power B. an adapter that switches between two PCs C. an adapter that can use 110V or 220V AC power D. an adapter that can switch between AC or DC

Computer Science & Information Technology

Which of the following would require the need for a POTS line?

A. Modem B. Router C. Switch D. Hub

Computer Science & Information Technology