When a program is finished using a file, it should do this.

a. erase the file
b. open the file
c. close the file
d. encrypt the file


Ans: c. close the file

Computer Science & Information Technology

You might also like to view...

If a number is formatted with the D3 formatter, it means that:

a) the number has to have at least three digits even if they are zero b) the number has a dollar sign and is at least three digits long c) creates each number in three dimensions d) it is an error

Computer Science & Information Technology

[C++11]: Which of the statements a), b) and c) is false?

a. C++11’s header now contains functions for converting from numeric values to string objects and from string objects to numeric values. b. The to_string function returns the string representation of its numeric argument and is overloaded for types int, unsigned int, long, unsigned long, long long, unsigned long long, float, double and long double. c. Each C++11 function that converts a string to an integral type receives two parameters—a string containing the characters to convert and a pointer to a size_t variable where the function stores the index of the first character that was not converted (a null pointer, by default). d. All of the above statements are true.

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. An unnamed namespace provides a facility for collecting names that are local to the file where the unnamed namespace is located. Such names are available in that file, and are unavailable in any other file. 2. A function defined inside an unnamed namespace requires qualification. 3. You can use the static qualifier with a global function, class or variable to get the same effect as an unnamed namespace. 4. In a particular file, the names from the global namespace and names from an unnamed namespace defined in the file are accesses the same way: by writing the name.

Computer Science & Information Technology

Answer the following questions true (T) or false (F)

1. An array behaves like a list of variables each of which is of the same type and for which there is a uniform, convenient naming convention that can be declared in a single line of code. In the explanation, give an example of declaration and access. 2. With arrays, indices start at any number the programmer chooses to indicate in the definition.

Computer Science & Information Technology