Q. Which function checks if a file is writable?
β
Correct Answer: (B)
is_writable()
Explanation: is_writable() checks if the file or directory is writable.