Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Streams can be used in C# for writing data to: a. text files b. networks c. m

ID: 3674502 • Letter: 1

Question

1. Streams can be used in C# for writing data to:
a. text files
   b. networks
   c. memory
   d. binary files
   e. all of the above

2. To avoid an IOException exception with files, you can either use a try...catch block or make sure there is a file before attempting to read characters from it. This can be done by:
   a. calling the File.Exists( ) method
   b. using a loop to cycle through the file structure
   c. throwing an exception
   d. including statements in a finally block
   e. placing a test loop in the Main( ) method

Explanation / Answer

1-D

2-A