Which of the following computes the horizontal distance between points p1 and p2?

Which of the following computes the horizontal distance between points p1 and p2? 




Answer: abs(p1.getX() - p2.getX())


Python

Learn More Multiple Choice Question :