Showing posts with label Interview Questions. Show all posts
Showing posts with label Interview Questions. Show all posts

Tuesday, December 11, 2012

what is satellite assembly in asp.net


Assembly which contains only resources information is called as satellite assembly or "Resource only Assembly"
.net is providing Assembly linker utility (al.exe) to produced sattelite assembly

e:\vb.net al/embedresources my resources.resources/out:rassembly.dll
e:\vbnet92>dir r*.dll

It will produce raseembly.dll,this dll contains resources information.

Sattelite assembly exapmle

Wednesday, November 21, 2012

Difference between literal and label control in asp.net

Most of you confused when work these control.Because both controls are used to display the text.But there are some difference between those controls .
Main Difference:
Label control will display text in span tag .So we can apply styles to it.But literal control rendered out only text.Here i will show an example for how they behave in application



Sunday, November 18, 2012

Machine.Config and web.config


Machine.Config

The config files are used to give the instructions to the web pages,all config files are implemented using XML .using XML files we can give the instructions at the design time as well as at the run time. The machine.config file is web server level any wrong modification having in the machine.config file we Can not execute  any asp.net application

web.config:

Using web.config file we can give programmer defined instructions to the web pages.The web.config file is application level in the web application .We can work with multiple web.config files,when any wrong modifications having in the web.config file we can not execute current application only

Saturday, October 20, 2012

Difference between ExecuteNonQuery,ExecuteReader and ExecuteScalar

These three are OLEDB command class methods.Now we will see what is main difference between them
1.ExcuteNonQuery:
This method is required to execute DDL,DML,TCL and stored procedure
2.Execute Reader:
a)This method required to execute select statement
b)This is required while expecting multiple records
c)Execute Reader() returns the records in the format of Data Reader

3.Execute Scalar:
a)This is also required To execute select statement
b)required which expecting a Particular record
c)Execute scalar() returns object
d)Execute Scalar() checks for first match only,If the match is found ,then on first column value of the first record will returned



Difference between Sealed and Partial class in C#.Net

Sealed Class:
1.Sealed is a keyword
2.Sealed class are not inheritable
3.When ever a class is providing full functionality as per the requirements,then that class need to be declared as sealed

Partial class:
1.Partial keyword can be used with classes and interfaces
2.When a class or interface need be written in multiple locations with same name then those class or interfaces need to be partial

Here i will given an example on Partial class
//Open windows form project.Then place a button
//Code in General declaration
Interface test
{
void read();
void print();
}
Partial class testchild:Test
{
public void read()
{
Message.Show("Read");
}
}//testchild
Partial class testchild
{
public void print()
{
Message.Show("print");
}

//Code for button click
{
testchild tc=new testchild();
tc.read();
tc.print();
test t=new test();
t.read();
t.print();
}

Saturday, October 13, 2012

Difference between TCP channel and HTTP channel

TCP ChannelHTTP channel
Streambinary standard streamXML based stream
FormatCompressed formatText format
memoryconsume less memoryconsume Huge memory
CommunicationFastslow
platformsSupport homogeneoushomo and hetero geneous
Networksupports normal networksupport both normal and Internet

Saturday, September 1, 2012

difference between DLL and EXE

DLL:
1.A DLL is a dynamic link library can not run indivdually and linked to the applications at runtime
 2.In DLL doesn't contains any entry point[No main function so can't run individually]
3.A program/application without main creates a DLL
4.OS doesn't create a seperate process for any DLL rather DLL will use the same process created for the EXE

EXE:
1.Exe will run individually.Exe does not a supportive file rather itself an application
2.It contains entry point[main function so run individually]
3.A program/application with main creates a EXE
4.OS create a seperate process for each EXE process life that excutes

Wednesday, August 22, 2012

Difference between private assembly and shared assembly

Title:What is the difference between private and shared assembly

Description:This is question we are getting whenever attended to interview .Below are some of the differences
1.In private assembly all the referred DLL's will be copied into global project debug folder but in shared assembly will not.
2.Private assemblies are faster in accessing,when compare with shared assemblies
3.Memory wise shared assembly are recommended.
4.The private assembly is used when only one project need to be developed for a client but shared assembly is used when more then one project Need to be developed

Wednesday, June 27, 2012

Difference between Respost.Redirect and Server.Transfer

