Computer Science
In file handling, what do the terms "r" and "a" stand for?
- read, append
- append, read
- write, append
- None of these
Python Data Handling
2 Likes
Answer
read, append
Reason — In file handling, the term "r" stands for "read" mode, which is used when we want to read data from a file and "a" stand for "append" mode, which is used when we want to add data to the file.
Answered By
1 Like
Related Questions
Which is/are the basic I/O (input-output) stream(s) in file?
- Standard Input
- Standard Output
- Standard Errors
- All of these
Which of the following is the correct syntax of file object 'fobj' to write sequence data type using writelines() function?
- file.writelines(sequence)
- fobj.writelines()
- fobj.writelines(sequence)
- fobj.writeline()
Which of the following is not a valid mode to open a file ?
- ab
- rw
- r+
- w+
Which statement is used to change the file position to an offset value from the start?
- fp.seek(offset, 0)
- fp.seek(offset, 1)
- fp.seek(offset, 2)
- None of these