'tiger' senthil kumar


{ City } chennai
< Country > india
* Profession * software engineer
User No # 5233
Total Questions Posted # 0
Total Answers Posted # 54

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 1146
Users Marked my Answers as Wrong # 320
Answers / { 'tiger' senthil kumar }

Question { MMTS, 22666 }

About Virtual functions and their use ?


Answer

The Virtual is a keyword it used in the base class.When we
use the Virtual keyword in the function it must be override
in the inherited class with the same name.

Is This Answer Correct ?    35 Yes 21 No

Question { MMTS, 9599 }

How do you implement Inheritance in dot net ?


Answer

In c++ we include the :: operator.
In c# we include the " : "
here example
class class1
{
----
----
----
}

class class2 : class1
{
-----
-----
-----
}

when we use the multiple class for implementation,comman(,)
is used to seperate for the class

Is This Answer Correct ?    10 Yes 2 No


Question { CTS, 10513 }

About multi level and multiple inheritance how to achieve in
.net ?


Answer

.net supports directly to the multi level
inheritance.but .net doesnot support the multiple
inheritance directly instead of that we use interface used.

for example,multilevel inheritance

class a
{
-----
-----
-----
}

class b : a
{
-----
-----
-----
}

class c : b
{
----
----
----
}

multiple inheritance - interface
--------------------------------
interface a
{
-----
-----
-----
}

Is This Answer Correct ?    12 Yes 1 No

Question { Accenture, 13410 }

What is sequence of code in retrieving data from database ?


Answer

if you use sql server
SqlConnection con = new SqlConnection();
con.ConnectionString ="Data Source=servername;Initial
Catalog=databasename;";
con.Open();
String sql;
sql ="select * from tbl_tablename";
SqlCommand cmd = new SqlCommand(sql,con);
SqlDataReader reader;
reader = cmd.ExecuteReader();
while(reader.Read)
{
Console.WriteLine("Field1:"+read.GetString(0));
Console.WriteLine("Field1:"+read.GetString(1));
Console.WriteLine("Field1:"+read.GetValue(2));
}
con.Close();
}

Is This Answer Correct ?    9 Yes 4 No

Question { 10109 }

What r collections c sharp?


Answer

c-sharp have the collections.Thats very useful utility
package.
using System.Collections is the base class

stack
queue
hashtable
arraylist etc.., is the available class.

Is This Answer Correct ?    14 Yes 6 No

Question { 21969 }

What is the use of New Keyword


Answer

The keyword New is used to create the object for the
classes.using that object all the methods and properties
are invoked.

Is This Answer Correct ?    30 Yes 1 No

Question { 20136 }

How many Directives r in ASP.NET?


Answer

assembly directive
register directive
page directive
implements directive
import directive

Is This Answer Correct ?    18 Yes 15 No

Question { Wipro, 16218 }

Diff b/w casting and boxing


Answer

casting is convertion of data like integer to string,string
to interger,etc..,

but the boxing simply involves to convert the value types
to reference types.That means assigning the value to the
object.

Is This Answer Correct ?    8 Yes 7 No

Question { Wipro, 28948 }

How to merge 2 tables fields in DataTable in asp.net


Answer

you can use the query to merge the fields.that query will
be executed through the sqlcommand.

Is This Answer Correct ?    22 Yes 8 No

Question { IBM, 37685 }

What is the difference between Hash Table and Arrays?


Answer

Both the hash table and arrays is used to store the
element.hash table is derived from the collection base
class.array is the base class of system.object.array is
reference type.which is identified with the position of
array for both insertion and retreival.but the hash table
is stored the data with unique key which helps to refer the
data.

if it is right ok! other wise correct me.

Is This Answer Correct ?    37 Yes 8 No

Question { 12765 }

which property is used to lock a textbox to enter data?


Answer

TextBox.Enabled = True;

This property is used to lock the text box to enter data.

Is This Answer Correct ?    7 Yes 20 No

Question { Emphasis, 18641 }

Explain about throw keyword?


Answer

yes,its used to throw the user defined exception.

But its not always good habit to use throw exception.

Some times we can predict it will throw the exception.If we
know the error will come there in the earlier means why we
need to use the exceptions.we can solve it while writtting
code itself.

Is This Answer Correct ?    11 Yes 4 No

Question { HCL, 8579 }

Tell me something about Exceptions. What is the common
exception class?


Answer

Exception is used to handle the errors during the runtime of
the process.It has the three parts.Try,Catch,Finally.The try
is the part of the set of code.Whenever the errors occur in
the Try block it comeout from the try block and the catch
block handles exception class the error.
Finally is little differ from the catch.Because Finally is
must executable part whether it has error or not.

Mostly which is used for close the objects.

try
{
int i =10;
int sum =i/0;
Response.Write("sum is:"+sum);
}
catch(Exception oEx)
{
Response.Write("Error:"+oEx.ToString());
}
catch(DivideByZeroException oEx1)
{
Response.Write("Error:"+oEx1.ToString());
}

Is This Answer Correct ?    3 Yes 1 No

Question { Choice Solutions, 12190 }

Does c# supports destructors?


Answer

yes,C# allows destructor.

Is This Answer Correct ?    8 Yes 0 No

Question { Kanbay, 12309 }

what is application domain?


Answer

Every process has its own virtual memory.Becoz of its not
affect the another process when a process throws an
error.But .net it went one step ahead.Multiple application
can run on same process.But its divide into application
domain.Among the application domain the object invoke can be
done through the Remoting.

Is This Answer Correct ?    12 Yes 2 No

Prev    1   2    [3]   4    Next