Which string function will return "Certification"?

Which string function will return "Certification"?

Question: A developer wants to remove the company name from the “UiPath Certification” string. Which string function will return “Certification”?

  •   “UiPath Certification”.substring(6)
  •   “UiPath Certification”.substring(6).Trim
  •   “UiPath Certification”.substring(6,14)
  •   “UiPath Certification”.substring(14,6)

Answer

Option C is correct.

This will return a range of the string starting after position 6 all the way to position 14 inclusive. D will produce the same results but in reverse.

Please subscribe to Cameron's YouTube channel