Dot NET Interview Questions and Answers For freshers and experienced | Dot NET Important Questions pdf
Dot NET Interview Questions and Answers For freshers and experienced | Dot NET Important Questions pdf : This Section Covers Dot NET Interview Questions and Answers For freshers and experienced . so this is useful candidates who are preparing dot net course for freshers and experienced . in this we gave asp dot net interview question and c # interview uestion so check below for more dot net question and answer . we cover basics of dot net , history of dot net, pros and cros of dot net
What is Dot net
- .NET is a software development platform or technology
- It’s not a Language
- n it supports multiple languages
- nEg : C#,vb dot net
.NET History
n July 2000, Microsoft announced a whole new software development framework for Windows called .NET in the Professional Developer Conference
languages supporting .NET now?
n
When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. The site DotNetLanguages.Net says 44 languages are supported
pros of dot net
n
Easy to understand
nCompatible with different programming languages like Visual Basic and C++ are complex languages that ease to projects transferring to different programming platform.
nEasily integrate into multiple formats
nEasy to install, access and use
nExtensive security
nReduce problems between different applications
nVarious online applications and tools
nUsability and flexibility
CONS Dot Net
n
• Framework runs only on Windows, restricting vendor choice
Users of prior Microsoft tools and technology face a potentially steep learning curve
nGetting older applications to run in new .Net environment may require effort
What tools can I use to develop applications. NET?
There are a number of tools, described here in ascending order of price:
· The Framework. NET is free and includes command-line compilers
C + +, C #, and VB.NET and various other services to help
development.
· ASP.NET Web Matrix is a free ASP.NET development environment from
Microsoft. And a graphical development environment, the download
comprises a single web server that can be used instead of IIS host to
ASP.NET applications. This opens up ASP.NET development for users
Windows XP Home Edition, which can not run IIS.
What is the CTS, and how does it relate to the CLS?
CTS = Common Type System. This is the full range of types that the. NET
includes runtime. Not at all. NET languages support all types of
CTS.
CLS = Common Language Specification. This is a subset of the CTS which all
Languages. NET is to support. The idea is that any program that
uses CLS-compliant types can interoperate with any program. NET written in
any language. This interoperability is very fine - for example a VB.NET class
can inherit from a class C #.
What is IL?
IL = Intermediate Language. Also known as MSIL (Microsoft Intermediate
Language) or CIL (Common Intermediate Language). All source code. NET
(In any language) is compiled to IL during development. The IL is then
converted into machine code at the location where the software is installed, or
(More commonly) at run time by a compiler Just-In-Time (JIT).
What is C #?
C # is a new language designed by Microsoft to work with. NET
framework. In their "Introduction to C #" whitepaper, Microsoft describe C #
as follows:
"C # is a simple, modern, object-oriented and type-safe programming language derived from C and C + +. C # (pronounced "C sharp") is firmly planted in the C and C + + family tree of languages, and will immediately familiar to C and C + + programmers. C # aims to combine the high productivity of Visual Basic and the raw power of C + +. " Substitute 'Java' for 'C #' in the quote above, and you'll see that
OOPS CONCEPTS
1) Encapsulation: Hiding internal implementation object and allow access to the overall interface of the object.
2) Inheritance: The ability to reuse a class members and members of its base class functions.
3) Polymorphism: The ability of objects to be represented in multiple forms. This is possible with the substitution and overload.
4) Abstraction: Describe an object with its unique and relevant features according to specific needs.
Object-oriented concepts?
Class: The formal definition of an object. The class acts as the template from which an instance of an object is created at run time. The class defines the properties of the object and the methods used to control the behavior of the object.
Object: An object is an instance of a class.
Encapsulation: hides detailed internal specification of an object, and publishes its external interfaces. Thus, users of an object should not comply with these interfaces. Encapsulation, data and methods of an internal object can be changed without changing the way of how to use the object.
Inheritance: A class that derives from another class - known as the base class - inherits the methods and properties. This promotes reuse and maintainability.
4) if I want to override a method 1 of class A and class B, then how can u declared
answer:
public virtual void method1 () {} .. In class A. public override void method1 () {} â € | â € | â € | € â | .. In class B.
About friend and protected friend
Friend / Internal: access throughout this particular meeting.
Protected Friend: access to this particular class and its child classes.
About multiple inheritance and how a multi chives. Net?
Multiple inheritance: ex. Public void Employee: People, iEmployee. Means a class can be inherited by more than one interface or inherit from a class and
more than one of the interfaces.
Multi-level inheritance: ex. Public void one () {} public void Client: {person} public void employee: {customer}.
) What is the IsPostBack property?
Is publication is a property of the page to check the weather of the page is loaded first time or in response to client callback.
Abstraction: the description of objects by defining their unique and relevant characteristics (properties). So an object can have 100s of properties normally only goods of importance to the situation described. (For example, the life policy premiums are generally high, while the time of day policy was purchased is generally not value).
Polymorphism allows objects to be represented in multiple forms. Even though classes are derived or inherited from the same parent class, each derived class has its own behavior. (Overriding and hiding methods)
What is a process, Session and Cookie?
1) Process: Is there a common thread of the application.
2) Session: state used to maintain the state of the user in the application.
3) Cookie: used to store user identification data on the client computer.
How is Polymorphism supports. Net?
Polymorphism of support for objects to represent different forms ..
What r the 2 types of support polymorphism. Net?
Redefinition and overloading
What is the difference between a private assembly and a shared assembly?
· Location and visibility: A private assembly is normally used by a a single application, and is stored in the application directory or a subdirectory. A shared assembly is normally stored in the global economy
Assembly cache, which is a repository of meetings held by the
. NET runtime. Shared assemblies are usually libraries of code that
will be useful for many applications, such as framework classes. NET.
· Versioning: The enforced constraints performance versions only
shared, not private assemblies assemblies.
3.4 How do assemblies find someone else?
By searching the directory paths. There are several factors that can affect
way (as the host application domain and the configuration files of the application), but
for private assemblies the search path is normally the application directory
and its subdirectories. For shared assemblies, the search path is normally
same as the private assembly path and the shared assembly cache.
0 comments:
Post a Comment