| Other C Sharp Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Can you store multiple data types in System.Array? | | 5 |
| directcast(123.34,integer) - should it throw an error? Why
or why not?
| Wipro | 2 |
| How to transpose rows into columns and columns into rows in
a multi-dimensional array? | Microsoft | 2 |
| Method1()
{
int a=0, b=0, c=0;
Monitor.Enter(this)
c = 12;
b = 3;
a = c/b
Moniter.Exit(this)
}
Method1()
{
int a=0, b=0, c=0;
c = 12;
b = 3;
lock(this){
a = c/b
}
}
Choose correct answer.
a. Upon completion, Method1 and Method2 release the lock
b. Upon Comletion, Method1 release the lcok and Method2 not.
c. Upon Completion, Method2 release the lock and Method1
not.
d. Upon Completion, neither Method1 or Method to release
the lock. | | 1 |
| If a base class has a bunch of overloaded constructors, and
an inherited class has another bunch of overloaded
constructors, can you enforce a call from an inherited
constructor to an arbitrary base constructor? | | 1 |
| What?s the .NET datatype that allows the retrieval of data
by a unique key? | | 2 |
| What?s the implicit name of the parameter that gets passed
into the class? set method? | | 1 |
| Write the sample code for threading in c# .net.. | Logica-CMG | 2 |
| What is the Difference between a sub and a function? | Wipro | 3 |
| Explain the difference between a sub and a function? | Wipro | 1 |
| How to include c++ header files in c# components? | | 1 |
| How can you sort the elements of the array in descending order? | Junosource | 1 |
| In a stored procedure 4 select stmts there.If error comes in
one select stmt will remaining normally executes? | Microsoft | 4 |
| what is a constructor? | Choice-Solutions | 2 |
| I am using a data table and a datagridview.
I am creating two columns in data grid view :
1)DataGridViewComboBoxColumn 2)DataGridViewTextBoxColumn.
The items of datagridviewcombo are the list of all items in
data table column 1.
I want that the data type of the DataGridViewTextBoxColumn
should be the same as the data type of the item selected
from the datagridviewcombo at runtime.
How can I do that.Also I want that each cell in column of
datatable should be of variable data type.
Pls help.
thnx.
| Storm | 1 |
| What are the ways to deploy an assembly? | | 1 |
| Suppose in a scenario if we want to display information only
until 4.00 p.m and after that
means after 4.00 p.m if any one tries to access the
information it should give error mesage.
Then how will you write a delegate for this ? Give coding.
| HP | 1 |
| What is the difference between protected and protected internal? | Fulcrum-Logic | 1 |
| Difference between direct type casting and using "as" keyword? | TCS | 1 |
| If I want to override a method 1 of class A and in class b
then how do you declare ? | MMTS | 2 |
| |
| For more C Sharp Interview Questions Click Here |