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()
Answer:A
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()
Explanation: The function getcwd() (get current working directory) returns a string that represents th present working directory.