SAP Certified Associate – ABAP Cloud Developer — Question 10

Which function call returns 0?

Answer options

Correct answer: D

Explanation

The correct answer is D because the function find_any_not_of checks for characters not present in the substring 'AB', which in this case results in 0 matches from the original string. The other options (A, B, and C) involve finding occurrences of 'AB' or counting them, which would return a positive count instead of 0.