1.

What does os.close(f) do?(a) terminate the process f(b) terminate the process f if f is not responding(c) close the file descriptor f(d) return an integer telling how close the file pointer is to the end of fileThe question was asked during an interview.My enquiry is from Operating System topic in portion Mapping Functions and Modules of Python

Answer»

The correct OPTION is (C) CLOSE the file descriptor f

Easiest explanation - When a file descriptor is PASSED as an argument to os.close() it will be CLOSED.



Discussion

No Comment Found

Related InterviewSolutions