Your doctor will ask about your health history and your symptoms. They may give you a physical exam, including a rectal exam. Your urine, blood, and semen may be tested for bacteria or certain chemicals. In some cases, you may have other tests. You may have an ultrasound or a transrectal ultrasound-guided biopsy. This is done to take tiny pieces of tissue to examine under a microscope. Or you may have imaging tests such as a CT scan, MRI scan, or urodynamic studies that look at urine flow and other issues. These are done to look at your belly (abdomen) and pelvic areas.