Set - 3

Question 11 :

What is the equivalent to regsvr32 and regsvr32 /u a file in .NET development?

Answer :

Try using RegAsm.exe. The general syntax would be: RegAsm. A good description of RegAsm and its associated switches is located in the .NET SDK docs. Just search on "Assembly Registration Tool".Explain ACID rule of thumb for transactions. 

Transaction must be Atomic (it is one unit of work and does not dependent on previous and following transactions), Consistent (data is either committed or roll back, no in-between case where something has been updated and something hasnot), Isolated (no transaction sees the intermediate results of the current transaction), Durable (the values persist if the data had been committed even if the system crashes right after).


Question 12 :

Where is the output of TextWriterTraceListener redirected?

Answer :

To the Console or a text file depending on the parameter passed to the constructor.


Question 13 :

How do I create a multilanguage, single-file assembly?

Answer :

This is currently not supported by Visual Studio .NET.


Question 14 :

Why cannot you specify the accessibility modifier for methods inside the interface?

Answer :

They all must be public. Therefore, to prevent you from getting the false impression that you have any freedom of choice, you are not allowed to specify any accessibility, it is public by default.


Question 15 :

Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace? 

Answer :

There is no way to restrict to a namespace. Namespaces are never units of protection. But if you're using assemblies, you can use the 'internal' access modifier to restrict access to only within the assembly.