If some students are testing digitally, and some are using paper, do they have to test in separate rooms?

Yes. Schools administering both digital and paper modes of the same AP Exam must test students in separate rooms using separate proctors. This is because digital and paper exams have different instructions and exam day procedures.