Pair programming is an engineering practice of the well defined and extreme programming rules. In these, two different programmers work simultaneously on one computer, on the same design, algorithm, code or test. Where one programmer acts as an "observer" while others act as a "driver", it is their shared responsibility to monitor the errors. Without any handoff, their roles can be exchanged or shifted at any point in the process.

Its significant advantage is that it helps in raising the theory among different points of view which can eventually help to increase our understanding of the same concept considering the code, algorithm or design.

BY Best Interview Question ON 05 Oct 2019