Interview FAQs


FAQs of level

Try this:
string path = System.Reflection.Assembly.GetExecutingAssembly().Location.ToString();

It will return the full path and the name of the executable.

To get only the full path, you can use:
string pathOnly = Application.StartupPath.ToString();

Reflection is a generic term that describes the ability to inspect and dmanipulate program elements at runtime. For example, reflection allows you to:

1. Enumrate the members of a type
2. Instantiate a new object
3. Execute the member of an object
4. Find out the information about a type
5. Find out the information about a assembly
6. Inspect the custom attributes applies to a type.
7. Create and compile new assembly

Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings.
Yes, if you are debugging via Visual Studio.NET, just go to Immediate window.
Positive test cases (correct data, correct output), negative test cases (broken or missing data, proper handling), exception test cases (exceptions are thrown and caught properly).
To the Console or a text file depending on the parameter passed to the constructor.
The tracing dumps can be quite verbose and for some applications that are constantly running you run the risk of overloading the machine and the hard drive there. Five levels range from None to Verbose, allowing to fine-tune the tracing activities.

Dispose: This method uses interface – “IDisposable” interface and it will free up both managed and unmanaged codes like – database connection, files etc.
Finalize: This method is called internally unlike Dispose method which is called explicitly. It is called by garbage collector and can’t be called from the code.

The caspol tool grants and modifies permissions to code groups at the user policy, machine policy, and enterprise policy levels.

Ilasm.exe is a tool that generates PE files from MSIL code. You can run the resulting executable to determine whether the MSIL code performs as expected.

Displaying 1 of 2Next
1 2
Need Help? Contact Us.

Log in


Forgot password?


New User