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
The gray section below the Form object where dialog objects are placed in Visual Studio is called the ____.
Free
(Multiple Choice)
4.8/5
(46)
Correct Answer:
D
Parent and Root are two key properties of which class?
Free
(Multiple Choice)
4.7/5
(29)
Correct Answer:
C
When writing text files, if you add true to the constructor for the Append argument, ____.
Free
(Multiple Choice)
4.9/5
(43)
Correct Answer:
A
Which exception is thrown when an attempt is made to access a file that does not exist?
(Multiple Choice)
4.8/5
(38)
Archive is a(n) ____________ value for the Attributes property of the File class.
(Short Answer)
4.8/5
(38)
The keyword ____ can be used to define a scope for an object such that the CLR automatically disposes of, or releases, the resource when the object goes out of scope.
(Multiple Choice)
4.7/5
(32)
One of the static methods of the File class is ____________. Prior to writing program statements that access data in a file, you should always check to make sure the file is available by invoking this method.
(Short Answer)
4.8/5
(41)
All attempts to access text files should be enclosed inside if...else blocks to check for
exceptions.
(True/False)
4.9/5
(37)
A(n) ____________ is a special form of value type that supplies names for the values.
(Short Answer)
4.8/5
(39)
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.7/5
(40)
A(n) ____________ is considered a named collection of bytes having persistent or lasting storage.
(Short Answer)
4.8/5
(43)
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)
5.0/5
(39)
When you place an @ in front of a string, the string becomes a(n) ____.
(Multiple Choice)
5.0/5
(42)
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
(42)
The most appropriate programmer-defined enumeration identifier for a card's color that has field values of Red, Blue, Yellow, Black, and Green would be ____.
(Multiple Choice)
4.8/5
(40)
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.7/5
(40)
StreamReader inFile = new StreamReader("name.txt"); while ((inValue = inFile.ReadLine()) != null)
What does the above statement do?
(Multiple Choice)
4.8/5
(40)
StreamWriter outputFile = new StreamWriter("someOutputFileName");
StreamReader inputFile = new StreamReader("someInputFileName");
If you browse using Windows Explorer or Computer, the physical file that already exists before the two statements from above are executed is ____.
(Multiple Choice)
4.8/5
(32)
Showing 1 - 20 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)