Questions
Questions
What is the difference b/w stored procedure and function? 6. Difference between asp and asp.net? 7. How COM is related to the Java script? 8. What is shadowing? 9. Collections? 10. IEnumerable 11. IEnumerator 12. ICollection 13. IList 14. IDictionary 15. Partial Classes 16. Query string 17. View state 18. Date 19. Global.asax 20. Session.Clear()-----clear all the values and set to nullSession.RemoveAll 21. Session.Abandon()---- destroy the current session 22. Session.Remove("Time"); 23. Encrypt , Decrypt 24. Managed Code 25. Unmanaged Code 26. CLR 27. MSIL 28. Metadata 29. Native Code 30. CLS 31. Encapsulation 32. Polymorphism 33. Inheritance 34. Abstract 35. Virtual---Method Overriding 36. delegate 37. Internal 38. Override 39. Namespace 40. Interface 41. event 42. Identifier with @ 43. Var (Implicitly Typed)
44. x++ 45. x 46. Machine.config 47. Custom Errors 48. GAC 49. ActiveX Control 50. Strong Name 51. Manifest 52. Metadata 53. Reflection 54. Attributes 55. Web Service 56. Difference B/W Namespace and assembly 57. Windows process 58. Diff B/w Datagrid, Data list, Gridview and Repeater 59. diff b/w pixel, point and em? 60. Authentication Method? 61. Permanent Cookie 62. DLL 63. Session Management ---InProc---State ServerSQL Server 64. Static Class 65. static member 66. Static function 67. constructor -----------------------Hov------------------68. Boxing and Unboxing 69. Difference Between Div and Span 70. Server.Transfer Vs Response.Redirect 71. LINQ 72. will ASP.NET work without web.config 73. Response.Redirect Vs Response.Transfer 74. Server.Transfer 75. How can you apply 2 style properties to a control? 76. What is the difference between HTML and DHtml? 77. What is ACID? 78. How to set index to a column? 79. What is the expansion of Asax and Aspx? 80. Connection pooling and properties? 81. Integrated Security
1. 2. 3. 4. 5. 6. 7. 8.
What is fragment caching? sticky Session After web service reference what the client side operation? skeleton method What is the difference between abstract and static? What is the difference between abstract and interface? How the GC Works? When requesting web form to the server which one will be loaded first?
ASP.NET Page Life Cycle: During asp.net page life cycle there 10 events are processed. 1. Page Init Initializes all the objects for the controls in the pages with the default values specified. 2. load View state After the Initialization if page is posted back then view states are loaded as a collection of string name/value pair. 3. load post back data [ Post back ] If the page is posted back then the values stored in the view states are applied to the controls. 4. page Load The initialized controls are loaded into the page object. Suppose if we create any dynamic controls we would add it at this stage. 5. handling post back events [post back] This event is fired when the user action causes the post back. 6. Save View State The View state values generated from the server is encrypted and stored as hidden object in the form.
7. Page Pre Render This is the last stage before rendering page into the browser. We can add any client side script at this stage. 8. Page Render Generate client side codes (HTML, Scripts) to display the controls and events. 9. Dispose Releasing unmanaged Resources like database connections. 10. Unload Clears all the memory resource used by the CLR.
Asp Asp is Interpreted Asp is not object oriented language uses VB Script User Interface and Business Logics are written in single file State Managements are limited Code Reusable is not possible Asp uses Record set to Retrieve Data from Database Class Class is a Reference type. When we want to access a member function we need to create an instance of class. When creating member variable in the class we can define values for the variable. Class can be inherited. Stored in Heap Used to handle complex operation and data
Asp.NET Asp.Net is Compiled As.Net is object oriented it uses languages like C#,VB.NET User Interface and Business Logics are separated using partial class. State Management Codes can be reused when converted into an DLL. ASP.NET uses Data Adapter, Data set controls. Struct Struct is a Value type We can directly Access We can not predefine Struct can not be inherited, Polymorphism. Stored in Stack Used to handle simple operation Can not use as Default Constructor
SQL: 1. 2. 3. 4. 5. 6. 7. 8. 9. User Defined Function Procedure Aggregate Functions Scalar functions Outer join unions indexing[http://www.mssqltips.com/tip.asp?tip=1206] Full Text Server Cluster Indexing
10. Non Cluster Indexing 11. Filter Indexing 12. Constraints 13. Wild Cards 14. Date 15. views 16. Trigger 17. Union --------------------------------Hov-----------------------18. 3 rd Max Salary 19. How to fetch words with start with ra 20. Top 21. group by 22. curser 23. Transactions
SQL: 1. Stored Procedure: A Segment of SQL Code which contains procedural Sql Statements. Stored Procedures are already Compiled and Ready For the Execution. Stored Procedure resides in side the catalogs of SQL Server. Stored Procedure Can be Called from trigger, Another Stored Procedure, or functions Advantages: It is used to increases the performance of application because when we create stored procedures, they are compiled and stored in database catalog. Later when client applications call them, they are generally executed faster than uncompiled SQL statements which are sent from the client applications. The network traffic between application server and database server is also signification reduced because the applications don't have to send such long and uncompiled SQL statements to the server to get the data back. One of the most advantages of stored procedure is code reusability. Once created, a stored procedure can be reused over and over again by multiple applications
2. Scalar Functions: Min, Max, Count, Avg, Sum 3. Functions Scalar Functions --- Must Return a Single Value In Line Functions--- return a single row or multiple rows and can contain a single SELECT statement. Because in-line UDFs are limited to a single SELECT, they can't contain much logic Syntax: Create Function Func_Name(@id int) Returns table AS
Return ( select * from tblUser where id=@id) Multi Line Functions---- can contain any number of statements that populate the table variable to be returned. Notice that although you can use INSERT, UPDATE, and DELETE statements against the table variable being returned, a function cannot modify data in permanent tables
Disadvantages: UDF has No Access to Structural and Permanent Tables UDF can call Extended Stored Procedure, which can have access to structural and permanent tables. (No Access to Stored Procedure UDF Accepts Lesser Numbers of Input Parameter-1023, Sp-21000 Functions GETDATE() etc can not be used UDFs, but can be used in Stored Procedure UDF can not Execute Dynamic SQL or Temporary Tables UDF does not Support Error Handling 4. Outer Join OUTER JOIN is used to join two tables even if there is not a match. An OUTER JOIN can be used to return a list of all the customers and the orders even if no orders have been placed for some of the customers. A keyword, RIGHT or LEFT, is used to specify which side of the join returns all possible rows. I like using LEFT because it makes sense to me to list the most important table first. Except for one example demonstrating RIGHT OUTER JOIN, this article will use left joins. Just a note: the keywords INNER and OUTER are optional. Join or inner join ------used to fetch the matched record Left join or left outer join-----used to fetch left table even if its not matched Right join or right outer join----used to fetch right table event if its not matched Full join or full outer join-----used to fetch all the matched and unmatched rows.
JAVASCRIPT: 1. DOM Implementation 2. how will get selected value from textbox, select and option
Interview Questions (May be asked) 1. 2. 3. 4. Assembiles in C# ASP Controls Web Control / user control / Web forms ADO.NET, and its architecture To write a program where at a single click the web form (customer details) details are saved in the database using ADO.net 5. OOP Concepts and definition
6. Factorial programming 7. Classes and Objects 8. Difference between Visual Studio 2005 and 2008 9. N-tier architecture (concepts) 10. Properties of SQL Commands 11. Your current / previous project details 12. Swapping of numbers with out temp variable 13. Recursive programming 14. Basic of Dot Net ver 3.5 (WCF, WWF, WPF, LINQ)
Authentication: 1.windows authenication 2.Forms authentication 3.Passport authentication 4.GC Collector work? 5. Diff Bw Finalize and Dispose? 6.ASP.NET Page Life Cycle? 7. HTTP Handler?