单项选择题
You need to write a code segment that transfers the contents of a byte array named dataToSend
by using a NetworkStream object named netStream.
You need to use a cache of size 8,192 bytes.
Which code segment should you use?()
A.
B.
C.
D.
点击查看答案
相关考题
-
单项选择题
You are writing a method that accepts a string parameter named message. Your method must break the message parameter into individual lines of text and pass each line to a second method named Process. Which code segment should you use?()
A.
B.
C.
D. -
单项选择题
You need to write a code segment that transfers the first 80 bytes from a stream variable named stream1 into a new byte array named byteArray. You also need to ensure that the code segment assigns the number of bytes that are transferred to an integer variable named bytesTransferred. Which code segment should you use?()
A.bytesTransferred=stream1.Read(byteArray,0,80);
B.
C.
D. -
单项选择题
You need to read the entire contents of a file named Message.txt into a single string variable.Which code segment should you use?()
A.
B.
C.
D.
