In the Papanicolaou (Pap) test, doctors use a plastic brush to remove a sample of cells from the cervix. These cells are examined under a microscope to look for abnormal cells that may lead to cancer (precancerous changes) or that are cancerous (cervical cancer).