1 . When was .NET announced?
Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET ‘vision’. The July 2000 PDC had a number of sessions on .NET technology, and delegates were given CDs containing a pre-release version of the .NET framework/SDK and Visual Studio.NET.
2 . What versions of .NET are there?
The final versions of the 1.0 SDK and runtime were made publicly available around &6pm PST on 15-Jan-2002. At the same time, the final version of Visual Studio.NET was made available to MSDN subscribers.
.NET 1.1 was released in April 2003, and was mostly bug fixes for 1.0.
.NET 2.0 was released to MSDN subscribers in late October 2005, and was officially launched in early November.
3 . What operating systems does the .NET Framework run on?
The runtime supports Windows Server 2003, Windows XP, Windows 2000, NT4 SP6a and Windows ME/98. Windows 95 is not supported. Some parts of the framework do not work on all platforms – for example, ASP.NET is only supported on XP and Windows 2000/2003. Windows 98/ME cannot be used for development
IIS is not supported on Windows XP Home Edition, and so cannot be used to host ASP.NET. However, the ASP.NET Web Matrix web server does run on XP Home
The .NET Compact Framework is a version of the .NET Framework for mobile devices, running Windows CE or Windows Mobile.
The Mono project has a version of the .NET Framework that runs on Linux.
4 . What tools can I use to develop .NET applications?
There are a number of tools, described here in ascending order of cost:
The .NET Framework SDK is free and includes command-line compilers for C++, C#, and VB.NET and various other utilities to aid development.
SharpDevelop is a free IDE for C# and VB.NET.
Microsoft Visual Studio Express editions are cut-down versions of Visual Studio, for hobbyist or novice developers.There are different versions for C#, VB, web development etc. Originally the plan was to charge $49, but MS has decided to offer them as free downloads instead, at least until November 2006.
Microsoft Visual Studio Standard 2005 is around $300, or $200 for the upgrade.
Microsoft VIsual Studio Professional 2005 is around $800, or $550 for the upgrade
At the top end of the price range are the Microsoft Visual Studio Team Edition for Software Developers 2005 with MSDN Premium and Team Suite editions.
You can see the differences between the various Visual Studio versions here.
5 . Why did they call it .NET?
I don’t know what they were thinking. They certainly weren’t thinking of people using search tools. It’s meaningless marketing nonsense.
6 . What is the CLI? Is it the same as the CLR?
The CLI (Common Language Infrastructure) is the definiton of the fundamentals of the .NET framework – the Common Type System (CTS), metadata, the Virtual Execution Environment (VES) and its use of intermediate language (IL), and the support of multiple programming languages via the Common Language Specification (CLS). The CLI is documented through ECMA – see http://msdn.microsoft.com/net/ecma/ for more details.
The CLR (Common Language Runtime) is Microsoft’s primary implementation of the CLI. Microsoft also have a shared source implementation known as ROTOR, for educational purposes, as well as the .NET Compact Framework for mobile devices. Non-Microsoft CLI implementations include Mono and DotGNU Portable.NET.
7 . What is IL?
IL = Intermediate Language. Also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code (of any language) is compiled to IL during development. The IL is then converted to machine code at the point where the software is installed, or (more commonly) at run-time by a Just-In-Time (JIT) compiler.
8 . What is C#?
C# is a new language designed by Microsoft to work with the .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 be 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 the statement still works pretty well :-).
9 . What does ‘managed’ mean in the .NET context?
The term ‘managed’ is the cause of much confusion. It is used in various places within .NET, meaning slightly different things.
Managed code: The .NET framework provides several core run-time services to the programs that run within it – for example exception handling and security. For these services to work, the code must provide a minimum level of information to the runtime. Such code is called managed code.
Managed data: This is data that is allocated and freed by the .NET runtime’s garbage collector.
Managed classes: This is usually referred to in the context of Managed Extensions (ME) for C++. When using ME C++, a class can be marked with the __gc keyword. As the name suggests, this means that the memory for instances of the class is managed by the garbage collector, but it also means more than that. The class becomes a fully paid-up member of the .NET community with the benefits and restrictions that brings. An example of a benefit is proper interop with classes written in other languages – for example, a managed C++ class can inherit from a VB class. An example of a restriction is that a managed class can only inherit from one base class.
10 . What is an assembly?
An assembly is sometimes described as a logical .EXE or .DLL, and can be an application (with a main entry point) or a library. An assembly consists of one or more files (dlls, exes, html files etc), and represents a group of resources, type definitions, and implementations of those types. An assembly may also contain references to other assemblies. These resources, types and references are described in a block of data called a manifest. The manifest is part of the assembly, thus making the assembly self-describing.
An important aspect of assemblies is that they are part of the identity of a type. The identity of a type is the assembly that houses it combined with the type name. This means, for example, that if assembly A exports a type called T, and assembly B exports a type called T, the .NET runtime sees these as two completely different types. Furthermore, don’t get confused between assemblies and namespaces – namespaces are merely a hierarchical way of organising type names. To the runtime, type names are type names, regardless of whether namespaces are used to organise the names. It’s the assembly plus the typename (regardless of whether the type name belongs to a namespace) that uniquely indentifies a type to the runtime.
Assemblies are also important in .NET with respect to security – many of the security restrictions are enforced at the assembly boundary.
Finally, assemblies are the unit of versioning in .NET – more on this below.
11 . How can I produce an assembly?
The simplest way to produce an assembly is directly from a .NET compiler. For example, the following C# program:
public class CTest
{
public CTest() { System.Console.WriteLine( “Hello from CTest” ); }
}
can be compiled into a library assembly (dll) like this:
csc /t:library ctest.cs
You can then view the contents of the assembly by running the “IL Disassembler” tool that comes with the .NET SDK.
Alternatively you can compile your source into modules, and then combine the modules into an assembly using the assembly linker (al.exe). For the C# compiler, the /target:module switch is used to generate a module instead of an assembly.
12 . What is the difference between a private assembly and a shared assembly?
The terms ‘private’ and ‘shared’ refer to how an assembly is deployed, not any intrinsic attributes of the assembly.
A private assembly is normally used by a single application, and is stored in the application’s directory, or a sub-directory beneath. A shared assembly is intended to be used by multiple applications, and is normally stored in the global assembly cache (GAC), which is a central repository for assemblies. (A shared assembly can also be stored outside the GAC, in which case each application must be pointed to its location via a codebase entry in the application’s configuration file.) The main advantage of deploying assemblies to the GAC is that the GAC can support multiple versions of the same assembly side-by-side.
Assemblies deployed to the GAC must be strong-named. Outside the GAC, strong-naming is optional.
13 . How do assemblies find each other?
By searching directory paths. There are several factors that can affect the path (such as the AppDomain host, and application configuration files), but for weakly named assemblies the search path is normally the application’s directory and its sub-directories. For strongly named assemblies, the search path is the GAC followed by the private assembly path.
14 . How does assembly versioning work?
An assembly has a version number consisting of four parts, e.g. 1.0.350.1. These are typically interpreted as Major.Minor.Build.Revision, but this is just a convention.&
The CLR applies no version constraints on weakly named assemblies, so the assembly version has no real significance.
For strongly named assemblies, the version of a referenced assembly is stored in the referring assembly, and by default only this exact version will be loaded at run-time. If the exact version is not available, the referring assembly will fail to load. It is possible to override this behaviour in the config file for the referring assembly – references to a single version or a range of versions of the referenced assembly can be redirected to a specific version. For example, versions 1.0.0.0 to 2.0.0.0 can be redirected to version 3.0.125.3. However note that there is no way to specify a range of versions to be redirected to. Publisher policy files offer an alternative mechanism for redirecting to a different version for assemblies deployed to the GAC – a publisher policy file allows the publisher of the assembly to redirect all applications to a new version of an assembly in one operation, rather than having to modify all of the application configuration files.
The restrictions on version policy for strongly named assemblies can cause problems when providing patches or ‘hot fixes’ for individual assemblies within an application. To avoid having to deploy config file changes or publisher policy files along with the hot fix, it makes sense to reuse the same assembly version for the hot fix. If desired, the assemblies can be distinguised by altering the assembly file version, which is not used at all by the CLR for applying version policy. For more discussion, see Suzanne Cook’s When to Change File/Assembly Versions blog entry.
Note that the versioning of strongly named assemblies applies whether the assemblies are deployed privately or to the GAC.
15 . How can I develop an application that automatically updates itself from the web?
For .NET 1.x, use the Updater Application Block. For .NET 2.x, use ClickOnce.
16 . What is an application domain?
An AppDomain can be thought of as a lightweight process. Multiple AppDomains can exist inside a Win32 process. The primary purpose of the AppDomain is to isolate applications from each other, and so it is particularly useful in hosting scenarios such as ASP.NET. An AppDomain can be destroyed by the host without affecting other AppDomains in the process.
Win32 processes provide isolation by having distinct memory address spaces. This is effective, but expensive. The .NET runtime enforces AppDomain isolation by keeping control over the use of memory – all memory in the AppDomain is managed by the .NET runtime, so the runtime can ensure that AppDomains do not access each other’s memory.
One non-obvious use of AppDomains is for unloading types. Currently the only way to unload a .NET type is to destroy the AppDomain it is loaded into. This is particularly useful if you create and destroy types on-the-fly via reflection.
17 . Can I write my own .NET host?
Yes. For an example of how to do this, take a look at the source for the dm.net moniker developed by Jason Whittington and Don Box. There is also a code sample in the .NET SDK called CorHost.
18 . What is garbage collection?
Garbage collection is a heap-management strategy where a run-time component takes responsibility for managing the lifetime of the memory used by objects. This concept is not new to .NET – Java and many other languages/runtimes have used garbage collection for some time.
19 . Is it true that objects don’t always get destroyed immediately when the last reference goes away?
Yes. The garbage collector offers no guarantees about the time when an object will be destroyed and its memory reclaimed.&
There was an interesting thread on the DOTNET list, started by Chris Sells, about the implications of non-deterministic destruction of objects in C#. In October 2000, Microsoft’s Brian Harry posted a lengthy analysis of the problem. Chris Sells’ response to Brian’s posting is here
20 . Why doesn’t the .NET runtime offer deterministic destruction?
Because of the garbage collection algorithm. The .NET garbage collector works by periodically running through a list of all the objects that are currently being referenced by an application. All the objects that it doesn’t find during this search are ready to be destroyed and the memory reclaimed. The implication of this algorithm is that the runtime doesn’t get notified immediately when the final reference on an object goes away – it only finds out during the next ‘sweep’ of the heap
Futhermore, this type of algorithm works best by performing the garbage collection sweep as rarely as possible. Normally heap exhaustion is the trigger for a collection sweep.
112 thoughts on - 20 .Net Interview Question with Answers Part 1
http://buystromectolon.com/ – Stromectol
Stromectol
Viagra Y Sertralina
Viagra Sin Disfuncion Erectil
Viagra
propecia medication
Amoxicillin For Children
https://buypropeciaon.com/ – Propecia
Fluoxetine Online
order cialis
http://buytadalafshop.com/ – Cialis
https://buysildenshop.com/ – Viagra
https://buypriligyhop.com/ – Priligy
Priligy
Kamagra C Est Quoi
Erectile Dysfunction Pills
Zithromax
Amoxicillin Fir Sinusitis Without A Prescription
http://buyplaquenilcv.com/ – Plaquenil
Plaquenil
furosemide to torsemide conversion
Sildenafil Generique 20 Mg
http://buylasixshop.com/ – furosemide generic name
Cialis En Las Farmacias
how to get propecia prescription
Cialis
Viagra
Cheap Kamagra Oral Jelly
plaquenil toxicity symptoms
Cipla Pharmaceuticals
gabapentin wiki
cialis doses
Cheap Ciprofloxacin 500mg
Levitra Costo In Farmacia
With a penetrating chest wound air can take an easier route. Orgargycak https://www.alevitrasp.com soyloart
Prednisone Xvtmsq Buy Nolvadex Uk
hydroxychloroquine over the counter cvs Jyfotz
cialis 5mg If any animal can ill afford immune damage, it s these poor guys
pestis bacteria grown for 10 h under standard growth control medium CAMHB with no antibiotic treatment, Fig how long does propecia take to work It was very frustrating and if it hadn t been for Dr
купить справку spravki-kupit.ru
If you desire to increase your familiarity simply keep visiting this website and be updated with the latest news posted here. диплом о высшем в москве
Hi, its pleasant piece of writing concerning media print, we all be familiar with media is a wonderful source of data. гостиничные чеки с подтверждением спб
Hello there, simply become aware of your blog through Google, and found that it is really informative. I’m gonna watch out for brussels. I will appreciate when you continue this in future. A lot of other folks can be benefited from your writing. Cheers! гостиничные чеки спб
Hello there, just became aware of your blog through Google, and found that it is really informative. I’m gonna watch out for brussels. I will appreciate if you continue this in future. Many people will be benefited from your writing. Cheers! bezogoroda.ru
Nice post. I learn something new and challenging on blogs I stumbleupon every day. It will always be interesting to read content from other writers and practice a little something from their websites. bitcoin casino
I like what you guys are up too. This sort of clever work and exposure! Keep up the superb works guys I’ve added you guys to our blogroll. daachka.ru
I like the valuable information you supply in your articles. I will bookmark your weblog and check again here frequently. I am fairly certain I will be informed a lot of new stuff right here! Good luck for the following! nadachee.ru
Why viewers still use to read news papers when in this technological world all is available on net? easy buy fake residence permit
I loved as much as you will receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get bought an edginess over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly a lot often inside case you shield this increase. магазин бисера минск
Howdy just wanted to give you a quick heads up and let you know a few of the images aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same results. daachka.ru
I read this article fully regarding the comparison of most recent and preceding technologies, it’s remarkable article. yes-dacha.ru
Hey! This post couldn’t be written any better! Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this page to him. Pretty sure he will have a good read. Thank you for sharing! rem-dom-stroy.ru
Awesome! Its actually awesome piece of writing, I have got much clear idea regarding from this article. obshchestroy.ru
Hurrah! After all I got a weblog from where I be able to actually get useful information regarding my study and knowledge. remont-master-info.ru
You really make it seem so easy with your presentation however I find this topic to be really something which I feel I would never understand. It sort of feels too complicated and very extensive for me. I am taking a look forward in your next publish, I will try to get the grasp of it! аренда офиса в минском районе
Great article! This is the type of information that are meant to be shared around the web. Disgrace on the seek engines for not positioning this submit upper! Come on over and talk over with my site . Thank you =) снять офис в минском районе
I love your blog.. very nice colors & theme. Did you design this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to design my own blog and would like to know where u got this from. cheers Jurist
magnificent submit, very informative. I wonder why the other experts of this sector do not understand this. You should continue your writing. I am sure, you have a huge readers’ base already! Õigusabi
Excellent post however , I was wondering if you could write a litte more on this topic? I’d be very grateful if you could elaborate a little bit more. Thank you! аренда ричтрака
After looking at a number of the blog articles on your web page, I honestly like your way of blogging. I book marked it to my bookmark website list and will be checking back soon. Take a look at my web site as well and let me know what you think. просмотры в яппи
Simply wish to say your article is as surprising. The clearness in your post is simply cool and i can assume you are an expert on this subject. Well with your permission allow me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please continue the gratifying work. аренда ричтрака в минске
I used to be recommended this blog by way of my cousin. I am not sure whether this submit is written through him as no one else understand such specific approximately my problem. You are amazing! Thank you! накрутить просмотры яппи
Great web site you have here.. It’s hard to find high quality writing like yours these days. I seriously appreciate people like you! Take care!! накрутка просмотров яппи
This piece of writing will help the internet users for creating new weblog or even a blog from start to end. накрутка подписчиков в яппи
Magnificent beat ! I wish to apprentice at the same time as you amend your web site, how can i subscribe for a blog web site? The account aided me a applicable deal. I have been tiny bit familiar of this your broadcast provided shiny transparent concept smartremstroy.ru
daachnik.ru
Product Features Exerts bacterial action on gram positive And some gram negative bacteria For ornamental and aquarium fish only can i buy cialis online
Thank you for any other informative website. Where else may I am getting that kind of info written in such a perfect way? I have a challenge that I am simply now operating on, and I have been at the glance out for such information. delaremontnika.ru
wonderful issues altogether, you just gained a emblem new reader. What could you suggest in regards to your publish that you simply made a few days ago? Any positive? twitch.tv
It’s an remarkable article designed for all the web viewers; they will take benefit from it I am sure. перетяжка мягкой мебели в Новосибирске
We are a group of volunteers and starting a new scheme in our community. Your site provided us with useful information to work on. You have performed an impressive activity and our whole group might be grateful to you. документы на гостиницу в москве
I like the valuable information you provide in your articles. I will bookmark your weblog and check again here frequently. I am quite certain I will learn many new stuff right here! Good luck for the next! x** animal video
I’ve read several good stuff here. Definitely worth bookmarking for revisiting. I wonder how so much attempt you set to create any such wonderful informative site. daachkaru
It’s a shame you don’t have a donate button! I’d most certainly donate to this brilliant blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this blog with my Facebook group. Chat soon! myinfodacha.ru
I don’t know if it’s just me or if everyone else experiencing problems with your blog. It appears like some of the text within your posts are running off the screen. Can someone else please comment and let me know if this is happening to them too? This might be a problem with my web browser because I’ve had this happen before. Cheers glavsadovnik.ru
Excellent post. I was checking continuously this blog and I am impressed! Very useful information specially the last part 🙂 I care for such info a lot. I was seeking this particular info for a long time. Thank you and good luck. раскрутка сайта в google
I used to be recommended this website through my cousin. I am not sure whether this submit is written via him as no one else recognise such particular approximately my difficulty. You are amazing! Thank you! sadounik.ru
Hi! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup. Do you have any solutions to protect against hackers? daachka.ru
An interesting discussion is worth comment. I think that you ought to write more on this topic, it might not be a taboo subject but generally people don’t speak about such topics. To the next! Kind regards!! daa4a.ru
Отборный мужской эротический массаж Москва с джакузи мужской эротический массаж в Москве
Hi there everyone, it’s my first visit at this website, and article is truly fruitful designed for me, keep up posting such posts. ремонт окон пвх в Жодино
Hey this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get advice from someone with experience. Any help would be greatly appreciated! ремонт окон
Nice blog here! Also your website loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my website loaded up as fast as yours lol фитнес тренер обучение
Im not that much of a online reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back in the future. Cheers фитнес тренер обучение
This post provides clear idea for the new people of blogging, that actually how to do blogging. daachka.ru
Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! By the way, how can we communicate? xxx animal vidoes
Thank you for sharing your info. I truly appreciate your efforts and I am waiting for your next post thank you once again. bezogoroda.ru
Helpful info. Fortunate me I found your web site accidentally, and I am surprised why this twist of fate did not came about in advance! I bookmarked it. химчистка мебели жодино
Ahaa, its pleasant conversation concerning this post here at this blog, I have read all that, so now me also commenting here. чистка дивана на дому цена в борисове
Wonderful blog! Do you have any hints for aspiring writers? I’m planning to start my own site soon but I’m a little lost on everything. Would you advise starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m totally confused .. Any recommendations? Thank you! agrosadovnik.ru
magnificent post, very informative. I wonder why the other experts of this sector do not realize this. You should continue your writing. I am sure, you have a huge readers’ base already! sadovoe-tut.ru
Hi there, I do think your website might be having internet browser compatibility issues. When I look at your website in Safari, it looks fine however when opening in Internet Explorer, it has some overlapping issues. I just wanted to give you a quick heads up! Other than that, great website! гостиничные чеки мск
Wow, that’s what I was looking for, what a stuff! present here at this weblog, thanks admin of this website. гостиничный чек москва
If you desire to take a great deal from this article then you have to apply such techniques to your won website. ogorodkino.ru
What’s Taking place i’m new to this, I stumbled upon this I have found It positively helpful and it has helped me out loads. I hope to give a contribution & aid other users like its helped me. Good job. гостиница с отчетными документами
Pretty! This was an extremely wonderful post. Thanks for providing this info. отчетные документы за проживание москва
I read this piece of writing fully regarding the comparison of newest and previous technologies, it’s remarkable article. гостиничные чеки купить в москве
Great info. Lucky me I found your site by accident (stumbleupon). I have saved it for later! linkindexer page
We are a group of volunteers and starting a new scheme in our community. Your site provided us with valuable information to work on. You have done an impressive job and our whole community will be grateful to you. чек на проживание в гостинице купить
I am really happy to read this blog posts which contains lots of useful information, thanks for providing these information. infoda4nik.ru
Usually I do not read article on blogs, however I wish to say that this write-up very pressured me to try and do so! Your writing taste has been amazed me. Thank you, quite great article. купить чек на гостиницу в москве
Wonderful goods from you, man. I’ve keep in mind your stuff prior to and you’re simply too magnificent. I really like what you’ve got here, really like what you’re stating and the best way in which you assert it. You make it entertaining and you still take care of to stay it smart. I can not wait to read far more from you. This is actually a terrific site. Заказать Алкоголь с доставкой Екатеринбург
Great info. Lucky me I found your site by accident (stumbleupon). I have bookmarked it for later! Доставка алкоголя Екатеринбург Уралмаш
My relatives all the time say that I am wasting my time here at net, except I know I am getting knowledge every day by reading such pleasant articles. отчетные документы за проживание москва
It’s very easy to find out any topic on net as compared to books, as I found this piece of writing at this website. чеки гостиницы с подтверждением
I really love your site.. Pleasant colors & theme. Did you make this web site yourself? Please reply back as I’m wanting to create my very own blog and want to know where you got this from or what the theme is called. Appreciate it! купить чеки на гостиницу в москве
1″‘`–
1
Magnificent beat ! I wish to apprentice while you amend your web site, how can i subscribe for a blog web site? The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear concept חשפניות
Now I am going away to do my breakfast, when having my breakfast coming yet again to read additional news. חשפניות
I don’t even understand how I ended up here, however I assumed this publish used to be good. I don’t recognize who you’re however definitely you are going to a famous blogger in the event you are not already. Cheers! hairless cat for sale
At this moment I am going to do my breakfast, once having my breakfast coming yet again to read more news. квартиры на сутки в Минске