In Python, which of the following statements are true? If fin is a file object opened for reading in binary mode, execut
Posted: Tue May 24, 2022 8:29 am
In Python, which of the following statements are true? If fin is a file object opened for reading in binary mode, executing struct.unpack("8s20s20sd", fin.read(56)) will: - read the next 56 bytes from the file, if available return 4 values obtained from the 56 bytes that have been read - the first 3 values are of bytes type, the last is a floating-point number If fin is an opened file object, fin.seek(2 48, 0) will set the file object's position to 96 Function os.chdir returns the list of the filenames in the working directory If fin is an opened file object, fin.seek(-10, 2) will set the file object's position to -10