Exam 12: Advanced File Operations
Exam 1: Introduction to Computers and Programming47 Questions
Exam 2: Introduction to C62 Questions
Exam 3: Expressions and Interactivity45 Questions
Exam 4: Making Decisions51 Questions
Exam 5: Loops and Files60 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays and Vectors56 Questions
Exam 8: Searching and Sorting Arrays30 Questions
Exam 9: Pointers47 Questions
Exam 10: Characters, C-Strings, and More About the String Class47 Questions
Exam 11: Structured Data46 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes54 Questions
Exam 14: More About Classes46 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions43 Questions
Exam 16: Exceptions and Templates36 Questions
Exam 17: The Standard Template Library38 Questions
Exam 18: Linked Lists41 Questions
Exam 19: Stacks and Queues47 Questions
Exam 20: Recursion27 Questions
Exam 21: Binary Trees39 Questions
Select questions type
Which of the following data types can be used to create files and read information from them into memory?
(Multiple Choice)
4.9/5
(31)
File output may be formatted the same way as console screen output.
(True/False)
4.9/5
(31)
The setprecision manipulator cannot be used to format data written to a file.
(True/False)
4.8/5
(37)
When you store data in a variable, it is automatically saved in a file.
(True/False)
4.8/5
(41)
All stream objects have __________ which indicate the position of the stream.
(Multiple Choice)
4.8/5
(34)
Which of the following access flags, when used by itself, causes a file's contents to be deleted if the file already exists?
(Multiple Choice)
4.8/5
(33)
Which of the following is the data type that can be used to create files and write information to them but cannot be used to read information from them?
(Multiple Choice)
4.8/5
(38)
The __________ marker is the character that marks the end of a file and is automatically written when the file is closed.
(Multiple Choice)
4.8/5
(39)
Which of the following is the state bit that can be tested to see if the end of an input stream is encountered?
(Multiple Choice)
4.8/5
(36)
The ios::out flag causes the file's existing contents to be deleted if the file already exists.
(True/False)
4.8/5
(38)
If a file already exists, you can open it with the flags ios::in | ios::out to preserve its contents.
(True/False)
4.9/5
(49)
Outside of a C++ program, a file is identified by its __________while inside a C++ program, a file is identified by a(n) __________.
(Multiple Choice)
4.9/5
(41)
Which of the following statements opens a file and links it to a file stream object?
(Multiple Choice)
4.9/5
(39)
What is true about the following statement?
Out)open("values.dat", ios:
:
App);
(Multiple Choice)
4.8/5
(28)
Showing 21 - 38 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)