Are the qutation marks correctin either number one or two?

1.“Did the professor say,” Put down your pencils?”’ Janice asked.

2. "Did the professor say, 'Put down your pencils?’ Janice asked

No.

It should be:

"Did the professor say, 'Put down your pencils'?" Janice asked.