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 Collections75 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events74 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 Applications75 Questions
Select questions type
File and Directory classes add functionality to their method members beyond that of FileInfo and DirectoryInfo classes.
(True/False)
4.9/5
(80)
When you close a file,no arguments are sent to the method;however,the Close( )method must be called with a file object such as fileObjectInFile.Close( ).
(True/False)
4.8/5
(80)
All attempts to access text files should be enclosed inside if...else blocks to check for
exceptions.
(True/False)
4.7/5
(67)
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.8/5
(89)
The File,FileInfo,Directory,and DirectoryInfo classes are considered utility classes.They normally work with stream objects,allowing you to manipulate files and directory structures.
(True/False)
4.9/5
(76)
To ensure that the data is usable for the next application the ____________ method should be invoked before you exit the application.
(Short Answer)
4.9/5
(79)
When a method uses a(n)____________ modifier,the method belongs to the class itself,not to a specific object of the class and is thus called using the class name.
(Short Answer)
4.8/5
(78)
Streams are also used in C# to read and write data to binary files.
(True/False)
4.8/5
(86)
StreamReader inFile = new StreamReader("name.txt");
while ((inValue = inFile.ReadLine()) != null)
-What does the above statement do?
(Multiple Choice)
4.9/5
(71)
Values can be processed in any order.The fifth data record can be retrieved and processed before the first record is processed when ____________ access is used.
(Short Answer)
4.9/5
(89)
After an application is debugged and you are ready to deploy or distribute it,you can build the most optimized solution,a Release version.To switch to the Release version,select Release from the Solution Configurations list box on the Standard Visual Studio toolbar.
(True/False)
4.8/5
(74)
TextReader is an abstract class used to write primary data types as binary values.
(True/False)
5.0/5
(76)
None of the of the method named in the File and Directory classes are available as instance methods (with the same name)in the FileInfo and DirectoryInfo classes since they are available in File and Directory.
(True/False)
4.9/5
(79)
Showing 61 - 75 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)