1.

Which of the following returns a string that represents the present working directory?(a) os.getcwd()(b) os.cwd()(c) os.getpwd()(d) os.pwd()The question was asked at a job interview.This interesting question is from Operating System topic in chapter Mapping Functions and Modules of Python

Answer» CORRECT answer is (a) os.getcwd()

The explanation is: The function getcwd() (get CURRENT working DIRECTORY) returns a STRING that represents the PRESENT working directory.


Discussion

No Comment Found

Related InterviewSolutions