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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories >> Software >> Microsoft-Related >> C-Sharp
 
 


 

Back to Questions Page
 
Question
Is IIS is required for installing the deployment of windows 
C#.netapplication and to run.
Rank Answer Posted By  
 Question Submitted By :: Jaishankar
I also faced this Question!!   © ALL Interview .com
Answer
i hope its not necessary to install for windows
application.it means with out IIS windows application can be
run...
 
0
Pavan Guptha
 
 
Question
What are properties and indexer?
Rank Answer Posted By  
 Question Submitted By :: Soft.narayan@gmail.com
This Interview Question Asked @   TCS
I also faced this Question!!   © ALL Interview .com
Answer
This answer posted by me soft.narayan@gmail.com,If u have
any query please let me know......

Using an object like an array is called Indexer.
Indexer is  similar to properties.Indexer is a collection of
set and get  procedures.Indexer name must be "this" only.
One class can have only one indexer.

Syntax to create Indexer:
string s
public string firstname
{
set{ s=value;}
get (return s;}
}

string[] x=new string[5];
public string this[inti]
{
set {x[i]=value}
get { return x[i]}
}
}

 
0
Soft.narayan@gmail.com
 
 
Answer
1. An index is identified by it's signature. But a property 
is identified it's name.
2. An indexer is always an instance member, but a property 
can be static also.
3. An indexer is accessed through an element access. But a 
property is through a member access.
 
0
Priya
 
 
 
Question
What is use of 
super class
Rank Answer Posted By  
 Question Submitted By :: Arifkhan017@gmail.com
This Interview Question Asked @   NIIT
I also faced this Question!!   © ALL Interview .com
Answer
Super class is one from which we derive a new class.
Only Existing class can be made as Super class.
C# has a super class or root class called "object" from 
which all classess are derived.
 
0
Preeti
 
 
Question
Hi to everybody. Lastweek i had taken an interview on c#.
They ask what is boxing & unboxing, Masking.Please tell the 
answer and it is useful for me.
Rank Answer Posted By  
 Question Submitted By :: Jaishankar
I also faced this Question!!   © ALL Interview .com
Answer
Boxing:converting from value types to reference type is
known as boxing.
Unboxing:Converting from reference types to value type is
known as unboxing.
 
0
Saubhagya
 
 
Answer
class Test
{
  static void Main()
  {
   int i = 1;
   object o = i;    // boxing
   int j = (int) o; // unboxing
  }
}
 
0
Mr. D
[Vignaraj Infotech]
 
 
Question
explain synchronous and asynchronous in C#
Rank Answer Posted By  
 Question Submitted By :: K_arunpatro
This Interview Question Asked @   Synechron
I also faced this Question!!   © ALL Interview .com
Answer
Usually the methods are synchronous. That means that you
call them, they gets executed. And when they finish you get
the control back.

The asynchronous methods are different. You call them. They
start executing, but return the control over the execution
back to the thread which called them while they continue to
execute in different thread.
 
0
Sharad Yadav
 
 
Question
How we free the memory in C#.NET.
Rank Answer Posted By  
 Question Submitted By :: K_arunpatro
This Interview Question Asked @   Synechron
I also faced this Question!!   © ALL Interview .com
Answer
by desructor or globilization
 
0
Geetanjali
 
 
Answer
Actually the freeing of the memory is done by the CLR 
automatically by calling the garbage collection routine.
But the declared objects by the user can be deallocated 
manually by using dispose function in the class by 
implementing IDisposable interface in the object class.
Otherwise it can also be done by implementing a destructor 
in the class, as the destructor defined will help 
deallocating the object allocation after the usage of the 
object gets over, i.e the object is not used anywhere else 
in the program.
 
0
Prashanth S
[NIIT]
 
 
Question
How u call destructor and dispose methode in c#.NET
Rank Answer Posted By  
 Question Submitted By :: K_arunpatro
I also faced this Question!!   © ALL Interview .com
Answer
Destructor: They are special methods that contain the
cleanup code for the object.You cannot call them explicitly
as they are called by GC implicitly.
Class MyClass
{
   ~MyClass()
    {
    }
}

public interface IDisposable
{
void Dispose();
}
Class Test:IDisposable
{
  protected void Dispose()
  {
     if(disposing)
     {
       // Code to dispose the managed resources of the class
     }
       // Code to dispose the un-managed resources of the class
   
       isDisposed = true;
     }
   
     public void Dispose()
     {
       Dispose(true);
       GC.SuppressFinalize(this);
     }

     
  }
}
 
0
Ruchika Mathur
 
 
Question
int i,string s, String s1 Which is valuetype which is
refrence type.
Rank Answer Posted By  
 Question Submitted By :: K_arunpatro
This Interview Question Asked @   Synechron
I also faced this Question!!   © ALL Interview .com
Answer
String s1
 
0
Bala
 
 
Answer
int i as valuetype 
string s,string s1 are reference types....
 
0
Spvarma
[NIIT]
 
 
Answer
int i is value type 
strings,s1 are refrence type
 
0
Geetanjali
[NIIT]
 
 
 
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