Question

Four branches of a company are located at M,N,O,M, N, O, and PP. MM is north of NN at a distance of 4 km; PP is south of OO at a distance of 2 km; NN is southeast of OO by 1 km. What is the distance between MM and PP in km?

Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2015 answer key

Solution

Set up a 2D Cartesian coordinate system with point OO at the origin and compute the coordinates of MM and PP.

Let O=(0,0)O = (0, 0).

  1. PP is south of OO by 2 km:
P=(0,−2).P = (0, -2).
  1. NN is southeast of OO by 1 km.
    Southeast corresponds to an angle of 45∘45^\circ south of east (fourth quadrant):
xN=1⋅cos⁡(45∘)=12≈0.7071 kmx_N = 1 \cdot \cos(45^\circ) = \frac{1}{\sqrt{2}} \approx 0.7071\text{ km}
yN=−1⋅sin⁡(45∘)=−12≈−0.7071 kmy_N = -1 \cdot \sin(45^\circ) = -\frac{1}{\sqrt{2}} \approx -0.7071\text{ km}

So N=(0.7071,−0.7071)N = (0.7071, -0.7071).

  1. MM is north of NN by 4 km:
xM=xN=0.7071 kmx_M = x_N = 0.7071\text{ km}
yM=yN+4=4−0.7071=3.2929 kmy_M = y_N + 4 = 4 - 0.7071 = 3.2929\text{ km}

So M=(0.7071,3.2929)M = (0.7071, 3.2929).

Now compute the Euclidean distance between MM and PP:

Δx=xM−xP=0.7071−0=0.7071\Delta x = x_M - x_P = 0.7071 - 0 = 0.7071
Δy=yM−yP=3.2929−(−2)=5.2929\Delta y = y_M - y_P = 3.2929 - (-2) = 5.2929
Distance=(Δx)2+(Δy)2=0.70712+5.29292=0.5000+28.0148=28.5148≈5.34 km.\text{Distance} = \sqrt{(\Delta x)^2 + (\Delta y)^2} = \sqrt{0.7071^2 + 5.2929^2} = \sqrt{0.5000 + 28.0148} = \sqrt{28.5148} \approx 5.34\text{ km}.
Final answer

A

Common trap

Using 28.528.5 directly without taking the square root, leading to option C.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 2
Question
7 of 65, printed as GA Q.7
Section
General Aptitude

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.