Multiple choice technology

What is the returned value for the following expression : string_substring("sachintendulkar", 3, 4)

  1. "hint"

  2. "chin"

  3. "ch"

  4. "hi"

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

string_substring uses 0-based indexing and takes (start_position, length). Starting at index 3 (fourth character 'c') and taking 4 characters gives 'chin' from positions 3,4,5,6 of 'sachintendulkar'.