Multiple choice technology programming languages

Dim x x=InStrRev("abc abc","abc") x=????

  1. x=2

  2. x=3

  3. x=5

  4. x=0

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

InStrRev searches backwards through the string and returns the START position of the last occurrence. The string 'abc abc' contains 'abc' at positions 1 and 5 (with a space at position 4). Searching from the right finds 'abc' starting at position 5, not 2 or 3. Option D (0) would mean not found, which is incorrect.