The strPassword variable contains eight characters. Two of the characters in the password must be numeric. Which of the following statements will access each character stored in the variable, character by character?

A. If strPassword Like "[A-Z][A-Z][A-Z][A-Z][A-Z][A-Z]##"
B. For intIndex As Integer = 0 To 7
C. For intIndex As Integer = 1 To 8
D. For intIndex As Integer = 1 To strPassword.Length - 1


Answer: B

Computer Science & Information Technology

You might also like to view...

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

1. The recommended prefix for the name of a button control is btn. 2. The Auto Hide feature of the Toolbox is active when the pushpin is horizontal. 3. A group of several controls can be resized or moved simultaneously. 4. The control with tab index 1 is always the first control to receive the focus when the program is run. 5. Snap lines can be used to align the bottoms, middles, and tops of controls.

Computer Science & Information Technology

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

1. The compiler and the run-time system enforces semantics on the Comparable interface. 2. An interface can contain defined constants as well as method headings or instead of method headings. 3. The Serializable interface is like all the other Java interfaces in that it contains defined constants and method headings. 4. An inner class definition is local to the outer class definition. 5. Inner and outer classes do not have access to each other’s private members.

Computer Science & Information Technology

The command enable algorithm-type scrypt secret password enables which of the following configurations?

A) SHA-256 B) MD5 C) Type 5 D) Type 9

Computer Science & Information Technology

What Intel processor technology interconnects the processor, chipset, and wireless network adapter as a unit, improving laptop performance?

A. Pentium B. Core i7 C. Centrino D. Celeron

Computer Science & Information Technology