Careful inspection. The doctor will take a focused history. The anorectal exam has several parts, and can be done with the patient in lateral position or knee-chest position (like kneeling on the table). The perianal area, outside the anus, is inspected and palpated. A gentle rectal exam is next, feeling for any lump or tenderness. A short scope then looks into the anal canal for hemorrhoids and other findings.