In this post i will given the difference between respose.redirect and server .Transefer
Server.Tranfer:
1.It can be used only for switching from one web form to another web form of the same application
2.It retains the context in which the actually requested web form is executing
3.This method can carry the current page values to new page
4.This method does not update the browser about new page that it is navigated to.
5.Page with our web application must be specified not the other web application
Respose.Redirect:
1.Redirect submits the respose to the browser asking browser to send a request for the new url and thus all the context of the previous is lost when the new url is excuting
2.It can be used for switching from web form of one web application to web form of another web application


Note:On refresh If Redirect is used it will the request for the new page where as if transfer is used browser submits the request for original page

Monday, April 16, 2012

globalization and localization in asp.net

Title: What is Globalization and Localization in asp.net

Description:
Providing content of your application in local is localisation.As assembly is targeted one particular assembly is satellite assembly.The extension of resource file .ress.Creating an .net application with the support for only one local language like Hindi is called as localisation and creating an application with the support of multiple languages is called as globalization

        For implementing localisation or globalization you need to create satellite assemblies.A satellite assembly is an assembly i:e targeted for one particular culture.For different cultures of different countries MS provides different key words.The keyword for US English culture is "EN-US",Keyword for Indian Hindi Culture ""HI-IN" and so on

  To create satellite assembly you need to create a resource file that has the extension .ress and this resource file will be compiled to a DLL file that is targeted for the culture for which resource file is created and this dll is called as satellite assembly

Wednesday, December 7, 2011

Difference between ADO and ADO.NET

Title:Difference between ADO and ADO.net

Below are some of the differences between ado.net and ado

ADO:
1.ADO are implemented using com technology
2.In the ADO we can store only one table in record set
3.Ado's doesn't support data relations
4.Ado's is not front end RDBMS
5.Ado's are connection oriented database management system
6.Using Ado's we can't integrate with XML
7.Using Ado's we can't generate sql statements
8.Ado,s are doesn't support data transactions

ADO.NET
1.ADO.NET are implemented using .net framework technology
2.In the ADO.NET we can store multiple tables in record set
3.Ado.NET support data relations
4.Ado.NET is not front end RDBMS
5.Ado.NET are connectionless oriented database management system
6.Using Ado.NET we can integrate with XML
7.Using Ado.NET we can generate sql statements
8.Ado.NET support data transactions

Sunday, November 27, 2011

Difference between value type and reference type data types in c#

Title: What is difference between Value and Reference type in C#.net

Description:While using  the c#.net we have to know some basic concepts such as data types.Now i would like to describe the features and difference of data types
Value Type:
1.Value type holds the data directly
2.value type doesn't contain default value
3.Value type should be in STACK memory at compile time
4.STACK is not accessible with Garbage collection(GC)
5.Example for value types:Structures,Enums etc
Reference Type:
1.Reference type holds the address but not data
2.Reference type holds the default value
3.Reference type will be stored in HEAP memory at run time
4.HEAP memory is accessible with GC
5.Example for Reference type:Classes,objects,arrays.Interfaces etc

Wednesday, November 23, 2011

Difference between Read(),Readline() and ReadKey in C#

Title:Difference between Read(),Readline() and ReadKey in C#

Description:
These methods can be used to read the values from the console and done some specific functionality on it.Each of the property is used to return the different values .The declaration of  static methods in console application as below

Read()        :accept the string value and return the string value.
Readline() :Accept the string and return Integer
ReadKey() : Accept the character and return Character


Declaration In Application:
Console.Read();
Console.Readline();
Console.ReadKey();
If we use Read line or Read() we need press Enter button to come back to code.If we using Read key() we can press any key to come back code in application

Sunday, November 20, 2011

Difference between Oracle 9i and 10g

9i is based on Internet technology and 10g is grid based one.

In 10g has some extra features are introduced comparing with 9i those are Automated storage management(ASM),
Automatic Database Diagnostic monitor(ADDM),
Automatic workload repository,
Automatic Checkpoint Tunning,
Streams Technology(STREAMS POOL),
Automatic SQL Tunning,Recovery Manager Enhancements(RMAN).
Built-in packages—(DBMS_SCHEDULER, DBMS_CRYPTO, DBMS_MONITOR)
Compile-time warnings
Number data type behaviors
An optimized PL/SQL compiler
Regular expressions
Set operators
Stack tracing errors
Wrapping PL/SQL stored programs

we can rollback after drop in 10g but in 9i can't rollback

10g is web based database management

Bel