| Back to Questions Page |
| |
| Question |
Code to run exe like mspaint,autocad etc in asp.net. |
Rank |
Answer Posted By |
|
Question Submitted By :: Ragsngh |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | This code snippet executes mspaint exe. Try it
out.
Process p = new Process();
p.StartInfo.FileName = "mspaint";
p.Start();  |
| Rekha |
| |
| |
| Question |
What is a HashCode? |
Rank |
Answer Posted By |
|
Question Submitted By :: Santhoshini244 |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Unique number generated to identify a module in an
assembly. The hash code ensures that the proper version of
a module is loaded at runtime.  |
| Randy Luton |
| |
| |
| Question |
what is a callback function? |
Rank |
Answer Posted By |
|
Question Submitted By :: Santhoshini244 |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | one object to send message to other object is called
callback and the Methos use to call back message are known
as callback method.  |
| Amit Bhardwaj |
| |
| |
|
|
| |
| Answer | A function that is passed (by reference) to another
function. The other function calls the callback function
under defined conditions  |
| Www.lutix.com |
| |
| |
| Question |
Which is the best institute in hyderabad to learn
Sharepoint Portal? |
Rank |
Answer Posted By |
|
Question Submitted By :: Rameshp |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Peers Technologies,
Mythrivanam,
Ameerpet,
Hyderabad.  |
| Satya |
| |
| |
| Answer | n-tier technologies
naresh technologies  |
| Sreedhar |
| |
| |
| Question |
How you will handle session when deploying application in
more than a server? Describe session handling in a webform,
how does it work and what are the limits? |
Rank |
Answer Posted By |
|
Question Submitted By :: Rashmi |
| This Interview Question Asked @ Microsoft , Sdfs |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | we have Inproc server and outproc server
for storing session in different server we have to specify
in the webcofing mode="state" and state mode session to be
srialized. and it stores in aspnet_state.exe  |
| Frederickson |
| |
| |
| Answer | If we specify mode ="Inproc" session will store in
webserver itself under aspnet_wp.exe
If we specify mode = "Sqlserver" session will store in
sqlserver and it has to be serialized.  |
| Frederickson |
| |
| |
| Question |
What are the valid parameter types we can pass in an
Indexer ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Raju Ranjan Sinha |
| This Interview Question Asked @ CMC |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | IN,OUT,INOUT are the valid parameter types that we can pass
in a Indexer  |
| Dileep |
| |
| |
| Question |
localization using windows c# |
Rank |
Answer Posted By |
|
Question Submitted By :: Samy |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Globalization is the process of designing and developing
applications that function for multiple cultures.
Localization is the process of customizing your application
for a given culture and locale.  |
| Amit Bhardwaj |
| |
| |
| Answer | using system.resources;  |
| Kiran |
| |
| |
| Question |
How can we Achieve Late binding in C#.Can any give one example. |
Rank |
Answer Posted By |
|
Question Submitted By :: Rajesh |
| This Interview Question Asked @ Value-Labs |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Late Binding means compiler doesn't have any prior knowledge
about COM's methods and properties and it is delayed until
runtime. Actually program learns the addresses of methods
and properties at execution time only i.e. when those
methods and properties are invoked. Late bound code
typically refers client objects through generic data types
like 'object' and relies heavily on runtime to dynamically
locate method addresses. We do late binding in C# through
reflection. Reflection is a way to determine the type or
information about the classes or interfaces.  |
| Dileep |
| |
| |
| Answer | Polymorphism is the way of achieving late binding in csharp.
class A{}
class B:A{}
class Main
{
A a=new B();
}  |
| Sukriya |
| |
| |
| Answer | Its using Virtual functions.
When compiler encounters virtual keyword in an function
defination, instead of binding to the function directly,
the compiler writes a bit of dispatch code that at runtime
will look at calling objects realtype and calls the
function accordingly.
EX.
class baseClass
{
protected virtual void PrintMessage()
{
Console.WriteLine("Hi From Base Class");
}
}
class derivedClass : baseClass
{
protected override void PrintMessage()
{
Console.WriteLine("Hi From Derived Class");
}
}
public static void Main()
{
baseClass b = new baseClass();
baseClass bd = new derivedClass();
b.PrintMessage(); // prints "Hi From Base Class"
bd.PrintMessage(); // prints "Hi From Derived Class"
}
Here the runtime detects the correct type of object stored
in bd i.e. derivedClass and calls dericedClass
implementation of PrintMessage().  |
| Saurabh |
| |
| |
| Question |
What is the difference between readonly and const |
Rank |
Answer Posted By |
|
Question Submitted By :: KiranMadiraju |
| This Interview Question Asked @ Emphasis |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | both meant for constant values. a const field can only be
initialized at the declaretion of the field. a read only
field can be initialized either in initialization or in
constructer. therefore , reaadonly field can have different
values depending on the constructure used
also a const field is compile time constant , readonly
field can be used for runtime constants  |
| Sabina |
| |
| |
| Question |
Where are all .NET Collection classes located ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Partha |
| This Interview Question Asked @ TCS , Tcs |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | In System.Collections  |
| Nitin Kumar Tomar |
| |
| |
| Answer | hi,
in the .net all collection classes are located in
System.Collection namespace  |
| Mahavir |
| |
| |
| Answer | System.Collections  |
| Praveen |
| |
| |
| Answer | system.collections.  |
| Sowmya |
| |
| |
|
| |
|
Back to Questions Page |