The correct sequence for file operations is open() to get a file descriptor, write() to write data (optionally using lseek() to position before writing), and close() to release resources. Option A incorrectly tries to lseek before opening, and option C has syntax errors and calls open() twice.