Pages

Dot Net interview questions


Dot Net Framework
What is the difference between private and shared assembly
Accessibility by applications.
Shared assembly has to be Strong Named, have version and culture.
Installed in GAC.

What does Reflection do?
Runtime type discovery
Load Assemblies
Dynamic Invocation

What is an "IS" operator?
Equiv of Type

I PC
lWhich one of the following correctly initializes the ThreadStart object myStart?
1 ThreadStart myStart = new ThreadStart();
2 ThreadStart myStart = new ThreadStart(myThread);
3 ThreadStart myStart = new ThreadStart(DoSomething());
4 ThreadStart myStart = new ThreadStart(DoSomething);
5 ThreadStart myStart = new ThreadStart(this);

lHow to achive synchronization in .NET?
lUsing lock(object) statement for the critical section.
l
l
l

What is Thread Pool?
lCollection of threads

lWhy\how to do multithreading?
oTo compute operations in parellel.
o
o By acquiring threads from ThreadPool class.

When you call the Thread.Start method on a thread, will it start immediately?
That thread does not start executing until the current thread yields or is preempted by the operating system



Dot Net interview questions

Warm Up Questions
Is “string” value or reference type?
It is a reference type. string is an alias of String

Is int[] counter is a value or reference type?
Arrays are intrincically derived from System.Array.

Is Nullable types are value or reference type?
All nullable types are of Type System.Nullable struct

Is it possibe to define a variable of type
Nullable> number;
int ?? number;

Rapid Fire Round


Why Generics?
Allows to design class or method that defer the specification of one or more types until used by client.

Avoids Boxing and Unboxing (Performance)

Avoids Runtime exceptions (type safety)

Better programming (Code reuse)

What type would return if “is” operator is used on
List counterList = null;

Underlying type will be returned not the Nullable type.


The very Basics (Not Visual Basic)




Can delegates added to invocation list be changed?
NO

Does delegates are invoked once for each time they appear in the invocation list?
Yes it does.

Can multiple catch blocks be executed?
No.

Can return statement in try block make finally block called?
Yes.

Microsoft SharePoint Market Analysis

The Microsoft SharePoint Market Analysis, this report provides extensive 2009 data regarding installed base, broken out by business size, region, version, and other variables, along with four year forecasts. The report also examines the features, strategies, strengths and weaknesses of Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007.

· In this report, Microsoft SharePoint refers to two products; Windows SharePoint Services (WSS) and Microsoft Office SharePoint Server (MOSS)

o Windows SharePoint Services refers to the whole Windows SharePoint Services family, including SharePoint Team Services, Windows SharePoint Services 2.0, and Windows SharePoint Services 3.0 unless otherwise stated.

o Microsoft Office SharePoint Server refers to the whole Microsoft Office SharePoint Server family, including SharePoint Portal Server 2001, SharePoint Portal Server 2003, and Microsoft Office SharePoint Server unless otherwise stated.

· Microsoft’s Windows SharePoint Services is an extension of Windows Server, aimed at providing collaboration functionality to small and medium-sized organizations. Over the next four years, the installed base of Windows SharePoint Services is expected to grow an average annual growth rate of 7%.

o One of the primarily reasons organizations deploy Windows SharePoint Services is for its basic document management features, which include document library services to check documents in and out, as well as Information Rights Management (IRM) to control the actions users are allowed to take.

o Collaboration tools are widely available in Windows SharePoint Services, which enable employees to create workspaces, share calendars and contacts, and make use of Web 2.0 technologies, such as blogs, wikis, and RSS (Really Simple Syndication) feeds.

· Microsoft Office SharePoint Server is an extension of Windows SharePoint Services, and therefore requires Windows SharePoint Services. This means that Microsoft Office SharePoint Server seats and Windows SharePoint Services seats overlap, as one Microsoft Office SharePoint Server seat is also a Windows SharePoint Services seat. Microsoft Office SharePoint Server is intended for medium and large-sized organizations with over 1,000 users.

· Microsoft Office SharePoint Server 2007 builds upon the basic collaborative capabilities of Windows SharePoint Services 3.0, and provides six core capabilities; Business Intelligence (BI), Business Process and Forms, Enterprise Content Management (ECM), Enterprise Search, Collaboration, and Portals.

o Currently, Microsoft Office SharePoint Server accounts for 23% of Windows SharePoint Services users. Over the next four years, Microsoft Office SharePoint Server is expected to grow at an average annual growth rate of 25%. By year-end 2013, Microsoft Office SharePoint Server is expected to penetrate 42% of Windows SharePoint Services deployments.

Silver light Development

Microsoft Silver light


Microsoft Silver light is a web application framework that provides functionalities similar to those in Adobe Flash, integrating multimedia, graphics, animations and interactivity into a single runtime environment. Initially released as a video streaming plugin, later versions brought additional interactivity features and support for List of CLI languages and development tools. The current version, 3.0, was released on July 9, 2009.



