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
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.