Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Python Question. A. Errors and Design #__ In except, ask for another filename. #

ID: 3607626 • Letter: P

Question

Python Question.

A. Errors and Design

#__ In except, ask for another filename.

#__ In finally, ask for another filename.

#__ Do nothing, as the error means there is a problem with the function itself.

#__ In except, return None.

#__ In finally, return None.

B. Private Functions

#__ To signify that the function is extremely simple.

#__ To signify complex functions.

#__ To show that it should not be used outside of the module.

#__ To show that it should not be used within of the module.

C. Protocols

#__ So the server recognizes which protocol is being used, if multiple are allowed.

#__ It lets the server recognize the client's programming language.

#__ It lets the server know what OS the client is using.

#__ It lets the server know the location of the client.

#__ So the server could hang up immediately if it recieves an unexpected message.

Explanation / Answer

A. Errors and Design

#__ In except, ask for another filename.

#__ In finally, ask for another filename.

#__ Do nothing, as the error means there is a problem with the function itself.

#__ In except, return None.

#__ In finally, return None.

B. Private Functions

#__ To signify that the function is extremely simple.

#__ To signify complex functions.

#__ To show that it should not be used outside of the module.

#__ To show that it should not be used within of the module.

Private variables are use dso that they are not used outside of module.

C. Protocols

#__ So the server recognizes which protocol is being used, if multiple are allowed.

#__ It lets the server recognize the client's programming language.

#__ It lets the server know what OS the client is using.

#__ It lets the server know the location of the client.

#__ So the server could hang up immediately if it recieves an unexpected message.

protocols are used server recognize protocol used by client and serve clinet accordinglyu