Silver light provides a retained mode graphics system similar to Windows Presentation Foundation, and integrates multimedia, graphics, animations and interactivity into a single runtime environment. In Silver light applications, user interfaces are declared in Extensible Application Markup Language (XAML) and programmed using a subset of the .NET Framework. XAML can be used for marking up the vector graphics and animations. Silver light sites or regions of sites are not searchable and index able by search engines so duplicate html content must be sent to search engine robots if site content is to be indexed. (This same html is also sent to users without Silver light installed). This is because there is no Silver light version of the Flash Headless Player for search engines which enables search engines like Google and Yahoo to index Flash content. Silver light can also be used to create Windows Sidebar gadgets for Windows Vista.



Silver light applications can be written in any .NET programming language. As such, any development tools which can be used with .NET languages can work with Silver light, provided they can target the Silver light CoreCLR for hosting the application, instead of the .NET Framework CLR. Microsoft has positioned Microsoft Expression Blend versions 2 and 2 SP1 for designing the UI of Silver light 1.0 and 2 applications respectively. Visual Studio 2008 can be used to develop and debug Silver light applications. To create Silver light projects and let the compiler target CoreCLR, Visual Studio 2008 requires the Silver light Tools for Visual Studio.



A Silver light project contains the Silverlight.js and CreateSilverlight.js files which initializes the Silver light plugin for use in HTML pages, a XAML file for the UI, and code-behind files for the application code. Silver light applications are debugged in a manner similar to ASP.NET applications. Visual Studio's CLR Remote Cross Platform Debugging feature can be used to debug Silver light applications running on a different platform as well.



In conjunction with the release of Silver light 2, Eclipse was added as a development tool option.



California and several other U.S. states also have asked a District Judge to extend most of Microsoft's antitrust case settlement for another five years, citing "a number of concerns, including the fear that Microsoft could use the next version of Windows to 'tilt the playing field' toward Silver light, its new Adobe Flash competitor," says a Seattle Post-Intelligencer article. The final judgment on the motion extended the settlement two years, to November 2009, but for reasons unrelated to Silver light. In Windows 7 the Silver light Web browser plugin is not installed automatically, but is a downloadable optional update through Windows update.



Microsoft has been criticized for not using the Scalable Vector Graphics (SVG) standard for Silver light, which, according to Ryan Paul of Ars Technical, is consistent with Microsoft's ignoring of open standards in other products, as well. However, according to David Betz, a .NET specialist and Microsoft Most Valuable Professional (MVP), while it "seems to some to be a valid criticism and a good point to some of the web standards world, it is absolutely groundless and carries no weight." Microsoft would have had to alter the SVG specification in order to integrate it with .NET. Consequently, he thinks the "choice by Microsoft to use XAML over SVG, served to retain the SVG standard by not adding proprietary technology (to SVG)".

Silverlight Development

On November 18, 2009, at the Professional Developer’s Conference in Los Angeles, Microsoft Corp. unveiled a Beta version Silverlight 4. This latest version delivers hundreds of features and controls that, when combined with the continued innovation in Microsoft’s world-class tools for designers and developers
Printing Support: Comprehensive printing that enables hardcopy reports and documents as well as a virtual print view, independent of screen content.
New Controls: A full set of form controls with over 60 customizable, styleable components. New controls include RichTextbox with hyperlinks, images and editing and Masked textbox for complex field validation. Enhanced controls include DataGrid with sortable/resizeable columns and copy/paste rows.
Internationalization: Localization enhancements with Bi-Directional text, Right-to-Left support and complex scripts such as Arabic, Hebrew and Thai and 30 new languages.
CLR Enhanced: The .NET Common Runtime (CLR) now enables the same compiled code to be run on the desktop and Silverlight without change.
Well there is more to write on the list of features that this beta version has. Do not foreget to read all the features of Silverlight Development at http://silverlight.net/getstarted/silverlight-4-beta/

Silverlight Major Features

According to Microsoft’s Silverlight Development Team member Scott Guthrie, Silverlight gives developers to build rich internet web applications.
Silverlight brings lot of cool stuff and new features to developers to develop web applications. The developers no longer need to rely on the external third party tools to improve the look and feel of the web pages as Silver Light fills the gap.
Silverlight major features are:
• Enhancements in Rich Media Internet Applications (including H.264 video support)
• Major support for graphics (3D support and GPU hardware speeding up)
• Application development (Richer data-binding support)
• One more major thing is possibility for a Silverlight application to run external web browsers
• Drag and drop the controls.
• Give flashy and glossy effect to your web page.
• Feel of the desktop application (quick rendering of the graphical data) on web.