Several tests are used to detect cancer, depending on the type and location of the cancer. Common cancer detection tests may include imaging tests like X-rays, CT scans, MRIs, and PET scans. Doctors may also prescribe a biopsy, tumour markers, endoscopic exams, etc., depending on the stage and course of the treatment.