1.

Which of the following can be used to create a directory?(a) os.mkdir()(b) os.creat_dir()(c) os.create_dir()(d) os.make_dir()This question was posed to me at a job interview.My question is from Operating System in chapter Mapping Functions and Modules of Python

Answer»

Right CHOICE is (a) os.MKDIR()

EXPLANATION: The FUNCTION mkdir() creates a directory in the path specified.



Discussion

No Comment Found

Related InterviewSolutions