Computer Science
Which is/are the basic I/O (input-output) stream(s) in file?
- Standard Input
- Standard Output
- Standard Errors
- All of these
Answer
All of these
Reason — The basic I/O streams related to files are Standard Input (stdin), Standard Output (stdout), and Standard Error (stderr). Standard Input (stdin) is used for receiving input, Standard Output (stdout) is the stream for regular output, and Standard Error (stderr) is specifically designated for error messages and warnings.
Related Questions
Which module is required to use the built-in function dump()?
- math
- flush
- pickle
- unpickle
Which of the following functions is used to write data in the binary mode?
- write
- output
- dump
- send
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()
In file handling, what do the terms "r" and "a" stand for?
- read, append
- append, read
- write, append
- None of these