In most cases, hemorrhoids are diagnosed through history and physical exams. This includes a visual inspection of the anus and surrounding area as well as a rectal exam. It is important to be aware that bleeding may occur with other conditions such as cancer, and your doctor could recommend other tests such as a colonoscopy or CT scan if there are risk factors or warning signs.