ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories >> Software >> Microsoft-Related
 
  Visual-Basic (584)  C-Sharp (455)  ASP.NET (947)  VB.NET (88)  COM+ (37)
  ADO.NET (151)  IIS (61)  MTS (2)  Crystal-Reports (41)  BizTalk (14)
  Exchange-Server (61)  Microsoft-Related-AllOther (26)
 


 

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.
 
0
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>
 
0
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();
 
0
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();
 
0
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.
 
0
Suman Dey
 
 
Answer
the 'try' block contains the code which may have the 
runtime errors. to handle that errors we use 'catch' block.
 
0
Ganni
[Kkinfotech]
 
 
Answer
We can throw exception in catch block 

Like

try
{
int a=10/0;
}
catch(Exception ex)
{
throw ex;
}
 
0
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.
 
0
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
 
0
Thirushakar
 
 
Answer
serialization is process of converting object into stream
 
0
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.
 
0
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.
 
0
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.
 
3
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
 
0
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)
 
0
Thirushakar
 
 
Answer
this method is invoked whenever DMLcommands has 
beenexcecuted
 
0
Venkat
 
 
Answer
it returns the no. of queries executed successfully
 
0
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.
 
0
Nvns
 
 
Answer
Execute NOn Query
 
0
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.
 
0
Arvind Nagar
 
 
Answer
it returns no of records updated and will be used for inert,
delete and updated operations
 
0
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.
 
0
Usha
 
 
Answer
EXECUTE NON QUERY IS COMMAND OBJECT METHOD USED TO 
INSRET,DELETE,UPADTE DATA INTO A DATABASE
 
0
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)
 
0
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
 
0
Versha
 
 
Answer
It Returns Single Scalar value as a result
 
0
Anjeswar
 
 
Answer
This method is used to execute commands that return single 
value rather than resultset.
 
0
Usha
 
 
Answer
when we want to retrieve data that has single value then we
can prefer to execute scalar.
 
0
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()....
 
0
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.
 
0
Thirushakar
 
 
Answer
leakage memory of unused and unreferenced objects
 
0
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
 
0
Jiten
 
 
Answer
garbage collection is the process of clearing the memory of 
unused objects, which will be taken care by CLR on 
periodical basis.
 
2
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.
 
0
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.
 
5
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; 
    }
 
0
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.
 
0
Tarun Kumar
 
 
Answer
with the help of out paraeter we can return two value from
function
 
0
Vinay Tiwari
 
 
Answer
in c# a function can return two values  with the help of out
parameter.
 
0
Ish Rastogi
 
 
Answer
Guys, you will be able to return n number of values, while 
you are using arraylist.
 
0
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.
 
0
Rajani
 
 
Answer
yes we can return two values with the help of out keyword
 
0
Vijay
 
 
Answer
No
only one value will return at a time but function may have 
multiple output statement ..
 
0
Vijay Saxena
 
 
Answer
just use recursive function call...
 
0
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
 
0
Anna
 
 
Answer
Both are system resources
 
0
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.
 
4
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.
 
0
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.
 
0
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();
 
0
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
 
0
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
 
0
H
 
 
Answer
using CrystalDecisions.Shared;(name Space
using CrystalDecisions.CrystalReports.Engine;(name space)
 
0
Raja Mohamed
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com