Multiple choice technology platforms and products

size_of([vector "I" , "LOVE" , "INDIA"])

  1. 3

  2. 1

  3. Error

  4. None of the above

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

size_of on a string vector returns the total character count across all elements: "I" (1) + "LOVE" (4) + "INDIA" (5) = 10. Option A (3) is element count, not size. Option B (1) is incorrect. Option C (Error) is wrong. D is correct.