The digital rectal exam is the simplest way to detect physical abnormalities in the prostate gland that may suggest the presence of cancer. To perform the rectal exam, the doctor feels the gland by placing a lubricated, gloved finger inside the rectum against the prostate. When done properly, the test is not as discomforting as it might sound..