| Back to Questions Page |
| |
| Question |
Is it possible to use two versions of assembly at the same
time?If possible explain with code? |
Rank |
Answer Posted By |
|
Question Submitted By :: Kunchamprasad |
| This Interview Question Asked @ Tech-Mahindra |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | It is possible. I think it is called as side by side
execution. But i don't konow the code. If any one know
please write.  |
| Krishna |
| |
| |
| Answer | Off course Krishna is right it is called as side by side
execution
<Configuration>
<runtime>
<assemblyIdentity name="ABCD" publicKeyToken="Sometoken"
culture="neutral" />
<bindingRedirect
oldVersion="1.0.0.0-99999.99999.99999.99999"
newVersion="1.0.1445.38584" />
<codeBase version="1.0.1445.38584" href="C:\Program
Files\TPA\ABCD.dll" />
</dependentAssembly>
</runtime>
<Configuration>  |
| Sachin |
| |
| |
| Question |
what is the syntax code for oldb to connect oracle |
Rank |
Answer Posted By |
|
Question Submitted By :: Vinod |
| This Interview Question Asked @ IBM |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | i think oldb is not correct it's may b.
it is oledb
using system.data.oledb;
oledbconnection cn=new
oledbconnection("uid=<username>;pwd=<password>;server=<servername>");
cn.open();  |
| Srinivas.kinthada |
| |
| |
|
|
| |
| Answer | it is not oldb it may be oledb
using System.Data.Oledb;
Oledbconnection cn=new OleDbConnection
("Provider=Msdaora.1;uid=<username>;pwd=<pwd>;server=<server
name>");
cn.open();  |
| Raghavendra.v |
| |
| |
| Question |
can we throw execption from catchblock |
Rank |
Answer Posted By |
|
Question Submitted By :: Venkat001 |
| This Interview Question Asked @ Accenture |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | yes we can use 'throw' or new Exception.  |
| Suman Dey |
| |
| |
| Answer | the 'try' block contains the code which may have the
runtime errors. to handle that errors we use 'catch' block.  |
| Ganni [Kkinfotech] |
| |
| |
| Answer | We can throw exception in catch block
Like
try
{
int a=10/0;
}
catch(Exception ex)
{
throw ex;
}  |
| Nithya [Kkinfotech] |
| |
| |
| Question |
how do you do exception management |
Rank |
Answer Posted By |
|
Question Submitted By :: Venkat001 |
| This Interview Question Asked @ Accenture , Accenture |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | try - catch - finally. Catch most specific exceptions
first.  |
| Matt S |
| |
| |
| Question |
what is serilization? |
Rank |
Answer Posted By |
|
Question Submitted By :: Thirushakar |
| This Interview Question Asked @ Protech |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Serialization is the process of saving the state of an
object by converting it to a stream of bytes  |
| Thirushakar |
| |
| |
| Answer | serialization is process of converting object into stream  |
| Naidu |
| |
| |
| Answer | Serialization is a process of converting object into stream
of bytes.
Types of Serialization
1)XML Serialization
2)SOAP Serialization
3)Binary Serialization
4)Custom Serialization
In XML Serialization we can convert only public objects into
stream of bytes, where as in SOAP and Binary Serialization
we can convert private objects also.
In XML Serialization we can able to convert only objects
into stream of bytes, but in Binary Serialization we can
convert all the objects(Objects in Object) also.  |
| Nithya |
| |
| |
| Answer | SERIALIZATION:
serialization is the process of converting an
object or a graph of object in to a linear sequence of
bytes or stream.  |
| Annalakshmi |
| |
| |
| Answer | All the above descriptions are corret.
Seriallization is done for the faster accessing of remote
object. So it is mainly used in remoting.
Remoting is a concept in .Net which helps to access/make
use of remote (through internet) application(/object).
So the object requested is converted in to stream of bytes
and get transfered to the requsted application.  |
| Stanly Jose |
| |
| |
| Question |
Difference b/w dataset.clone and dataset.copy ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Thirushakar |
| This Interview Question Asked @ Protech |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Dataset.copy method copies both the structure and data
Clone just copy the structure of dataset  |
| Thirushakar |
| |
| |
| Question |
what is Execute NOn Query? |
Rank |
Answer Posted By |
|
Question Submitted By :: Thirushakar |
| This Interview Question Asked @ Protech , Sars Systems |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Execute non Query is used to execute more than one command
at the time (it is used for insert ,delete ,update)  |
| Thirushakar |
| |
| |
| Answer | this method is invoked whenever DMLcommands has
beenexcecuted  |
| Venkat |
| |
| |
| Answer | it returns the no. of queries executed successfully  |
| Anna |
| |
| |
| Answer | Execute Non Query(),is for insert,delete and update...
i.e for the statements which does'nt returns any value after
the execution.  |
| Nvns |
| |
| |
| Answer | Execute NOn Query  |
| R |
| |
| |
| Answer | Execute Non uery is used to perform catalog operations(i.e.
creating databse objcts such as tables) or to change the
data in database without using a dataset by executing
update, Insert and Delete operations.  |
| Arvind Nagar |
| |
| |
| Answer | it returns no of records updated and will be used for inert,
delete and updated operations  |
| Anjeswar |
| |
| |
| Answer | This method belongs to connection object.We call this
method to indicate that the stored procedure doesn't return
results for a query but rather than an integer indicating
how many rows are effected by the executed statement.  |
| Usha |
| |
| |
| Answer | EXECUTE NON QUERY IS COMMAND OBJECT METHOD USED TO
INSRET,DELETE,UPADTE DATA INTO A DATABASE  |
| Reshma |
| |
| |
| Question |
what is execute scalar? |
Rank |
Answer Posted By |
|
Question Submitted By :: Thirushakar |
| This Interview Question Asked @ Protech , Dohatec New Media |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Scalar will return only one value.
(ie we can read or write only one data at the time)  |
| Thirushakar |
| |
| |
| Answer | When we want any aggreagate answer then we use execute
scaler examples like avg,sum etc
this return one row and one column  |
| Versha |
| |
| |
| Answer | It Returns Single Scalar value as a result  |
| Anjeswar |
| |
| |
| Answer | This method is used to execute commands that return single
value rather than resultset.  |
| Usha |
| |
| |
| Answer | when we want to retrieve data that has single value then we
can prefer to execute scalar.  |
| Muthu Kumar |
| |
| |
| Answer | execute scalar return a object type value, by defalut it
will return first row of fst column value, mostly we used
it with aggregate function like sum(),max(),min(),avg()....  |
| Prabhat Saxena |
| |
| |
| Question |
what is garbage collection? |
Rank |
Answer Posted By |
|
Question Submitted By :: Thirushakar |
| This Interview Question Asked @ Protech |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | It is use to free the memory of the object r method in use.  |
| Thirushakar |
| |
| |
| Answer | leakage memory of unused and unreferenced objects  |
| Kvs |
| |
| |
| Answer | it is clr function
it is use to release those objext whitc is not longer useor
no longer refeances in application
it is System.GC.Collaction
 |
