Question: This is C++ Programming: 1.) Which include directive is necessary for function toupper? a. #include b. #include c. #include d. #include 2.) Assume that fout
This is C++ Programming:
1.) Which include directive is necessary for function toupper?
a. #include
b. #include
c. #include
d. #include
2.) Assume that fout is a ofstream. Then fout << "/n"; will prints out a new line to corresponding file.
a. True
b. False
3.) What is wrong with the following code?
while(!fileIn.eof())
{
fileIn>>value;
fileOut<
}
a. We have read past the end of the input file and attempt to output an nonexistent value.
b. We have written past the end of the output file
c. Nothing
d. We have read past the end of the input file and attempt to output a nonexistent value and we have written past the end of the output file.
4.) The fail member function is used to check if data write to a file successfully or not.
a. True
b. False
5.) close member function is used to close a fstream.
a. True
b. False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
