Asked by Delaney DeAvila on Jun 05, 2024
Verified
An ____________ allows data to flow from your program.
A) input stream
B) output stream
C) file name
D) all of the above
Output Stream
In programming, it refers to a channel that conveys data from a program to a destination, which can be a file, a console, or a network socket.
Input Stream
An abstraction used in Java for reading data from a source, such as a file or network connection.
File Name
The unique identifier for a file on a computer system, which consists of a name and sometimes a path.
- Delineate the distinctions between input and output streams.
Verified Answer
CS
Carrie SmithJun 06, 2024
Final Answer :
B
Explanation :
An output stream allows data to flow from your program, while an input stream allows data to flow into your program. A file name is simply the name of the file that the program is accessing, and is not itself a tool for data flowing. Therefore, the best choice is B, as it directly pertains to the flow of data out of the program.
Learning Objectives
- Delineate the distinctions between input and output streams.