Chapter 12 Test 2

Chapter 12 Test 2 - Chapter 12 Test 2 Thursday, February...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1. To access files from a C++ program, you must #include: A. B. C. D. E. None of these 2. To set up a file to perform file I/O, you must declare: A. at least one variable to write to the file B. one or more file stream objects C. a string array to store the file contents D. All of these E. None of these 3. ofstream, ifstream, and fstream are: A. header files B. libraries C. data types D. string arrays Chapter 12 Test 2 Thursday, February 24, 2011 5:16 AM General Page 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
None of these 4. A file must be ________ before data can be written to or read from it. A. closed B. opened C. declared D. initialized E. None of these 5. The __________ data type can be used to create files and read information from them into memory. A. ofstream B. istream C. ifstream D. instream E. None of these 6. Outside of a C++ program, a file is identified by its _____. Inside a C++ program, a file is identified by a ____________. A.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/24/2011 for the course CS 245 taught by Professor Duke during the Fall '10 term at VCU.

Page1 / 7

Chapter 12 Test 2 - Chapter 12 Test 2 Thursday, February...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online