Multiple Choice
We have a file that has a name in it, but the name is written one character per line. We need to write this name to the screen. What is wrong with the following code?
Ifstream fileIn;
FileIn.open"file.txt") ;
Char ch;
FileIn.getch)
While!fileIn.eof) )
{
Cout.putch) ;
FileIn.getch) ;
}
A) can not use put with cout.
B) our output has new lines in it.
C) nothing is wrong
D) eof is not a member of an ifstream object
Correct Answer:

Verified
Correct Answer:
Verified
Q36: The put function outputs<br>A) one character value<br>B)
Q37: When is the external name of the
Q38: The formatting options that were discussed for
Q39: open is a _ function of the
Q40: A _ is a variable that has
Q42: The member function setf stands for<br>A) set
Q43: What character will be in variable c
Q44: Which function returns true if the character
Q45: ios::showpos is a flag that<br>A) always displays
Q46: Which of the following is the correct