Interview Questions
Interview Questions
Ans) in the interface all methods must be abstract; in the abstract class some
methods can be concrete. In the interface no accessibility modifiers are allowed,
which is ok in abstract classes
1) both can't create instance of object.
2) abstraction is framework of all classess.interface also framework of all classes.
3) Abstractions having mustoverride method that declare in abstract class and
actually implement in derived class. Other method override in derived class is
depend on u.
4)but in interface class all declare method's u compulsory to override in derived
class.
2) What is serialization?
3) What is reflection?
USE tempdb
go
ALTER PROCEDURE ps_NonFatal_INSERT
@Column2 int =NULL
AS
INSERT NonFatal VALUES (@Column2)
IF @@ERROR <>0
BEGIN
PRINT 'Error Occured'
END
You use INNER JOIN to return all rows from both tables where there is a match. ie.
in the resulting table all the rows and colums will have values.
In OUTER JOIN the resulting table may have empty colums. Outer join may be either
LEFT or RIGHT
LEFT OUTER JOIN returns all the rows from the first table, even if there are no
matches in the second table.
RIGHT OUTER JOIN returns all the rows from the second table, even if there are no
matches in the first table.
Full Outer Join---For retrieving all the columns from both the tables irrespective of
column match
Ans) The char is a fixed-length character data type, the varchar is a variable-length
character data type.
Because char is a fixed-length data type, the storage size of the char value is equal
to the maximum size for this column. Because varchar is a variable-length data type,
the storage size of the varchar value is the actual length of the data entered,
Internal: Allows access to the class member only in the same assembly.
Protected internal: Allows access to the class member only within the same class,
from inherited classes, and other classes in the same assembly.
9) Runtime polymoraisum
-----------------------------------------------------------
1) Why u left the from your previous company with in a one year
2) What is .net frame work?
3) What is length of int and string?
4) What is difference between stack and heap? Which one is fast?
5) Which stored procedure you faced critically in your project?
6) Tell me the different types of cursors
7) What is view state?
8) What is session?
9) Array is reference type or value type.
10) How can you store the values from data grid to table in back end
Bangalore----------
Semantic by Venus
By SieraAtlantic
----------------
1) What is primary Key and composite key?
2) What is trigger and different types of trigger?
3) How to deploy your application
4) Can i use stored procedure in function?
ASP.NET
1) What IS DIFF HTTPPOST AND HTTPGET
2) What IS USE OF INERINFO.EXE
3) How TO READ THE COOKE IN ASP.MET
4) What IS CAS
5) How TO READ THE FILE IN ASP.NET
6) How to read the values from stored procedures.
7) What is interface and abstract?
8) What is array and array list?
-----------------Virtusa Questions------------------
1) The garbage collector (GC) of .NET completely absolves the developer from
tracking memory usage and knowing when to free memory.
Every application has a set of roots. Roots identify storage locations, which refer to
objects on the managed heap or to objects that are set to null.
objects in generation 0 are young objects that have never been examined by the
garbage collector.
Now, if more objects are added to the heap, the heap fills and a garbage collection
must occur
As even more objects are added to the heap, these new, young objects are placed in
generation 0. If generation 0 fills again, a GC is performed
----------------------------------------------------------------------------------------------------
Figure 4 Generations 0, 1, and 2
2)
----------------------------------------T.C.S-----------------------------------------------------
2)Type-safe
Ans) Code that accesses only the memory locations it is authorized to access, and
only in well- defined, allowable ways. Type-safe code cannot perform an operation
on an object that is invalid for that object
Ans) briefly speaking stack is used to store variable data of fixed length.
Heap is used to store data whose size and length can only be determined at runtime
and are subjected to change. But a reference to that data is stored on the stack.
Ans) automatically posts the page back to the server whenever the value of the
control in question is changed.
5) Post back
Ans) Post back is nothing but the process in which a Web page sends data back to
the same page on the server. So when the first time the page loads there is no post
back that is "Ispostback " is FALSE.
6) Post
Ans) sending the data to the one page to another or to the same page.
7) View state
Ans) The important fact about the View State is that it can only save the values for
page level access.
View state is a functionality of ASP.NET to preserve the values of controls on the
same page when page reload.
8) Delegate?
9) Foreign Key
Ans) a foreign key is a referential constraint between two tables
Referential integrity is usually enforced by the combination of a primary key or
candidate key (alternate key) and a foreign key. For referential integrity to hold, any
field in a table that is declared a foreign key can contain only values from a parent
table's primary key or a candidate key
Thus, a row in the referencing table cannot contain values that don't exist in the
referenced table
10) Composite Key
Ans)A key formed by combining at least two or more columns is called composite key
----------------------Bank Of America------------------
Web Service is software components that expose a service over the web.
What is WSDL?
Web Services Description Language is XML based language to describe how to
access a web service and what operations it will perform
HTTP Handlers - These are used for handling HTTP request with specified file
type. e.g.
What is hashtable?
You can say that Hash Table is just a table that contains two fields one is a
key field and other is a value field. you can store values for the corresponding key
into that Hash table
A subquery that references a column in the outer statement. The inner query is
executed for each candidate row in the outer statement.
What is self join?
If I have 20 pages if I am using one page directly it have to redirect to login page
how will you validate?
What is an interface?
What is pure polymorphism?
What is inheritance?
How will you implement multiple inheritances?
Hcl………..
Note: If a table has multiple AFTER triggers, then you can specify which
trigger should be executed first and which trigger should be executed last using the
stored procedure sp_settriggerorder. All the other triggers are in an undefined order
which you cannot control.
INSTEAD OF Triggers
So whenever a user tries to insert data into the view vwUserMaster, the INSTEAD OF
trigger trgOnView will automatically be executed.
A view or table can have only one INSTEAD OF trigger for each INSERT,
UPDATE and DELETE events.
We have seen that you can create any number of AFTER triggers on the table for the
same event, whereas you cannot do that with INSTEAD OF triggers.
In SQL SERVER 2000, views can be used to INSERT/DELETE and UPDATE the data in
the multiple tables, and this can be achieved using INSTEAD OF triggers.
From the output, it is clear that you cannot create two INSTEAD OF triggers on the
view/ table for the same event.
Triggers can be used in the following scenarios, such as if the database is de-
normalized and requires an automated way to update redundant data contained in
multiple tables
Ans): The fill factor is implemented only when the index is created
Trying to maintain the extra space on the data pages would defeat the
purpose of originally using the fill factor
Therefore, if the data in the table is significantly modified and new data
added, the empty space in the data pages can fill. In this situation, the index
can be re-created and the fill factor specified again to redistribute the data.
7) What is session? How many types is there to store the session in asp.net
Ans)
ASP.NET gives you a better way to store state for each user on the server with
the Session object. Every time a new browser hits your ASP.NET application, a new
Session object is created for that Web browser
Storage Location
2. Try
{
Io exception
}
Catch (exception)
{
File not found exception
}
Catch (exception)
{
Io exception
}
Finally
{
}