Hi,
I can add a few comments to Brian's excellent response.
First if you output student copies, the path names of the files will not be printed. This information is only printed for professors. I'll explain below how to change that.
Also you will probably want to edit the default hardcopy header since for a quiz/exam you will probably want to include different information at the top of the page.
To stop printing path names of the pg homework files for everyone, you will have to edit the course.conf file. Click on "File Manager", then near the top click the up arrow (just to the left of "templates") which will bring you to the top level directory of your course. Select "course.conf" and click edit. At the bottom of the file add the line:
$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_PERMISSION_LEVEL} = undef;
If you just want these printed for one person with login "mylogin", add
$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = ['mylogin'];
Editing the course.conf file allows you to make changes only for your course and these changes take precedence over the setting in global.conf which affect all courses on the server. If you set
$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_PERMISSION_LEVEL} = undef;
in global.conf, then file names would not be printed for professors in any course on the server. Note that many common things can be set for an individual course under "Course Configuration" and these take precedent over both global.conf and course.conf.
Arnie