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:
  • Types of Assemblies?


  • .NET support Java language implementation?


  • Which namespace of the DOT.NET Framework do you use to provide functionality for compiler writers using managed code to specify attributes in metadata that affect the run time behavior of the common language runtime?


  • JIT


  • The tool provided with the .Net framework to register assemblies for use by COM is ___________ ?


  • 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