Question d’entretien chez Optiv

How does an nmap port scan work?