In this site i have Posted lot of interview Question that I have faced when attended a interview in Various companies
1. Difference between Abstract class And Interface?
2. Difference between Abstract Method And Virtual Method?
3. Different way that Method should return multiple Outputs?
Answer from My side
class that contain return values.
Tuple
Out
ref
Dynamic
4 Difference Between Ref And Out KeyWord?
5. What Is Boxing And UnBoxing? Give live example on Boxing and boxing in your Web Application?
Boxing -Conversion of value type to reference type.
Unboxing -Convertion of reference type to value type.
In mvc
ViewData["Propery"] = intvalue; Require Type Casting
6. What is Session State? Where it get saved in Your Computer? or where it get stored?
Answer is
in Proc (in server memory)
StateServer (Managed by aspnep_state.exe)
SQLServer(sql server)
Custom
Off
7. What is the difference between Prerender And Render in Page life Cycle?
8. What is tedious page event in asp.net Page life cycle?
9, What is Singleton design Pattern? where it is used?
10. what is the difference between Post increment and pre increment?
Post Increment Add 1 to the value an return old Value
Example : int test = 1;
int bb = test++;
Now the above value test contains 2 and bb contains 1
Pre increment adds 1 and return the new value
Example : int test = 1;
int bb = ++ test;
value of test and bb is 2
11. Difference between Array And ArrayList?
12. What is Garbage collector? what are its generations?
13. Difference between string == string and string.Equal(string)
For example string aa= "Apple" string bb= "Apple"
aa== bb , aa.Equals(bb)?
14 Is it possible to place more than one .web config file in Asp.net project?
15. What is WCF Service?
16 .What are the different type of contract in WCF Service?
DataContract,
Operation Contract,
Service Contract
Message contract and
Fault Contract
17 if there is an error in consuming wcf service for example division by error how you throw to the end user?
Answer is Fault contract
18 What is a Linq? What is is advantages?
19. Difference between IQueriable<> and IEnumerable<>?
IEnumerable -in memory filter example : list.Take<custome>(10); -- in sql profiler the Query executed is Select customerID,CustomerName from Customer
IQueriable -executed selected query on client side and server side example : list.Take<customer>(10); -- in sql profiler the Query executed is Select TOP 10 customerID,CustomerName from Customer
20 What is he difference between Custom Control And User control in Asp.net?
21. Where we use Strong Naming?
Strong naming is used to give unique identity to assemblies like name, version number, and culture information (if provided)—provides a public key and a digital signature. strong naming Assemblies are identical. it solve dll problem in GAC
Technical Round
22. Write a chat Application Logic?
23. Why Repository Design Pattern ?What is the Advantage of using Repository Pattern?
24. Difference between MVC And Asp.net ? What is Its Advantages?
25. What is Difference between View Data, View Bag And Temp Data?
Answer is
ViewData And ViewBag both used to communicate with its corresponding View.
ViewData["Propery"] =object; Require Type Casting
ViewBag.prop1 =property1;
ViewBag.prop2 =property2; Require no type Casting
TempData used to transfer data from controller to controller if redirection Happens.
26. In MVC our URL look Like - HTTP//localhost/ Controller/Action/Parameters. is it possible to change like HTTP://localhost/Action/Controller/Parameters? How can you implement this?
27. Different Type of hosting in WCF?
Hosting in Internet Information Services(IIS),
Hosting in Windows Activation Services(WAS),
Hosting in a Console or Desktop application(Self hosting),
Hosting in a Windows Service.
28. What is the difference between WebSite And Web Application?
29. What is serialization in .net? Different type of serialization in Asp.net?
30 Difference between EDMX file And DBML File?
31 Why we need Partial Classes?
32. Why we need webApi?
33 what is the Diference between WCF And WEBAPI?
33 what is the difference between HTTPGET & HTTPPOST?
Http-Get
get datas from the serve
only getting data from the sver hense postback(reload,refresh) will not affect
data can be cached
data is visible in url - secuity is less
Http-Post
Update Data in the server - postback affect the data so end user ge warning when postback(reload,refresh) happend,
no caching
data not visible in the url - security is high
34 Can you tell us any three Performance tuning in SQL Server?
34 Can you tell how you implement performance tuning in your current web Application?
35 Please tell me which catch block executes from the below statement
try
{
int number1 = 3000;
int number2 = 0;
int result = number1 / number2;
/// Here division Error Occurs
}
catch (Exception ex)
{
throw ex;
}
catch (SqlException sqex)
{
throw sqex;
}
catch (DivideByZeroException dex)
{
throw dex;
}
i f you try to run the above code it throws error...
interviewer wants to know why the error occurs or they want to know which code blocks executes?
The answer to the Question is First Catch Block - Exception is the super type or base class for all other exception given above
1. Difference between Abstract class And Interface?
2. Difference between Abstract Method And Virtual Method?
3. Different way that Method should return multiple Outputs?
Answer from My side
class that contain return values.
Tuple
Out
ref
Dynamic
4 Difference Between Ref And Out KeyWord?
5. What Is Boxing And UnBoxing? Give live example on Boxing and boxing in your Web Application?
Boxing -Conversion of value type to reference type.
Unboxing -Convertion of reference type to value type.
In mvc
ViewData["Propery"] = intvalue; Require Type Casting
6. What is Session State? Where it get saved in Your Computer? or where it get stored?
Answer is
in Proc (in server memory)
StateServer (Managed by aspnep_state.exe)
SQLServer(sql server)
Custom
Off
7. What is the difference between Prerender And Render in Page life Cycle?
8. What is tedious page event in asp.net Page life cycle?
9, What is Singleton design Pattern? where it is used?
10. what is the difference between Post increment and pre increment?
Post Increment Add 1 to the value an return old Value
Example : int test = 1;
int bb = test++;
Now the above value test contains 2 and bb contains 1
Pre increment adds 1 and return the new value
Example : int test = 1;
int bb = ++ test;
value of test and bb is 2
11. Difference between Array And ArrayList?
12. What is Garbage collector? what are its generations?
13. Difference between string == string and string.Equal(string)
For example string aa= "Apple" string bb= "Apple"
aa== bb , aa.Equals(bb)?
14 Is it possible to place more than one .web config file in Asp.net project?
15. What is WCF Service?
16 .What are the different type of contract in WCF Service?
DataContract,
Operation Contract,
Service Contract
Message contract and
Fault Contract
17 if there is an error in consuming wcf service for example division by error how you throw to the end user?
Answer is Fault contract
18 What is a Linq? What is is advantages?
19. Difference between IQueriable<> and IEnumerable<>?
IEnumerable -in memory filter example : list.Take<custome>(10); -- in sql profiler the Query executed is Select customerID,CustomerName from Customer
IQueriable -executed selected query on client side and server side example : list.Take<customer>(10); -- in sql profiler the Query executed is Select TOP 10 customerID,CustomerName from Customer
20 What is he difference between Custom Control And User control in Asp.net?
21. Where we use Strong Naming?
Strong naming is used to give unique identity to assemblies like name, version number, and culture information (if provided)—provides a public key and a digital signature. strong naming Assemblies are identical. it solve dll problem in GAC
Technical Round
22. Write a chat Application Logic?
23. Why Repository Design Pattern ?What is the Advantage of using Repository Pattern?
24. Difference between MVC And Asp.net ? What is Its Advantages?
25. What is Difference between View Data, View Bag And Temp Data?
Answer is
ViewData And ViewBag both used to communicate with its corresponding View.
ViewData["Propery"] =object; Require Type Casting
ViewBag.prop1 =property1;
ViewBag.prop2 =property2; Require no type Casting
TempData used to transfer data from controller to controller if redirection Happens.
26. In MVC our URL look Like - HTTP//localhost/ Controller/Action/Parameters. is it possible to change like HTTP://localhost/Action/Controller/Parameters? How can you implement this?
27. Different Type of hosting in WCF?
Hosting in Internet Information Services(IIS),
Hosting in Windows Activation Services(WAS),
Hosting in a Console or Desktop application(Self hosting),
Hosting in a Windows Service.
28. What is the difference between WebSite And Web Application?
29. What is serialization in .net? Different type of serialization in Asp.net?
30 Difference between EDMX file And DBML File?
31 Why we need Partial Classes?
32. Why we need webApi?
33 what is the Diference between WCF And WEBAPI?
33 what is the difference between HTTPGET & HTTPPOST?
Http-Get
get datas from the serve
only getting data from the sver hense postback(reload,refresh) will not affect
data can be cached
data is visible in url - secuity is less
Http-Post
Update Data in the server - postback affect the data so end user ge warning when postback(reload,refresh) happend,
no caching
data not visible in the url - security is high
34 Can you tell us any three Performance tuning in SQL Server?
34 Can you tell how you implement performance tuning in your current web Application?
35 Please tell me which catch block executes from the below statement
try
{
int number1 = 3000;
int number2 = 0;
int result = number1 / number2;
/// Here division Error Occurs
}
catch (Exception ex)
{
throw ex;
}
catch (SqlException sqex)
{
throw sqex;
}
catch (DivideByZeroException dex)
{
throw dex;
}
i f you try to run the above code it throws error...
interviewer wants to know why the error occurs or they want to know which code blocks executes?
The answer to the Question is First Catch Block - Exception is the super type or base class for all other exception given above
Good Posting..... What about Answers... Would be grateful if you post answers to those questions......
ReplyDelete