Resources » Interview Tips » Technical Interviews

.NET interview questions for 5+ years of experience - OOPS, C#, ASP.NET, .NET Fundamentals


Posted Date: 21-Apr-2011  Last Updated:   Category: Technical Interviews    
Author: Member Level: Silver    Points: 5


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?


Did you like this resource? Share it with your friends and show your love!

Responses to ".NET interview questions for 5+ years of experience - OOPS, C#, ASP.NET, .NET Fundamentals"
Author: Saurabh Tyagi    25 Apr 2011Member Level: Silver   Points : 1
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



Author: SIVA RAMAMOORTHY    05 Dec 2011Member Level: Gold   Points : 2
C++ code after compilation will convert into Machine Code because its platform dependent. It means the application which compiled in windows will not be executed in other operating sys except Windows.

Coming to C#, its a .Net language and this is a platform Independent so it will generate the IL code, which will common for all .Net languages. So we can use this IL code in all other OS with the help of CLR, which will be integrate in .Net Framework



Guest Author: viswa     09 Apr 2012
Please send me the answer for the questions to vichu.it@gmail.com.


Guest Author: simanchal     23 Oct 2012
great questions pls ... if possible send me answer of this questions to simanchalswami@gmail.com


Guest Author: Madan     11 Dec 2012
Please send me the answers at madan.tiwari@gmail.com
thanks



Guest Author: Techi     26 Dec 2012
Please share answers for above questions to techreal9@gmail.com


Guest Author: lohitha     18 Oct 2013
Hi,
Questions are great. I need answers for the above. please do needful



Author: Aswini Aluri    10 Jan 2014Member Level: Silver   Points : 2
What is HTTP handler?
Ans:It is the process which runs in a response to a http request ,you can use it for generating sitemaps that you submit to search engines or for rendering images or tracking emails or rss feed etc...
Write a query to get all the table names?
Ans:select * from information _schema.tables



Author: Aswini Aluri    10 Jan 2014Member Level: Silver   Points : 1
11.How many does a page contain?
Ans:we can place more than one master page but it must be nested.



Guest Author: sunil     22 Jan 2014
Table A has 5 rows and table B has 7 rows. How many rows does "Select * from A, B" return?
return 12 rows



Author: AkshithRaj    03 Feb 2014Member Level: Bronze   Points : 1
16. Write a query to get all the table names.
Ans:- You will get all the tables in your related database.Example

Select * from SYS.TABLES



Author: AkshithRaj    03 Feb 2014Member Level: Bronze   Points : 2
What is difference between XAML and XML?
Ans:-
XAML stands for Extensible Application Markup Language XML stands for Extensible Markup Language XAML is based on XML, so it uses XML for its markup. If you look at a XAML document, it is also a valid XML document. But any XML document is not XAML.



Guest Author: Ritesh     19 Feb 2014
18. Table A has 5 rows and table B has 7 rows. How many rows does "Select * from A, B" return?

Ans: 5*7 = 35 (Cross Join)



Author: Ritesh    19 Feb 2014Member Level: Bronze   Points : 0
Question 18. Table A has 5 rows and table B has 7 rows. How many rows does "Select * from A, B" return?

Ans: It is Cross Join (5*7= 35). Answer will be 35.



Author: Sheela    26 May 2014Member Level: Bronze   Points : 0
Nice If It possible send me answer of this questions to
sheelin84@gmail.com



Guest Author: kaashiv infotech     10 Jun 2014
Super Blog.It provided best interview question which is very useful to me.keep it up.

Thank you,
Venkatesan Prabu.J
KaaShiv InfoTech



Guest Author: ashwini singh     10 Jun 2014
Nice.
If It possible send me answer of this questions to
ashwini.kulkarni82@gmail.com

Thanks for sharing your experience .



Author: Suresh    11 Jun 2014Member Level: Bronze   Points : 0
Good.
If It possible send me answer of this questions to
suresh.rajagopalnkl@yahoo.com

Thanks for sharing your experience .



Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Submit Article     Return to Article Index

    Subscribe to Subscribers
    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John

    Online Members

    jack
    More...
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India