Diagnosis typically involves a combination of medical history, physical exams, imaging tests (such as ultrasound, CT scans, or MRI), and biopsy. For example, a Pap smear is critical for detecting cervical cancer, while a transvaginal ultrasound might be used to evaluate ovarian cancer.