Sei sulla pagina 1di 7

Hi Friends this is wipro Technical round Which i gone through.

BUt i couldn't make up in HR Round Hope this experience Helps you to some extent. About Session management in .net?

There are three different techniques of managing session in ASP.NET InProc Session state is stored locally in memory of ASP.NET worker process. StateServer Session state is stored outside ASP.NET worker process and is managed by Windows service. Location of this service is specified by stateConnectionString attribute. SQLServer Session state is stored outside ASP.NET worker process in SQL Server database. Location of this database is represented by sqlConnectionString attribute.

Differences between session state and viewstate?

SessionState Can be persisted in memory, which makes it a fast solution. Which means state cannot be shared in the Web Farm/Web Garden. Can be persisted in a Database, useful for Web Farms / Web Gardens. Is Cleared when the session dies - usually after 20min of inactivity. ViewState Is sent back and forth between the server and client, taking up bandwidth. Has no expiration date. Is useful in a Web Farm / Web Garden
How do you the information about assembly?

The Assembly Information dialog box is used to specify the values of the .NET Framework global assembly attributes, which are stored in the AssemblyInfo file created automatically with your project
Write a query to get 3rd max sal? SELECT TOP salary FROM ( SELECT DISTINCT TOP 3 salary FROM employee ORDER BY salary DESC) a ORDER BY salary Syntax of stored procedure?

Stored procedures are special objects available in sql server. Its a precompiled statements where all the preliminary parsing operations are performed and the statements are ready for execution. Its very fast when compared to ordinary sql statements where the sql statements will undergone a sequence of steps to fetch the data Stored procedure involves various syntax based on the parameters passed. Let me show you a generic syntax for a stored procedure.
Code:

Create procedure procName as begin ----Your query should be return here end To execute the stored procedure we have to use exec command,
Code:

exec procName

Types of indexes?

1. A table can have 250 Indexes 2. One CLUSTERED Index 3. 249 NON-CLUSTERED Index
Clustered and Non clustered indexes?

Clustered index is unique for any given table and we can have only one clustered index on a table. The leaf level of a clustered index is the actual data and the data is resorted in case of clustered index. Whereas in case of non-clustered index the leaf level is actually a pointer to the data in rows so we can have as many non-clustered indexes as we can on the db.
Differences between primary and unique key?

Primay Key ----------1.There is only one Primary key for 1 table 2.It can contain Null value

Unique key -----------------there may be more than 1 Unique Key in table It Can contain Null Value

How many Non clustered indexes can a table have?

In older version we can create 249 only but in sql 2008 we can create 999
JOinS,Right oter,left outer,Full joins? Left outer joint

The result of a left outer join (or simply left join) for table A and B always contains all records of the "left" table (A), even if the join-condition does not find any matching record in the "right" table (B). This means that if the ON clause matches 0 (zero) records in B, the join will still return a row in the resultbut with NULL in each column from B. This means that a left outer join returns all the values from the left table, plus matched values from the right table (or NULL in case of no matching join predicate). If the right table returns one row and the left table returns more than one matching row for it, the values in the right table will be repeated for each distinct row on the left table.

Right outer join


A right outer join (or right join) closely resembles a left outer join, except with the treatment of the tables reversed. Every row from the "right" table (B) will appear in the joined table at least once. If no matching row from the "left" table (A) exists, NULL will appear in columns from A for those records that have no match in B. A right outer join returns all the values from the right table and matched values from the left table (NULL in case of no matching join predicate).

Method overloading,method overriding examples

When overriding, you change the method behavior for a derived class. e.g Clas A { Virtual void hi(int a) { } } Class B:A { public overrid void hi(int a) { } } Overloading simply involves having a method with the same name within the class. Example for Over loading Class A { class a()

{ } class a(int a) { } }
Differences between oracle 9i and sql server? The SQL Server 2000 advantages:

SQL Server 2000 is cheaper to buy than Oracle 9i Database. SQL Server 2000 holds the top TPC-C performance and price/performance results. SQL Server 2000 is generally accepted as easier to install, use and manage.

