What will be the output of the following lines of code?
Dim phrase As String = "A penny saved is worth nothing."
If phrase.IndexOf("pen") <> -1 Then
txtBox.Text = CStr(phrase.IndexOf("pen"))
Else
txtBox.Text = CStr(-1)
End If
```
```
(A) pen
(B) 2
(C) 0
(D) A penny saved is worth nothing.
(B) 2
Computer Science & Information Technology
You might also like to view...
What is a type of assessment that includes hands-on activities and examines the organization's policies and procedures?
a. Network evaluation b. Penetration test c. High-level assessment d. Level I assessment
Computer Science & Information Technology
Which of the following protocols is MOST commonly associated with VoIP?
A. LDAP B. HTTPS C. SIP D. SCP
Computer Science & Information Technology