answer the questions 462

This is my second take home exam questions, please help me to answer those questions thx.