Examlex

Solved

We Have a File That Has a Name in It

question 41

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) ;
}


Definitions:

Remembered

Pertaining to having memory or recollection of someone or something

Deep Processing

involves the active manipulation of information to make it meaningful, thus improving its understanding and facilitating its retention.

Craik And Lockhart

Renowned for their Levels of Processing theory, which suggests that memory retention is influenced by the depth of processing, with deeper levels resulting in longer-lasting memory trace.

Meaning

The significance, purpose, or understanding attached to something, such as a word, action, or symbol.

Related Questions