.NET interview questions for 5+ years of experience - OOPS, C#, ASP.NET, .NET Fundamentals
Yesterday, I attended interview with Congruent Solutions, Chennai and mode of the interview was face to face. The interviewr mainly concentrated in C#, .NET Fundamentals and OOPs concents. Most of the questions look common but some of the questions are new. Q & A for .Net
Find .NET interview questions on OOPS, C#, ASP.NET, .NET Fundamentals
1. What is stack and heap?
2. Why C# codes are converted to IL and why C++ codes are converted to machine code not IL?
3. struct A
{
int a;
}
A.a.ToString();
What is the output?
4. How does the following code work? DataReader dr; for(DataRow r in dr) {}
5. What are delegates? How will you add more than one method to a delegate?
6. Does the following code work?
class A {}
class B : A {}
A = new B();
7. Two classes: a, b
________ fun()
{
int I = 10;
if(I == 10) return new a();
else return new b();
}
What will be the return parameter?
8. interface A { int print(); }
interface B { int print(); }
class C : A, B
{
int print() { Print "Welcome"; }
}
How will you call B's print method?
9. What is HTTPHandler?
10. What is the purpose of HTTP, SOAP in webservice.
11. How many master pages does a page contain?
12. Is it possible to have nested master pages?
13. What is difference between XAML and XML
14. How will you pass a table returned by a SP as parameter to another SP.
15. Where is the table name stored in SQL Server?
16. Write a query to get all the table names.
17. Consider a subquery is used in more than one query in a SP. How will you achieve this? That is how will you write a query that reuses a subquery?
18. Table A has 5 rows and table B has 7 rows. How many rows does "Select * from A, B" return?
will you have the answers of these question? i want the answers of question 2 and 10. if you have please send to my email s.tyagi022@gmail.com
///regards & thanks
SAURABH Tyagi