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
BinaryReader and BinaryWriter classes ____.
Free
(Multiple Choice)
4.9/5
(73)
Correct Answer:
C
Which of the following is a static member of the Directory class?
Free
(Multiple Choice)
4.9/5
(78)
Correct Answer:
C
PadRight( )and PadLeft( )methods of the ____________ class can be use to right or left align values.
Free
(Short Answer)
4.8/5
(82)
Correct Answer:
string
Prior to writing program statements that access data in a file,you should always check to make sure the file is available using the Available( )method.
(True/False)
4.9/5
(84)
Archive is a(n)____________ value for the Attributes property of the File class.
(Short Answer)
4.8/5
(82)
A structure is a special form of value type that supplies alternate names for the values of an underlying primitive type.
(True/False)
4.9/5
(78)
Assume that an object of the DirectoryInfo is instantiated using the identifier dirListing.How could you retrieve the names of all files stored in dirListing that have a file extension of .cs?
(Multiple Choice)
4.8/5
(80)
The FileDialog class has a property called ____,which is used by both the OpenFileDialog and SaveFileDialog classes to set or get the name of the file using a dialog box.
(Multiple Choice)
4.9/5
(88)
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
(83)
If you use Visual Studio and include a reference to the System.IO namespace,IntelliSense provides helpful information while you are developing your file application.
(True/False)
4.7/5
(67)
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)
5.0/5
(68)
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
(79)
StreamReader inFile = new StreamReader("name.txt");
while ((inValue = inFile.ReadLine()) != null)
-Using the above segment of code,inValue would be defined as what type of data?
(Multiple Choice)
4.8/5
(75)
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.8/5
(85)
Objects of streams can be wrapped with _________ objects to improve the speed and performance of file-handling operations.
(Multiple Choice)
4.8/5
(78)
NET Framework includes the ____________ namespace,which provides basic file and directory support classes.It also contains types that enable you to read and write files and data streams.
(Short Answer)
4.9/5
(65)
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.9/5
(82)
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
(79)
A(n)____________ is a special form of value type that supplies names for the values.
(Short Answer)
4.7/5
(77)
Showing 1 - 20 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)