| Jiten |
| |
| |
| Answer | garbage collection is the process of clearing the memory of
unused objects, which will be taken care by CLR on
periodical basis.  |
| Ganni |
| |
| |
| Answer | Actually the new operater is used to allocate the memory to
an object that object not needed for longtime,so that
objects are thrown away or release from the memory by the
garbage collector.  |
| Kalidoss |
| |
| |
| Answer | Ofcourse, Garbage Collection is done for the memory
utilization (making use of memory space which is allocated
to the unused objects).
And this Garbage Collection is autometically done by the
CLR. Still we can also implicity for the CLR to collect the
unused memory allocated to unused objects. But that is not
at all necessary.
When a program is loaded into memory, it is organized into
three areas of memory, called segments: the text segment,
stack segment, and heap segment.
So the compiled code will reside in the text segment.
the variables like string, int ect..(value types) will
reside in stack segment.
the objects like class(reference type) will reside in the
heap segment.
So when a new object is created the Garbage Collector will
look unused objects and it will free them from the heap. so
that the new object can reuse the memory allocated to the
unused object.  |
| Stanly Jose |
| |
| |
| Question |
Can we return two values from a function? |
Rank |
Answer Posted By |
|
Question Submitted By :: Ranjanatyagi |
| This Interview Question Asked @ MD-Synergy |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | I think yes.. Function can return multiple values.. It's
not good practice.. but C# allows you.. Consider following
example
int Val;
GetValue(Val);
bool GetValue(out int Val)
{
Val = value;
return true;
}  |
| Niks |
| |
| |
| Answer | yes.
for example:
public int Add(int a,int b,out int c)
{
c=a+1;
return a+b;
}
when we call the Add method we will get the sum of the a
and b and can also use the value of c
like
int d=0;
int e= Add(2,3,d) ;
then the value of e will be 5 and the value of d will be 3.
 |
