ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Microsoft-Related >> C-Sharp
 
 


 

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();
 
0
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.
 
0
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.
 
0
Amit Bhardwaj
 
 
 
Answer
A function that is passed (by reference) to another 
function. The other function calls the callback function 
under defined conditions
 
0
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.
 
0
Satya
 
 
Answer
n-tier technologies
naresh technologies
 
0
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
 
0
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.
 
0
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
 
0
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.
 
0
Amit Bhardwaj
 
 
Answer
using system.resources;
 
0
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.
 
0
Dileep
 
 
Answer
Polymorphism is the way of achieving late binding in csharp.
class A{}
class B:A{}
class Main
{
A a=new B();
}
 
0
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().
 
0
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
 
0
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
 
0
Nitin Kumar Tomar
 
 
Answer
hi,
in the .net all collection classes are located in 
System.Collection namespace
 
0
Mahavir
 
 
Answer
System.Collections
 
0
Praveen
 
 
Answer
system.collections.
 
0
Sowmya
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com