This looks suspiciously like a homework assignment. Homework and coursework questions can only be posted in
the Homework & Coursework Questions forum following
special homework rules.
Please review the
rules, which you agreed to when you registered, if you have not already done so.
If this is not a homework assignment, please tell us the source of the document you uploaded, the answers that you came up with for those questions, and explain to us why having us answer these questions for you will make YOU a better UNIX programmer.
If this is homework, please review the
guidelines for posting homework and repost with a completely filled out homework template.