Questions of Test: .Net interview questions

More >>

1

What underlying feature of .NET collections is harmful to their performance

2

What feature of .NET 2.0 can improve the performance pitfall of  collections

3

In .NET you can read from a compressed stream

4

.NET makes heavy use of which design pattern to implement streams

5

Consider the following code: 
 
using (FileStream fs = new FileStream(""c:\listings.txt"", FileMode.Truncate)) { 
 
  //  process stream 

 
What is wrong with this code?

6

Consider the following code: 
 
using (FileStream fs = new FileStream(""c:\listings.txt"", FileMode.Truncate)) { 
 
  //  process stream 

 
What is wrong with this code?

7

Consider the following block of code: 
 
Line 1: OrderInfo oInfo = new OrderInfo(); 
 
//filling of oInfo omitted 
 
Line 2: MessageQueue.Create(@".\Private$\" + "OrderQueue"); 
Line 3: MessageQueue mq = new MessageQueue(@".\Private$\" + "OrderQueue"); 
mq.Send(oInfo); 
 
 
What is wrong with this code?

8

What is the best way to ensure object cleanup in .NET

9

Calling methods on a finalized object in .NET will:

10

Full garbage collections can be relatively costly. 
Why is that so?

More >>