Multiple choice technology programming languages

Dim x x=InStr("abc abc","abc") Msgbox x

  1. 0

  2. 2

  3. 1

  4. 3

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

InStr performs a forward search and returns the START position of the first occurrence. In 'abc abc', the first 'abc' begins at position 1. This differs from InStrRev which finds the last occurrence (starting at position 5). Option B (2) is incorrect and Option D (3) would be the ending position, not the starting position.