1.)What is Pinvoke ?
Pinvoke(Platform invoke) is a service that enables managed code to call unmanaged functions implemented in DLLs (dynamic-link libraries), such as those in the Win32 API.
2.)Is it true that COM objects no longer need to be registered on the server??
Yes. It is true that...
.NET Interview Questions and Answers Part 3
1.) What is CCW ?
This is also called COM Callable Wrapper.A proxy object generated by the common language runtime(CLR) so that existing COM applications can use managed classes, including .NET Framework classes, transparently.
2.) When do we absolutely have to declare a class as abstract ?...
General .NET Interview Questions and Answers Part 2
1.) What is .NET Assembly ?
A assembly is the smallest units of versioning and deployment in the .NET Application. In other way :- A single deployment unit is known as an assembly file. We generally use following assembly file in .NET Application.
Web services
Windows Services
Service components
Remoting Application
WCF Services
2.) What are the types of Assembly...
Multithreading Questions and Answers
1. ) What is thread ?
A thread is basically a separate sequence of instruction designed to performing a " specific task" in the program.
2. ) What is Multithreading in c# ? ...
Interface and operator overloading Questions and Answers
1.) What is an interface in c#?
An interface is a reference type in c#.It is basically a kind of class with some differences,which are given below:-
All the members of an interface are implicitly public and abstract.
We can not declare the interface members as static.
An interface can not contain constructors, destructors and constant fields.
An interface can inherit multiple interfaces.
2.) Can interface contain...
File Handling questions and answers
1. ) What are file and stream in asp.net?
A file is typically the principal means by which you can intact with a program .A file can be a data set that you can read,create ,delete,append and modify or a stream of bytes that are generated by the program.
More Details......
2. ) What is Namespace used in file & stream classes? ...
Exception Handling Questions and Answers
1. ) What is Exception Handling in c# ?
In Exception handling,we provide an alternate path,if some error occurs at run time instead of halting the programs.
2. ) What is Debugging ? ...
Delegates and Events Questions and Answers
1. ) What do you mean by call-back method?
In object -oriented programming, one object send to message to other objects,The methods are used to callback message are known as callback methods.
C# implements the callback technique in much safer and more object oriented manner,using the help of delegate objects.
2. ) What is the 'type safe' information? ...
oops Questions and Answers
1.) What is object oriented programming (oops) Language?
oops is is a methodology to write the program where we specify the code in form of classes and objects .oops supports three important features which are given below:
Encapsulation
Inheritance
Polymorphism
Note:- Abstraction is also basic oops concepts feature.But mainly three important feature of oops.
2.) What is object based Language? ...
Classes and Objects Questions in C#
1. ) what is class in C#?
A class is a user-defined data type with a template that serves to define its properties.
More Details...
2. ) How to declare a class in C#? ...
Structures and Enumerations Questions in C#
1. ) What is structure in C#?
A structure is an user defined data type which can contain different members as variable , Method ,properties etc. Structures are value type and stored on the stack memory.
2. ) What is the advantage of structure in C#? ...
Strings Questions and Answers
1.) What is String?
A string is a combination of sequence of characters.It is one of the built-in types ,provided by .net Framework.
2.) What is Mutable and Immutable string in C#? ...
Arrays Questions in C#
1. ) What is an array?
An array is a kind of variable which can hold multiple variable for same data type.
2. ) What are the steps involve for creation of an array?
Declaration of Arrays
Creation of Arrays
Initialization of Arrays
More...
Methods Questions in C#
1. ) What are the elements used in a Method Declaration?
Name of the Method
Type of value the Method returns ( type)
Lists of parameters
Body of the Method
Method Modifier(access-specifie...
Decision Making and Looping Questions
1.) What are the Decision making statements in C#?
If statement
Switch statement
Conditional operator statement
2. ) What is the Syntax of Switch statement?
switch(expression)
{
case 1:
...........statements.........
break;
case 2:
...........statements.........
break;
default:
...........statements.........
break;
...
Operators and Expressions Questions
1. ) What is an operator in C#?
An operator is a symbol that is used to perform certain Mathematical and Logical manipulations. operators are used in program to manipulate data and variables.
More Details...
2. ) What are Special operators in C#?
is Relational operator
as Relational operator
typeof type operator
sizeof ...
Variables and Data Types Questions
1.) What is a collection of Tokens in C#?
There are five types of token in c#.
Keywords
Identifier
Operators
Literals
Punctuators
More Details...
2.) What is Literal? ...
General C# Questions
1.) What is a Class?
A class is a user-defined data type.It is like a template.
2.) What is the importance of the Main Method in C# Program?
Every C# program start executing from the main method .We can not run any C# program without Main Method(),so Main Method is more important for executing any C# program.
3.) What are the types of comment styles in c#
Single Line comment (/*......*/)
Multiline comments (// .......)
More Details....
General .NET Questions and Answers
1.) What is .NET ?
.NET is a platform which is used to develop the different types of Applications..NET Consist on:-
.NET Framework
Visual Studio .NET IDE
2.) What is .NET Framework? ...
Powered by Blogger.