How many classes can a single .NET DLL contain?
many class store in single dll
What is serialization, how it works in .NET?
Serialization is the process of Converting Object into Bytes...it may be done by two different
Serialization is when you persist the state of an object to a storage medium so an exact copy can be
created at a later stage.
Serialization is used to save session state in ASP.NET.
Serialization is to copy objects to the Clipboard in Windows
Serialization is used by remoting to pass objects by value from one
domain to another
Can i change private assembly to shared assembly?How?
Yes, You can change from Private to Shared.
Get the SN using sn.exe
Add the SN to the Asse
Put the Assembly in GAC.
What is cts and cls?
What is wrong with the following line of code?
Ans: You can’t use the Transfer method with HTML pages. It works only with .aspx pages.
What are different types of
: Any thing declared as public can be accessed from anywhere.
: Any thing declared as private can’t be seen outside of its class.
: Any thing declared as protected can be accessed by classes in the same package and
ubclasses in the other packages.
: Can be accessed only to classes in the same package.
What is the difference between this() and super()?
can be used to invoke a constructor of the same class
can be used to invok
e a super class constructor.
What modifiers may be used with top
public, abstract and final
can be used for top
In what sequence does the finally block gets executed ?
If you put finally after a try block without a matching catch
block then it will be executed after the
If it is placed after the catch block and there is no exception then also it will be executed after the
If there is an exception and it is handled by the catch block then it will be executed
after the catch
What return type does constructor have ?
Constructor doesn’t have any return type.
WHAT ARE THE DIFFERENT TYPES OF ERRORS IN PHP?
Here are three basic types of runtime errors in PHP:
These are trivial, non
critical errors that PHP encounters while executing a script
example, accessing a variable that has not yet been defined. By default, such errors are not
displayed to the user at all
although you can change this default beha
These are more serious errors
for example, attempting to include() a file which does
not exist. By default, these errors are displayed to the user, but they do not result in script
3. Fatal errors:
These are critical e
for example, instantiating an object of a non
or calling a non
existent function. These errors cause the immediate termination of the script, and
PHP's default behavior is to display them to the user when they take place.
ly, these variations are represented by twelve different error types
How can we submit a form without a submit button?
If you don't want to use the Submit button to submit a form, you can use normal hyper links to
submit a form. But you need to use some
What are the differences between require and include, include_once
require_once() and include_once() are both the functi
ons to include and evaluate the specified file
only once. If the specified file is included previous to the present call occurrence, it will not be done
But require() and include() will do it as many times they are asked to do.
Number, String, Boolean, Function, Object, Null, Undefined.
What is a prompt box?
A prompt box allows the user to enter input by providing a text box.
How about 2+5+"8"?
Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so
78 is the result.