The Oracle 9i Database advantages: Oracle 9i Database supports all known platforms, not only the Windows-based platforms. PL/SQL is more powerful language than T-SQL. More fine-tuning to the configuration can be done via start-up parameters.

Different Validation controls? If you want to enable viewstate of all controls on a page How do you handle this? Do you enablwe each and every control viewsate? what is webfarm?

Term used to describe a web page that utilizes more than one computer or server to deliver its content. This setup is commonly only required for sites that generate a lot of traffic.
what is webgarden?

Web gardens are different from Web farms. A Web garden is configured on a single server by specifying multiple worker processes for an application pool. Web farms use multiple servers for a Web site.
Tell me about session state mode? ASP.NET session state supports several different storage options for session data. Each option is identified by a value in the SessionStateMode enumeration. The following list describes the available session state modes: * InProc mode, which stores session state in memory on the Web server. This is the default. * StateServer mode, which stores session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm. * SQLServer mode stores session state in a SQL Server database. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm. * Custom mode, which enables you to specify a custom storage provider.

* Off mode, which disables session state. You can specify which mode you want ASP.NET session state to use by assigning a SessionStateMode enumeration values to the mode attribute of the sessionState element in your application's Web.config file. Modes other than InProc and Off require additional parameters, such as connection-string values as discussed later in this topic. You can view the currently selected session state by accessing the value of the HttpSessionState..::.Mode property. Why to go for sql server mode eventhough we have inproc mode?

1. On security perspective SQL server mode in preferred. Yes you can tell me like i can use inproc
mode, so that, my data wont get exposed. But you cant achieve reusability. 2. If am having the sql server mode, i can retrieve the datas whenever i want those datas with authentication preferences. what are the requirements if session state mode should be sql server? How do you refer assemblies?

2. Right click ADD referenct folder in your project.


Add referenct dialog box will be opened. Click browse from your local system. Select your assembly and click ok. Your assembly gets added in your application. what are the parts of assembly?

3.
Part: The base class for all Web Parts part controls, which render a modular UI on a Web Forms page.

EditorPart : The base class for controls that reside in EditorZoneBase zones. Used to edit Web Part controls. CatalogPart : The base class for controls that reside in CatalogZoneBase zones, and that provide catalogs of available Web server controls (especially Web Part controls) that users can add to a Web page. WebPart : The base class for custom ASP.NET 2.0 Web Parts controls, adding to the base Part class features some additional UI properties, the ability to create connections, and personalization behavior.

what is reflection?

Page 43 in pdf book


How do you refer webservices? pointing your Web services and database references to alternate locations during development is to use a user.config file. Although you could change your app.config references directly, using a level of indirection keeps your production settings intact while carving out just the references to your Web services and database connections. To use this approach, you point your app.config file to a user.config file. You then store your user.config file with production settings in source control. Each user changes their user.config file to point to the dev or test locations

When u opt remoting when u opt web services?

If client and server belongs to same operation system then we have to go with remoting services..............
How the viewstate is stored?

view satate information is sotred in satate bag ,is object that hold valu when a form is posted
How do you debug your application? How do you handle custom error messages? Finally and dispose method sin .net? what is caching? Different types of caching? Difference between abstract class and interface? what is inheritance? OOps concepts? Explain the Architecture of current project? what is encapsulation?

Difference between stored procedure and userdefined functions? what is managed and unmanaged code? what does the sealed keyword means? How do you make a class not to be inherited? what is the challenging or memorable task you handled? what is the toughest situation u face din 3 yrs of ur career? After that MR round some basic questions like what are the primitive data types? where they are stored? How Garbage collector works ? Difference between string and string builder? Difference between casting and Boxing? class and object definitions? How do you handle the situation in which your client complining that page loading is much slow? How do you contact with your project manager? How do you maintain relationship with client? Do u go to client's place or will he come? How do you update daily the information to Project manager ? Will he come daily ? Can we wrote only try block without any catch blocks? will it give error? How frequently project meetings will be organised? If client requires more features will he directly contact you or the information comes through Team leader? Like this some questions Hope this will help you.

Potrebbero piacerti anche