Interview FAQs


FAQs of level

Use the static Process.GetProcesses() found in the System.Diagnostics namespace.

You can do this by starting a new thread and executing Application.Run for the status dialog form when the background thread starts running. To communicate changes in percentage use BeginInvoke to executes a specific delegate asynchronously on the thread that the form was created on.

In order to use BackgroundThreadStatusDialog from your code you have to update the Progress inside your loop and check the IsCanceled state to detect if the user pressed the Cancel button.

Yes, you can, then the class belongs to global namespace which has no name. For commercial products, naturally, you  would not want global namespace.
With .NET Framework 4.5 background garbage collection is automatically enabled for servers for performance improvement.

To define arrays larger than 2GB on 64-bit OS we can use gcAllowVeryLargeObjects element and set it’s enabled attribute to true.
<gcAllowVeryLargeObjects enabled="true" />

Following are the key differences between them: -
1. Structures are value types and classes are reference types. So structures use stack and classes use heap.
2. Structures members can not be declared as protected, but class members can be. You can not do inheritance in structures.
3. Structures do not require constructors while classes require.
4. Objects created from classes are terminated using Garbage collector. Structures are not destroyed using GC.

Overriding redefines only the implementation while shadowing redefines the whole element.
2 events, one is disposed , second one is tick event

Advantages of generics are:

  • Reusability 
  • Improves Performance

Namespaces are used to organize classes within the .NET Framework. They dictate the logical structure of the code. They are analogous to Java packages, with the key difference being Java packages define the physical layout of source files (directory structure) while .NET namespaces do not. However, many developers follow this approach and organize their C# source files in directories that correlate with namespaces. The .NET Framework has namespaces defined for its many classes, such as System.Xml—these are utilized via the using statement. Namespaces are assigned to classes via the namespace keyword.

PreviousDisplaying 20 of 25Next
Need Help? Contact Us.

Log in


Forgot password?


New User