Answer the following statements 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.
3) When you write ifstream inStream;
inStream.open(”infile.dat”);
the file, infile.dat must be located in the directory where the program is being
run.
4) When you use the open member function to tie a file name to a file stream, the file name is called the external file name, and the program refers to the file by the stream name.
5) A file is automatically closed when a program terminates, so there is never a need to close a file.


1) T
2) F
3) F
4) T
5) F

Computer Science & Information Technology

You might also like to view...

In the code shown here, what is the correct array declaration for the array used in FillArray?

``` int FindAverage(float numbers[][25]); int main() { //declarations go here int total; total = FillArray(numbers); ``` A. int numbers[25]; B. int numbers[25][25]; C. float numbers[25][25]; D. float numbers[25];

Computer Science & Information Technology

Ctrl + = is a keyboard shortcut that starts the Sum function in a worksheet

Indicate whether the statement is true or false

Computer Science & Information Technology

Images inserted into a placeholder will be sized to fit

Indicate whether the statement is true or false

Computer Science & Information Technology

A method is a function associated with an object

Indicate whether the statement is true or false

Computer Science & Information Technology