Multiple choice technology platforms and products

Which function will result in "LOVE" ?

  1. string_substring("I>LOVE>INDIA",size_of("1"),size_of(1))

  2. string_substring("I>LOVE>INDIA",size_of(1)+2,size_of("1")/2)

  3. string_substring("I>LOVE>INDIA",size_of("1")+2,size_of(1)/2)

  4. string_substring("I>LOVE>INDIA",size_of(1)/2,size_of("1")+2)

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

Option C correctly extracts "LOVE" from the string. The expression size_of("1")+2 evaluates to 3 (starting position), and size_of(1)/2 evaluates to 2 (length). Starting from position 3 in "I>LOVE>INDIA" with length 4 gives "LOVE". Other options use incorrect combinations of string and integer size calculations.