Answer:
Option b outFile.open("outputData.out");
Explanation:
In C++, there are several classes given to handle output and input of characters to or from files. They are:
- ofstream that write on files
- ifstream that read from files
We can use an object of ofstream to hold the contents that we wish to output to an external file. The general syntax is as follows:
ofstream_obj.open(file_name)
This will create a file with a specific file name and it possesses all the contents from the obstream_obj.
Answer:
B. How many programming statements the program contains
Explanation:
If a program is intended to be able to process large amounts of data, then the ability of the program to process larger data sets is heavily affected by
- execution time
- size of memory the program requires
- storage space the program requires as it runs.
The length of the statements the program contains does not much affect program performance.