Dot net Interview:
1. Which Control has a faster performance?
a) Data List
b) Data Grid
c) Repeater
Ans: Repeater
2. Base class included in All the webform Pages.
Ans: System.Web.UI.Page
3. Is String is Value Type OR Referance Type?
Ans: Reference type.
4. What is Smart Navigation?
Ans: Cursor position is maintained when the Page gets refreshed due to server side validation. This is called smart navigation.
5. How ASP.net is different from ASP?
Ans: In ASP.net scripting is seperated from the HTML code & is compiled as a DLL. This DLL can be executed on the server.
6. Whst is the use of @page directive?
Ans: @page directive is used to specify attributes that affects the page in the .aspx page.
7. What is deligates?
Ans: A deligate is an object that holds the referance to a method.
8. How does asp.net works?
Ans: When browser requests an asp.net page or file, IIS passes the request to the asp.net engine on the server. Asp.net engine reads the file line by line, and executes the scripts in the file. Finally the asp.net file is returned to the browser as a Plain HTML.
9. What is Stored Procedure in SQL?
Ans: Stored Procdure is already written SQL statments, that is Stored in the database.
10. Explain Execute Scalar in SQL?
Ans: Executes the query and returns only the first column of the first row in the result set. i.e. It retrives single value.
11. what is the name space for Unit Testing?
Ans: Microsoft.VisualStudio.Testtools.Unittesting;
12. Trace and Debug belongs to which namespaces?
Ans: System.Diagnostics;
13. What are Assemblies?
Ans: Assemblies are similar to dll files. Both has the reusable pieces of code in the form of classes/ functions. Dll needs to be registered but assemblies have its own metadata.
14. What is code-based security?
Ans: Determining whether or not a piece of code is allowed to execute & what resources it can use during execution.
15. Differance between Convert.Tostring() and .Tostring().
Ans: Both are same, but .Tostring() cant handle null values and will thro null referance exception.
Where as Convert.tostring() handles null values.
1. Which Control has a faster performance?
a) Data List
b) Data Grid
c) Repeater
Ans: Repeater
2. Base class included in All the webform Pages.
Ans: System.Web.UI.Page
3. Is String is Value Type OR Referance Type?
Ans: Reference type.
4. What is Smart Navigation?
Ans: Cursor position is maintained when the Page gets refreshed due to server side validation. This is called smart navigation.
5. How ASP.net is different from ASP?
Ans: In ASP.net scripting is seperated from the HTML code & is compiled as a DLL. This DLL can be executed on the server.
6. Whst is the use of @page directive?
Ans: @page directive is used to specify attributes that affects the page in the .aspx page.
7. What is deligates?
Ans: A deligate is an object that holds the referance to a method.
8. How does asp.net works?
Ans: When browser requests an asp.net page or file, IIS passes the request to the asp.net engine on the server. Asp.net engine reads the file line by line, and executes the scripts in the file. Finally the asp.net file is returned to the browser as a Plain HTML.
9. What is Stored Procedure in SQL?
Ans: Stored Procdure is already written SQL statments, that is Stored in the database.
10. Explain Execute Scalar in SQL?
Ans: Executes the query and returns only the first column of the first row in the result set. i.e. It retrives single value.
11. what is the name space for Unit Testing?
Ans: Microsoft.VisualStudio.Testtools.Unittesting;
12. Trace and Debug belongs to which namespaces?
Ans: System.Diagnostics;
13. What are Assemblies?
Ans: Assemblies are similar to dll files. Both has the reusable pieces of code in the form of classes/ functions. Dll needs to be registered but assemblies have its own metadata.
14. What is code-based security?
Ans: Determining whether or not a piece of code is allowed to execute & what resources it can use during execution.
15. Differance between Convert.Tostring() and .Tostring().
Ans: Both are same, but .Tostring() cant handle null values and will thro null referance exception.
Where as Convert.tostring() handles null values.
No comments:
Post a Comment