Skip to main content

Posts

Showing posts with the label Job Interview Questions

OOPS

Class: Class is concrete representation of an entity. It represents a group of objects, which posses similar attributes and behavior. Provides Abstraction and Encapsulations. A category name that can be given to group of objects of similar kind. Object: Object represents/resembles a Physical/real entity. An object is simply something you can give a name. Object Oriented Programming: is a Style of programming that represents a program as a system of objects and enables code-reuse. Encapsulation: Binding of attributes and behaviors. Hiding the implementation and exposing the functionality. Abstraction: Hiding the complexity. Defining communication interface for the functionality and hiding rest of the things. In .Net destructor can not be abstract. Can define Either Finalize / Destructor. For Destructor access specifiers can not be assigned. It is Private. Overloading: Adding a new method with the same name in same/derived class but with different number/types of parameters. Implements ...

ADO.Net

ADO.Net Components: Connection, Command, DataReader, DataAdapter Differentiate between DataSet and RecordSet: 1) DataSet is entire relation DB in memory. Table/Relation/Views While RecordSet is representation of Table. It do not contain information on relationships, Constraints, Keys. 2) DataSet is designed to work in disconnected mode. 3) There’s no concept of cursor-types in a DataSet 4) DataSet has no record pointer. 5) You can store many edits in a DS and write them in Original DataSource in a single call. 6) DataSet internally represents data with XML and can be serialized. Thus you can easily retrieve data from a DB and then write directly to XML file or reverse. DataSet is always disconnected? True What is advantage of DataReader over DataSet? DataReader is readonly stream of data returned from the DB as the query executes. It contains one row of data at a time and is restricted to forward-only. Supports to a access multiple result sets but only one at a time a...

ASP.Net

Different Types of Caching? Output Caching: stores the responses from an asp.net page. Fragment Caching: Only caches/stores the portion of page (User Control) Data Caching: is Programmatic way to Cache objects for performance. Authentication and Authorization : Authentication is identifying/validating the user against the credentials (username and password) and Authorization performs after authentication. Authorization allowing access of specific resource to user. Different Types of Directives : Page, Register, Control, OutputCache, Import, Implements, Assembly, Reference Difference between Server-Side and Client-Side : Server-Side code is executed on web-server and does not transmitted to client, while client-side code executed on client(browser) and is rendered to client along with the content. Difference Server.Transfer and Response.Redirect : Both ends the processing for the current request immediately. Server.Transfer start executing the another reso...

.Net Framework

.Net Framework : Is an environment that facilitates Object Oriented Programming Model for multiple languages. It wraps OS and insulates Software Development from many OS specific tasks such as file handling, memory allocation & management. It has two main components CLR and .Net Class Libraries . CLR : Common Language Runtime . It is heart of .Net Framework. Core of CLR is it’s execution engine which loads, executes and manages the managed code that has been compiled to Intermediate Language (MSIL). CTS : Common Type System . It defines the common set of types that can be used in different languages regardless of OS and hardware. Each language is free to provide/define it’s own syntaxes. CTS defines that how types are declared, used and managed in runtime. Most important addition is runtime support for cross language integration. It does: Establishes a Framework Provides Object Oriented Programming Model Defines set of rules that language must follow...