Answer the following questions true (T) or false (F)
1. When a program sends data from itself to the outside, say to a file or the screen, we say it is writing the data on the file or to the screen.
2. An istream object is already an ifstream object with some extra, added features.
1. True
Explanation: Descriptions of reading or writing of files, are always from the point of view of the program. A program reads or takes data (from a file), and it writes or sends data (to a file).
2. False
Explanation: This is backwards. An ifstream object is an istream object, but the ifstream object has features the istream object does not. The ifstream objects have an open member function that ties the stream to a file, but the istream objects do not.
Computer Science & Information Technology