GIAC
GSSP-NET · Question #391
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You need to write a code segment that transfers the contents of a byte…
The correct answer is C. BufferedStream BStream = new BufferedStream(NetStr, 8192); BStream.Write(ToSend, 0. GIAC GSSP-.NET Exam
Data Protection
Question
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You need to write a code segment that transfers the contents of a byte array named ToSend by using a NetworkStream object named NetStr. You want to use a cache of size only 8,192 bytes. Which of the following code segments will you use to accomplish the task?
Options
- AMemoryStream MStream = new MemoryStream(8192); NetStr.Write(ToSend, 0, (int)
- BBufferedStream BStream = new BufferedStream(NetStr); BStream.Write(ToSend, 0,
- CBufferedStream BStream = new BufferedStream(NetStr, 8192); BStream.Write(ToSend, 0,
- DMemoryStream MStream = new MemoryStream(8192); MStream.Write(ToSend, 0, (int)
How the community answered
(56 responses)- A16% (9)
- B5% (3)
- C71% (40)
- D7% (4)
Explanation
GIAC GSSP-.NET Exam
Topics
#BufferedStream#NetworkStream#buffered I/O#data transfer
Community Discussion
No community discussion yet for this question.