Skip to main content

Posts

Showing posts with the label Interview Question Answer

OOP Concept C# - Abstract Class can not be instantiated - Interview Question / Answers

What is an Abstract Class ?                Abstract class in C# is a class that having the keyword as abstract and this class may have abstract methods. It is a mechanism to show only relevant data. Is Abstract class can be instantiated ?                No, Abstract class cannot be instantiated. Whether abstract class can be derived ?    Yes Abstract class be derived and all the abstract class should be defined in the derived class. Write the syntax for abstract class.       abstract class ClassName { // to do ; class definition } Can we do abstract method in an abstract class ?    Yes, We can add abstract method in the abstract class.

ASP.NET Interview Questions / Answers

1. In which event IsPostBack Property checked? 2. What all are the Page Events Present in ASP.NET Life Cycle? 3. What is View State ? 4. Whether View State is Client Side State Management or Server Side State Management ? 5. What is Query String ? 6. How to enable Application Level Tracing in ASP.NET ? 7. Difference between Authentication & Authorization? 8. What is HTTP Handler ? 9. Extension for master page in ASP.NET? 10. In which format Web.config values are stored? 11. What does .aspx.cs mean? 12. How many cookies can we use for single web application ? 13. 

ASP.NET Life Cycle Events - In which event IsPostBack property checked ? Interview Question/Answer

In which event IsPostBack property checked ? Ans : PreInit.  Explanation :  In this event IsPostBack property validated. If it is true, then value are restored in controls from the ViewState. If it is false, then value are overwritten by next event. Also in this PreInit, It will create dynamic controls. It sets Master Page dynamically & theme property.