OA. free
Free
Palo Alto Networks Core Computer Science Core Computer Science Medium

Meenu walks 20 metres towards north from her school.

Palo Alto Networks technical mcq question, verified with a worked answer. Free to practise - no sign-up.

Meenu walks 20 metres towards north from her school. She then turns left and walks 40 metres. She again turns left and walks 20 metres. Further she moves 20 metres after turning to the right. How far is she from her original position?

Select any one of the following

Choose one option.
Show answer & explanation
Answer: D. D) 60m

North 20m and South 20m cancel out to 0 in the vertical axis. West 40m and another West 20m add up to 60m west. The distance is 60m.

Step-by-step Derivation:
Step 1: Start at (0, 0). Walk 20m North -> position (0, 20).
Step 2: Turn left (West) and walk 40m -> position (-40, 20).
Step 3: Turn left (South) and walk 20m -> position (-40, 0).
Step 4: Turn right (West) and move 20m -> position (-60, 0).
Step 5: Distance from origin = sqrt((-60)^2 + 0^2) = 60m.