You are on page 1of 3

1. What is class and object?

A class is a blueprint which describes behaviors, properties and states that the object will have.
An object is the instance of a class, a class will not become an object unless it is instantiated.
2. What is managed and unmanaged code?
The code created by .net compiler is managed code and does not depend on the target machine.
Un-managed code is compiled directly to native machine code and depends on architecture of the
target machine.
3. What is LINQ?
Language integrated query is a set of feature that extends query capabilities to the .NET language
syntax by adding sets of new standard query operators that allow data manipulation, regardless
of the data source. LINQ bridges the gap between the world of objects and the world of data.
4. What is Garbage Collection?
It cleans up the memory which are abandoned. It destroys an object.
5. What is the difference between stack and heap?
Stack are stored value types inherited from system.ValueType and heap are stored refence types
inherited stystem.Object. Stack keeps and update of what is executing and where the thread is.
Heap is responsible for keeping track of the data.
6. What is encapsulation?
Hiding the state of an object as private or protected. It helps keep data from unwanted access
through binding code and data in an object.
7. What is inheritance?
Inheritance being one of the important concept in object oriented programming allows
developers to create new classes that reuse, extend and modify the behavior in other classes.
With inheritance a code can be written and debugged one class only and then reused the same
code.
8. What is an interface and an abstract class?
Interface declares only properties, methods and events with no access modifiers. An abstract
class provides a partial implementation for a functionality and some abstract members that must
be implemented by the inheriting entities.
9. What is API?
API is a set of building blocks that provide developers with tools and protocols to help them
build software apps.
10. What is a delegate in .NET?
Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate
object. The delegate object is then passed to code which can call the referenced method, without
having to know at compile time which method is invoked.
11. What are constants and read-only variables?
Constants are evaluated at the compile time whereas read-only are compiled at the runtime.
12. What is boxing and unboxing?
Boxing is the process of converting a value type object and unboxing is extracting the value
type from the object.
13. What is an Identifier?
Identifiers are names given to various entities uniquely identified in a program.
14. What does the break statement do in a switch statement?
The switch statement is a selection control statement that handles multiple choices and transfer
control to case statements. The break statement breaks the case statements within its body.
15. Difference between while and for loops?
The while and for loops are used to execute those units of code that need to be repeatedly
executed. The for loop is distinguished by setting an explicit loop variable.
16. What is .Net web service?
Web services are reusable components that allow developers to publish an application’s function
over the internet to make it accessible and able to directly interact with other applications and
objects online.
17. Define Overriding?
Overriding is a concept where a method in a derived class uses the same name, return type and
arguments as a methods in its base class.
18. Can you use multiple inheritance in .NET?
.Net supports only single inheritance.
19. What is business logic?
It handles the exchange of information between database and a user interface.
20. What is a component?
A component is a class that implements the IComponent interface or uses a class that
implements IComponent interface.
21. What is an Assembly?
An assembly is a reusable collection of types and resources which work together as a logical
unit of functionalities in .NET. They are assigned as executable (.EXE) or reusable
component (.DLL).
22. What is globalization?
Globalization is the process of customizing application that support multiple cultures and
regions.
23. What is localization?
Localization is the process of customizing applications that support a given culture and
regions.
24. What is application domain?
Application domain consumes less memory and power for processing the applications
compared to the traditional process of each application.
25. What are generics?
They allow you to write a class or method that can work with any data type.

You might also like