C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...





Posted Date: 06 Nov 2009      Posted By: tamil selvi      Member Level: Gold       Category: .NET Framework

Byte array



You need to write a code segment that transfers the contents of a byte array named dataT
by using a NetworkStream object named netStream. You need to use a cache of size 8,192
bytes. Which code segment should you use?


Select Answer:

MemoryStream^ memStream = gcnew MemoryStream(8192);memStream->Write (dataT, 0, (int) netStream->Length);
MemoryStream^ memStream = gcnew MemoryStream(8192);netStream->Write (dataT, 0, (int) memStream->Length);
BufferedStream^ bufStream =gcnew BufferedStream(netStream, 8192);bufStream->Write(dataT, 0, dataT >Length);
BufferedStream^ bufStream =gcnew BufferedStream(netStream);bufStream->Write(dataT, 0, 8192);




      
Your Test Score: 0 / 0



Next Question: custom-collection
Previous Question: runtime Security
Related Questions:
  • What is UnBoxing?


  • Versioning done at


  • From the following options which will ensure that clients receive the newer version of a dll having version "1.0.0.0"?


  • which class inherits all web pages by default


  • You have loaded several thousand records into a DataTable and you now want to filter those records by LastName = ‘Peter'. Which method of the DataTable class could you use?


  • Categories

    ASP.NET C# VB.NET 
    .NET Framework SQL Server Other 
    Java 

    Submit Interview/Test Questions with Answers and make money from adsense revenue sharing program

    Want to prepare for an interview? Try our aptitude tests and standard interview questions first.


    dotNet Slackers

    About Us    Contact Us    Privacy Policy    Terms Of Use