|
Question - Define assembly.
Answer - An assembly is the primary unit of a
.NET application. It includes an assembly manifest that
describes the assembly.
Question - What is Constructor? Answer -
It is the first method that are called on
instantiation of a type. It provides way to set default values
for data before the object is available for use. Performs
other necessary functions before the object is available for
use.
Question - What is Destructor?
Answer - It is called just
before an object is destroyed. It can be used to run clean-up
code. You can't control when a destructor is called since
object clean up by common language runtime.
Question -
Define Abstract class in C#.NET.
Answer -
Abstract class cannot be instantiated.
Same concept in C++
known as pure virtual method.
A class that must
be inherited and have the methods over-ridden.
A class
without any implementation.
Question - Explain serialization? Answer
- Serialization is a process of converting an object
into a stream of bytes. .Net has 2 serializers namely
XMLSerializer and SOAP/BINARY Serializer. Serialization is
maily used in the concept of .Net Remoting.
Question - C#.Net support
multiple inheritance, comment.
Answer
- No, but we can use interface instead.
Question -
Can private virtual methods be overridden
in C#.NET?
Answer -
No, moreover, you cannot access private methods in
inherited classes,
They have to be
protected in the base class to allow any sort of
access.
C#.NET Interview questions with answers posted
on July 22, 2008 at 8:10 am
Question - Is is possible to force garbage collector
to run?
Answer
Yes, we can force
garbage collector to run using System.GC.Collect().
|
Interview
questions and answers on .Net web service includes following
questions with answers
What is XML Web Server? | Describe the
Components that help locate and consume XML Web Service. |
Describe the process of communication between Client and Web
Service. | What are the components published while deploying
of Web Service? | Describe .disco file. | Describe the step to
be followed to access web service by client.
What is code security? What are the types?
| Define Principal object. | Define declarative and imperative
security. | Define role-based security. | Explain code access
security. | What is Code group? | Define the use of
Caspol.exe.
.NET Debug
& Trace Interview questions with
answers
What is break mode? What are the options
to step through code? | Debug Vs Trace. | Define trace class.
Define Listeners collection of Trace and Debug objects. |
Define Trace Switches.
.Net Framework
Interview Question with answers
Explain the .Net Framework. | Describe the
.Net Framework Architecture. | What are the components of the
.Net Framework. | Explain the role of assembly in the .Net
Framework. | Describe the GAC in the .Net Framework.
.NET
Assembly Interview questions with answers
Define .Net Assembly. | What does an
assembly contain? | Define a private assembly and a shared
assembly. | What are Satellite Assemblies? | What do you
understand by side-by-site execution of assembly? | How do you
create a resource-only assembly? | Explain how to retrieve
resources using ResourceManager class. | Define Strong Name. |
How do you apply a strong name to assembly? | Define Global
Assembly Cache. | How do you install assembly to the Global
Assembly Cache?
|