Exam 13: Working With Files
Exam 1: Introduction to Computing and Programming75 Questions
Exam 2: Data Types and Expressions75 Questions
Exam 3: Methods and Behaviors75 Questions
Exam 4: Creating Your Own Classes75 Questions
Exam 5: Making Decisions75 Questions
Exam 6: Repeating Instructions75 Questions
Exam 7: Arrays75 Questions
Exam 8: Advanced Collections74 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events75 Questions
Exam 11: Advanced Object-Oriented Programming Features75 Questions
Exam 12: Debugging and Handling Exceptions75 Questions
Exam 13: Working With Files75 Questions
Exam 14: Working With Databases75 Questions
Exam 15: Web-Based Applications73 Questions
Select questions type
If an invalid path is listed in the constructor for the StreamWriter object, you will be prompted to reenter the file name.
(True/False)
4.9/5
(35)
The StreamReader's Peek( ) method returns the next available character but does not consume it.
(True/False)
4.9/5
(31)
The StreamReader class is most often used to retrieve single characters, one character at a time, from a file.
(True/False)
5.0/5
(40)
If you do not specify the full path for the filename, Visual Studio uses the ____________ subdirectory of the current project.
(Short Answer)
4.9/5
(36)
In order to invoke the Copy( ) method of the File class, instantiate an object of the File class and send as an argument a filename.
(True/False)
4.9/5
(36)
To ensure that the data is usable for the next application the ____________ method should be invoked before you exit the application.
(Short Answer)
4.8/5
(34)
In order to remove a StreamWriter object named writer, which is associated with a file in the project directory called "test.dta", you would write ____.
(Multiple Choice)
4.8/5
(32)
File and Directory classes add functionality to their method members beyond that of FileInfo and DirectoryInfo classes.
(True/False)
4.8/5
(47)
Which of the following is a static member of the Directory class?
(Multiple Choice)
4.8/5
(46)
With Visual Studio when you create a file (or attempt to access one), if a path is not specified with the filename, the Apps\Debug subdirectory of the current project is used.
(True/False)
4.8/5
(40)
StreamWriter outputFile = new StreamWriter("someOutputFileName");
StreamReader inputFile = new StreamReader("someInputFileName");
The identifier that can be referenced in a WriteLine( ) method with the declaration above is ____.
(Multiple Choice)
4.9/5
(39)
The constructor for the StreamWriter can include additional arguments indicating whether the file should be appended to or overwritten if it already exists.
(True/False)
4.7/5
(41)
If an invalid path is included with the constructor for a StreamWriter object, ____.
(Multiple Choice)
4.9/5
(39)
Which of the following class belongs to the System.IO namespace?
(Multiple Choice)
4.9/5
(45)
The ____________ class provides static methods that aid in creating and moving through folders and subdirectories.
(Short Answer)
4.8/5
(43)
A structure is a special form of value type that supplies alternate names for the values of an underlying primitive type.
(True/False)
4.8/5
(35)
No exception is thrown if you attempt to close or open a file that does not exist.
(True/False)
4.9/5
(36)
If a StreamReader object named reader is instantiated and associated with a file stored in the project directory named "test.dta", which of the following statements would check to see if the "test.dta" exists?
(Multiple Choice)
4.7/5
(44)
To avoid fully qualifying references to objects of the StreamReader class, include a using statement with the System.StreamReader namespace.
(True/False)
4.8/5
(32)
Showing 21 - 40 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)