IBM Cloud Pak for Integration v2019.3 Solution Architect — Question 2
A rule developer is creating a virtual method that will calculate the percentage of a provided value. The method receives 2 parameters. The first parameter is the percentage and second parameter is the value to calculate the percentage from. What is a correct verbalization to accomplish this?
Answer options
- A. The {1}% of {2}
- B. The {0}% of {1}
- C. The {1}% of {this}
- D. The {0}% of {this}
Correct answer: C
Explanation
The correct answer is C, as it uses 'this' to refer to the current object's context, which is necessary for accessing instance-specific data. Options A and B incorrectly use placeholders that do not align with the intended usage of 'this', and option D incorrectly utilizes the index for the percentage instead of the value.