Quiz


  1. What does it mean for data to be persistent?

  2. What is a file?

  3. What are the two formats in which files store data?

  4. What standard library should you include when your program reads from, or writes to, files?

  5. Which of the three objects, fstream, ifstream , or ofstream , may be used both for file input and file output?

  6. What are the two functions you can use to open a file?

  7. What is the purpose of opening a file?

  8. What is the purpose of closing a file?

  9. What is a constructor?

  10. Which is a better choice for detecting end of file in a text file, the eof member function or the fail member function?

  11. Should file stream objects be passed as function arguments by value or by reference?




C++ Demystified(c) A Self-Teaching Guide
C++ Demystified(c) A Self-Teaching Guide
ISBN: 72253703
EAN: N/A
Year: 2006
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net