How do doctors find out if a tumor is malignant? Do they have to have a piece of the tumor to look at?

Yes. Malignant cells don't look like normal cells, and these differences can be seen when the biopsy is examined by the pathologist under the microscope.