| Tarun Kumar |
| |
| |
| Answer | with the help of out paraeter we can return two value from
function  |
| Vinay Tiwari |
| |
| |
| Answer | in c# a function can return two values with the help of out
parameter.  |
| Ish Rastogi |
| |
| |
| Answer | Guys, you will be able to return n number of values, while
you are using arraylist.  |
| Ramu Annamalai |
| |
| |
| Answer | No. not at all. well that's the main difference between
functions and procedures. A function can return one n only
one value. We can write only one return statement and only
only return type.  |
| Rajani |
| |
| |
| Answer | yes we can return two values with the help of out keyword  |
| Vijay |
| |
| |
| Answer | No
only one value will return at a time but function may have
multiple output statement ..  |
| Vijay Saxena |
| |
| |
| Answer | just use recursive function call...  |
| Pramod |
| |
| |
| Question |
What is localization and Globalization? |
Rank |
Answer Posted By |
|
Question Submitted By :: Suresh |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | this is the concept used to develop multi language
applications in a project  |
| Anna |
| |
| |
| Answer | Both are system resources  |
| Srini |
| |
| |
| Answer | Globalization is the process of designing and developing
applications that function for multiple cultures.
Localization is the process of customizing your application
for a given culture and locale.  |
| Suresh |
| |
| |
| Question |
How many types of sessions are there? |
Rank |
Answer Posted By |
|
Question Submitted By :: Suresh |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | asp.net supports 2 types of sessions
inprocess:session maintained by application domain[default]
outprocess:session maintained outside application
domainexternal to worker process.the external process can be:-
(i)state server:is a service of o/s which comes with .net
installation.this supports temopary storage.
(ii)sqlserver:persistent storage is supported.
(iii)custom:requires manual coding
cookieless session:it is a concept of providing sessionid to
client by appending to url.  |
| Sushil |
| |
| |
| Answer | Four Types of Session Types-
1. InProc mode- which stores session state in memory on the
Web server. This is the default.
2.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.
3.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.
4.Custom mode- which enables you to specify a custom
storage provider.
5. Off mode- which disables session state.  |
| Braj Bhasker Singh |
| |
| |
| Question |
what is the syntax code for oldb to connect oracle? |
Rank |
Answer Posted By |
|
Question Submitted By :: Vinod |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | i think it's oledb may b.
in c#.net coding
1)
using oledd provider
1.system.data.oledb;
2.oledbconnection cn=new
oledbconnection("username=<username>;pwd=<password>;server=<servername>");
3.cn.open();
2)
using orcale provider
1.first u can give in u r application reference of
system.data.orcaleclient.dll file trough solutionexplorer of
u r application
(rt click the mouse--->over solutinexplorer--->and click add
reference--->click on project---> and select
system.data.orcaleclient.dll file--->ok )
2.using system.data.orcaleclient;
3.orcaleconnection cn=new
orcaleconnection("username=<username>;pwd=<password>;server=<servername>");
3.cn.open();
 |
| Srinivas.kinthada |
| |
| |
| Question |
In vb.net how to connect crystal report? |
Rank |
Answer Posted By |
|
Question Submitted By :: Vinod |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | click on solution explorer window right click and add to
add new item. the window will be displaded select the
crystal report we have save in any name but extensen is
used .rpt eg:sss.rpt  |
| Jaga |
| |
| |
| Question |
In c# how to connect crystal report? |
Rank |
Answer Posted By |
|
Question Submitted By :: Vinod |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | using CrystalDecison.Shared namespace  |
| H |
| |
| |
| Answer | using CrystalDecisions.Shared;(name Space
using CrystalDecisions.CrystalReports.Engine;(name space)  |
| Raja Mohamed |
| |
| |
|
| |
|
Back to Questions Page |