What is TFS ?

Sunday, August 30, 2009


Team Foundation Server.


www.codecollege.NET

What is the Expansion of WIQL?


Work Item Query Language (WIQL).


www.codecollege.NET

What are the 2 process templates in TFS ?


1. Microsoft Solutions Framework for Agile Software Development version 4.0 (MSF Agile for short)
2.MSF for CMMI Process Improvement version 4.0 (MSF CMMI for short).


www.codecollege.NET

What is a WorkItem in TFS ?


It is used to track anything related to your team Project, like bugs and tasks.


www.codecollege.NET

Name any two Managed API Assemblies of Team Build 2008.


1. Microsoft.TeamFoundation.Build.Client.dll
2. Microsoft.TeamFoundation.VersionControl.Client.dll


www.codecollege.NET

What is the purpose of the Managed API in Team Build 2008?


It allows us to program the Team Build.


www.codecollege.NET

What is "Partially Completed" option in TFS ?


It is a Build with one or more failed tests.


www.codecollege.NET

Does the TFS 2008 support Queue Build ?


Yes.


www.codecollege.NET

What is a Build Retention Policy ?


It is a policy using which you can decide how many build results Team Build can keep.


www.codecollege.NET

What is Continuous Integration in TFS Build?


It is nothing but the Build is done on every Check-in.


www.codecollege.NET

Does TFS store all the configuration data in TFSBuild.proj file itself ?


No. Most of the data are stored in TFS databases.
Note: In VS 2005 all configuration data were stored in this file.


www.codecollege.NET

What is TFSBuild.proj file?


It is an XML file that contains build configuration data.


www.codecollege.NET

What is a BVT ?


Build Verification Test(BVT) is a type of automated test which is used to validate your team's work after build.


www.codecollege.NET

What is Build Automation ?


It is a process of collecting, assembling, validating and auditing the artifacts that compirse your solution.


www.codecollege.NET

What is STM.NET ?


STM.NET is an experimental version of the .NET Framework which has been modified to enable software transactional memory. STM.NET simplifies multithreaded application programming by allowing you to delineate sections of your code as transacted, atomic, and isolated from other atomic regions.


www.codecollege.NET

What is B# ?


It is a programming language for Embedded Systems.


www.codecollege.NET

Daily Tips- Tip #29 - How can i copy the files in the debug folder to some other directory automatically using the Build macros?


Add the following line of code to the Post build event in the project properties,
call copy $(ProjectDir)$(OutDir) c:\test\


www.codecollege.NET

Daily Tips- Tip #31 - How can i copy the files in the debug folder to some other directory automatically ?


Add the following line of code to the Post build event in the project properties,
call copy E:\projectdir\bin\Debug c:\test\


www.codecollege.NET

What is the expansion of WMI ?


Windows Management Instrumentation.


www.codecollege.NET

What is the name of the file you need to change to add pre- and post-build functionality into your custom package ?


Targets file.
It is located in ,
%WINDOWS%\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets


www.codecollege.NET

Which tool can be used to do the Automated Build ?


MS Build.


www.codecollege.NET

What is the Expansion of UML ?

Monday, August 24, 2009


Unified Modelling Langaguage.


www.codecollege.NET

What is the Expansion of URI ?


Uniform Resource Identifier.


www.codecollege.NET

What is the Expansion of (STLC)?

Saturday, August 22, 2009


Software Testing Life Cycle.


www.codecollege.NET

Is it true that Webservices can be written only in .NET ?


No.


www.codecollege.NET

What is Windows Cardspace ?

Friday, August 21, 2009


Windows CardSpace is client software that enables users to provide their digital identity to online services in a simple, secure, and trusted way.


www.codecollege.NET

What is the Expansion of MS EF?


Microsoft Entity Framework


www.codecollege.NET

What is the Expansion of MSMQ?


Microsoft Message Queuing


www.codecollege.NET

Tell some of the new features of ASP.NET 3.5?

Saturday, August 15, 2009


1. Expression Trees
2. Controls
1. ListView
2. DataPager
3. Support for LINQ, WCF , WPF and WWF



www.codecollege.NET

What is ContentPresenter?

Thursday, August 13, 2009


It is used to present content which can be a text,image ,CLR objects, XML ,etc. It is a part of WPF.


www.codecollege.NET

What are the disadvantages of LINQ over Stored Procedures ?


1.Network traffic: LINQ needs to send the entire query over the network whereas the SP need only to send sproc-name and argument.

2.Control over DB: LINQ has lesser control over DB compared to SPs as they run within the DB.


www.codecollege.NET

What is the Expansion of CSS ?


Cascaded Style sheet.


www.codecollege.NET

Full Functional sample for ASP.NET FileUpload Server Control

Wednesday, August 12, 2009


The following example will save the uploaded file in the root folder of your application.

Default.aspx
============
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:FileUpload ID="fupTest" runat="server" />&nbsp;
<asp:Button ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="Upload" />
<br />
<asp:Label ID="lblStatus" runat="server"></asp:Label></div>
</form>
</body>
</html>

Default.aspx.cs
============
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
public partial class _Default : System.Web.UI.Page
{

protected void btnUpload_Click(object sender, EventArgs e)
{
if (fupTest.HasFile )
{
try
{
string strFileName = Path.GetFileName(fupTest.FileName);
fupTest.SaveAs(Server.MapPath("~/") + strFileName);
lblStatus.Text = "File Uploaded Successfully";
}
catch (Exception ex)
{
lblStatus.Text = "Error File could not be uploaded. The Reason for Failure is: " + ex.Message;
}
}

}
}


www.codecollege.NET

ASP.NET FileUpload Server Control Sample 1


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:FileUpload ID="FileUpload1" runat="server" /></div>
</form>
</body>
</html>


www.codecollege.NET

.NET 3.0, Abbreviations and Expansions, Glossary,

What is the Expansion of ADO.NET MARS ?


Multiple Active Result Sets.


www.codecollege.NET

What is the Expansion of MOSS 2007 ?


Microsoft Office Sharepoint Server 2007.


www.codecollege.NET

What is the Expansion of WPF ?


Windows Presentation Foundation.


www.codecollege.NET

What is the Expansion of WWF ?


Windows Workflow Foundation.


www.codecollege.NET

What is the Expansion of WCF ?


Windows Communication Foundation.


www.codecollege.NET

Name some built-in WebParts in Sharepoint

Tuesday, August 11, 2009


Content Query WebPart
Business DataList
Business Data Related List


www.codecollege.NET

What are the two portions of ASP.NET AJAX ?

Monday, August 10, 2009


The 2 portions are :
1. Server-side AJAX
2. Client-side AJAX


www.codecollege.NET

What is the Expansion of LINQ ?

Sunday, August 9, 2009


Language INtegrated Query.


www.codecollege.NET

What type of content can be virtualized using Virtual Path providers ?

Saturday, August 8, 2009


Browseable types, such as ASPX, master pages, ASCX, and themes.


www.codecollege.NET

What is a Virtual path provider?

Friday, August 7, 2009


It is a mechanism which extends ASP.NET to serve virtual content to the compiler.
Ex:
It provides content from database instead of file system.


www.codecollege.NET

What is SafeMode Parser in ASP.NET ?


SafeMode parser is an alternate to the ASP.NET Compiler. It does not compile the pages instead interpretatively parse the page.


www.codecollege.NET

What does is the main difference between the SafeMode parser and Asp.net?


Code compilation.


www.codecollege.NET

Does SafeMode Parser support AspCompat functionality ?


No.


www.codecollege.NET

What is the expansion of CLR ?


Common Language Runtime.


www.codecollege.NET

What is the expansion of JIT ?


Just-In Time Compiler.


www.codecollege.NET

What is the expansion of IIS?


Internet Information Server.


www.codecollege.NET

What is the Expansion of AJAX ?


Asynchronous JavaScript and XML.


www.codecollege.NET

What is the Expansion of CCW?


COM Callable Wrapper.


www.codecollege.NET

What is the Expansion of RCW?


Runtime Callable Wrapper .


www.codecollege.NET

Can you configure a .NET Remoting object via XML file?


Yes.


www.codecollege.NET

What is the Expansion of CLI ?


Common Language Interface.


www.codecollege.NET

What does SOAP stand for?


Simple Object Access Protocol.


www.codecollege.NET

What does WSDL stand for?


Web Services Description Language.


www.codecollege.NET

What is WPF (Windows Presentation foundation )?

Thursday, August 6, 2009


Windows Presentation Foundation (WPF) provides a unified programming model for building rich Windows smart client user experiences that incorporate UI, media, and documents.


www.codecollege.NET

What is WWF or Windows Workflow Foundation ?


WWF (Windows Workflow Foundation) is a platform for designing, managing and executing workflow-enabled applications.


www.codecollege.NET

What is Windows communication foundation, WCF?


WCF (Windows Communication Foundation) offers Distributed Programming through Service Oriented Programming Model.


www.codecollege.NET

Daily Tips- Tip #28 - How to access ViewState value of the previous page in the current page ?


Previous page's information is stored in a property called PreviousPage and you can access it using the following code,
Page prePage = this.PreviousPage;
Label totalEmployees = prePage.FindControl("lblTotEmployees");
Response.Write(totalEmployees.Text);


www.codecollege.NET

What are the differences between Cache object and Application object ?






















Sno Application
Cache
1 Life of Application objects are till the end of Application
unless you destroy it.
Also provides application-wide scope but get destroyed by
expiration mechanism.
2 You have Locking mechanism in Application object Not available.
3 Not available. Has a feature called SQL Cache dependency using which you
can invalidate a cache object based on the changes to its source in the
table

What is marshalling? What are the types of marshalling?


Marshalling is the process in which the data is serialized at one application domain and deserialized at the another application domain or vice versa.
Types :
1. Marshal by value
2. Marshal by reference


www.codecollege.NET

What data type does the RangeValidator supports ?


Integer, String and Date .


www.codecollege.NET

Can Partial Classes be applied over an enumerator ?


No.


www.codecollege.NET

Can Partial Classes be applied over a Delegate ?


No.


www.codecollege.NET

On which situation Partial Classes are used ?


When multiple programmers need to work on a same class then Partial class is an obvious choice.


www.codecollege.NET

What is a Partial Class (or struct or interface)?


A partial class is a feature in which you split a class definition into two or more files. All the parts are joined together when the application is compiled.


www.codecollege.NET

Do Login Controls implement Forms Authentication ?


Yes.


www.codecollege.NET

Can we Inherit Abstract Class ?


Yes.


www.codecollege.NET

How can you provide an alternate color schema in a Repeater Control ?


You can provide an alternate color schema in a Repeater Control AlternatingItemTemplate.


www.codecollege.NET

What is the life span for items stored in ViewState ?


Items stored in ViewState exists until the page in which they are stored exists.


www.codecollege.NET

Is String Mutable or Immutable ?


Immutable


www.codecollege.NET

How will you sort an Array in descending order?


You can sort an Array in descending by the calling the following methods,
Sort();
Reverse();


www.codecollege.NET

Daily Tips- Tip #27 - How will you get the value of ASP.Net control in Javascript ?


You can call the ASP.NET control from Javascript using the document.getElementById method.
Ex:
Let txtEmployeeName be a Textbox, then
var tEmp = document.getElementById('<%=txtEmployeeName.ClientID%>');


www.codecollege.NET

Daily Tips- Tip #26 - An alternate to Javascript's document.getElementByid()?


You can use as an alternate to Javascript's document.getElementByid(), the following ASP.NET AJAX's method,
$get('nameofcontrol')
Ex:
var myctrl = $get('lblTotal')


www.codecollege.NET

What is the difference between Convert.ToInt32(string) and Int32.Parse(string) ?


Int32.Parse thorws an exception when null value is passed whereas Convert.ToInt32 returns zero . Apart from this both function in a simillar manner.


www.codecollege.NET

What is the difference between EVAL and BIND ?


Eval is readonly and used to display whereas Bind is used to both display and update .


www.codecollege.NET

What is a Sharepoint Site Collection ?


It is a group of sites built over WSS and it requires a top-level site.


www.codecollege.NET

SharePoint 2010 Technical Preview


Microsoft SharePoint Team Blog has announced SharePoint 2010 Technical Preview today.
What is SharePoint 2010 ?
Definition by Microsoft is "SharePoint 2010 is the business collaboration platform for the Enterprise & the Web that enables you to connect & empower people through an integrated set of rich features."

For more information refer the following link,
SharePoint 2010 Technical Preview


www.codecollege.NET

What is a Top-level site in Sharepoint ?


This is the root site for your sites. It will have sub-sites and i will not be a sub-site to any other site.


www.codecollege.NET

How will you programmatically read the identity of the impersonated user ?

Wednesday, August 5, 2009


VB
==
Dim curUser As String = _
System.Security.Principal.WindowsIdentity.GetCurrent().Name

C#
==
String curUser =
System.Security.Principal.WindowsIdentity.GetCurrent().Name;


www.codecollege.NET

Which class is doing the URL authorization ?


UrlAuthorizationModule.


www.codecollege.NET

Which class is doing the File authorization ?


FileAuthorizationModule.


www.codecollege.NET

What is URL authorization in ASP.NET ?


It is an authorization which maps users and roles to URLs in ASP.NET applications.


www.codecollege.NET

What is File authorization in ASP.NET ?


It is an Authorization which checks the access control list (ACL) of the .aspx or .asmx handler file to determine whether a user has access to the file.


www.codecollege.NET

What are the Types of Authorization ?


There are two types of Authorizations, they are:
1. File authorization
2. URL authorization


www.codecollege.NET

When will you go for DataReader and when for DataAdapter ?


You can go for DataReader when you want to only display the data.
You can go for DataAdapte when you want to display ,edit and update the data.


www.codecollege.NET

What are the differences between DataReader and DataAdapter ?




























Sno DataReader
DataAdapter
1 Works in Connected Mode Works in Disconnected Mode
2 Can have only one record at a time Can have more than 1 records.
3 Is ForwardOnly and Readonly Can navigate front and back and editable
4 Faster Slower





www.codecollege.NET

Daily Tips- Tip #25 - How will you Regenerate Expired Session Identifiers in ASP.NET ?



To Regenerate Expired Session Identifiers in ASP.NET, set the regenerateExpiredSessionId attribute of the sessionState configuration element to true.




www.codecollege.NET

How will you communicate between 2 user controls in ASP.NET ?



You can communicate between 2 user controls in ASP.NET, by using Properties and Methods defined inside them and by calling the usercontrol using FindControl() method along with the respective property.




www.codecollege.NET

CapGemini ASP.NET, SHAREPOINT, MOSS 2007 Interview Questions Set 2



1. What are the Session State Mechanisms in asp.net
2. What are the different types of Caching
3. What are the differences between Caching and Application
4. What areas have you worked with MOSS 2007
5. What are the objects in Classic ASP
6. How will you communicate between 2 user controls
7. How will you achive fragment caching and pageoutput caching
8. whats the difference between datareader and dataadapter
9. when will you go for datareader and when to dataadapter
10. Does cache supports Application Events
11. What are the different types of Authentications in ASP.NET?
12. What are the different types of Authorization in ASP.NET ?
13. What are the various Expiration methods in Cache ?


www.codecollege.NET

How are Sessions identified in ASP.NET ?



Sessions are identified by a unique identifier that can be read by using the SessionID property.




www.codecollege.NET

What type of object can you store in OutProc mode of sessions ?


The session-variable type must be either a primitive .NET type or serializable..



www.codecollege.NET

What type of object can you store in InProc mode of sessions ?


can be any valid .NET Framework type.



www.codecollege.NET

Can I share session state between ASP.NET and ASP pages?


Yes.



www.codecollege.NET

Does all ASP.NET Web server controls have a Render method ?


Yes.



www.codecollege.NET

Is Render an Event ?


No, its a Method.



www.codecollege.NET

When is the ViewState information saved for the page and for all controls in ASP.NET Page Life Cycle?


Before the SaveStateComplete Event and after the PreRender Event.



www.codecollege.NET

Does the PreRender Event occur for every control on the ASP.NET Page ?


Yes.



www.codecollege.NET

When is the Viewstate information loaded in the Page Life Cycle of an Asp.NET page ?


After the InitComplete event and before the PreLoad Event ASP.NET Page loads view state for itself and all controls, and then processes any postback data.



www.codecollege.NET

How can we Create a Strongly-Typed Reference with the Master Page ?


You can can we Create a Strongly-Typed Reference with the Master Page using the ,
@MasterType Directive .



www.codecollege.NET

How will you get an instance of the Master Page used in your current page ?


You can get an instance of the Master Page used in your current page using the property,
Page.Master .



www.codecollege.NET

How will you read the Master Pages content from the Content Page ?


You canread the Master Pages content from the Content Page by creating Public Properties and Methods in the masterpage.



www.codecollege.NET

What is the use of the Init Event ?


Use this event to read or initialize control properties.



www.codecollege.NET

What is the use of the PreInit Event ?


You can use the PreInit event for the following ,

1. Check the IsPostBack property to determine whether this is the first time the page is being processed.

2. Create or re-create dynamic controls.

3. Set a master page dynamically.

4. Set the Theme property dynamically.



www.codecollege.NET

Skelda ASP.NET, Sharepoint, SQL server interview questions



1. What is a masterpage
2. how will you get a value from a master page to the content page
3. what are the differences between UDF and SP
4. Is an UDF Precompiled
5. Explain the Page life cycle
6. what is inetinfo
7. what is aspnet_Wp.exe
8. what is ISAPI filter
9. what is the flow of the control for a page request
10. how you gave anonymous access for a sharepoint site
11. what privileges you gave for anonymous access of a sharepoint site
12. Is there any event called PreInit
13. When is the viewstate information loaded in a page
14. Have you done performance tuning in sql server
15. what does the "Run with privelege" meanin sharepoint?
16. What are the steps for deploying a webpart
17. What is an Bubbled Event ?
18. How will you fire an Event when mouse is moved over a button ?


www.codecollege.NET

What is Aggregation ?




Aggregation is a form of composition where one looks at the system as a whole rather than as parts.


www.codecollege.NET

What is Composition ?




Composition is a way to combine simple objects or data types into more complex ones.


www.codecollege.NET

What is Association ?



Association defines a relationship between classes of objects which allows one object to cause another to perform an action on its behalf.


www.codecollege.NET

What is Polymorphism ?



A feature using which more than one definition is given to a single method or operator.


www.codecollege.NET

What is Encapsulation ?



It is a feature which hides data and functions from others classes.


www.codecollege.NET

What is Hybrid Inheritance ?



A class inherits from more than one type of Inheritances mentioned above.
Ex:
It inherits from multiple and also multilevel


www.codecollege.NET

What is Multilevel Inheritance ?



classes inherits from parent classes in multiple level, ie Child inherits from Parent and grandchild classes inherit from Child , like that.


www.codecollege.NET

What is Multiple Inheritance ?



A class inherits from more than 1 class.


www.codecollege.NET

What is a Single Inheritance ?



A class inherits from a single class.


www.codecollege.NET

What are the major Types of Inheritance ?



The major Types are:
Single
Multiple
Multilevel
Hybrid


www.codecollege.NET

What is Inheritance ?

A feature in which the base class’s characteristics and behavior are derived to the child class also.

What is an Object ?



Is an instance of a class. It will be exactly the same as a class but can be assigned values and used whereas a class can’t be used without creating objects.


www.codecollege.NET

What is a Class ?


Class:
It defines characteristics of a thing and its behavior. It is blueprint based on which objects are created.
Example: Employee (which will have all the details about the employee like name, id, salary, etc and the methods which describes his behavior like calcSalary(),displaydetails(),etc.


www.codecollege.NET

What is a Concurrency Design Patterns ? Give Examples.


They deal with multi-threaded programs. They provide solutions for multi-thread design problems.
Example:
Balking, Double checked locking, guarded suspension


www.codecollege.NET

What is a Behavioral Design Pattern ? Give Examples.


Behavioral
They deal with communication between objects. They provide you the best way to communicate between objects.
Example:
Chain of responsibility, Command, Interpreter


www.codecollege.NET

What is a Structural Design Pattern ? Give Examples.


Structural
They deal with relationship between entities. They provide you the best way to relate entities on various scenarios.
Example:
Adapter, Aggregate, Bridge


www.codecollege.NET

What is a Creational Design Pattern ? Give Examples.


They deal with object creation. They provide you the best way to create objects based on the current situation.
Example:
Singleton, Factory method, Abstract factory, Builder


www.codecollege.NET

What are the Types of Design Patterns ?


The Main Types of Design Patterns are:
Design Patterns are generally classified into three categories, they are:
1. Creational
2. Structural
3. Behavioral


www.codecollege.NET

What are the 3 important object oriented concepts ?


1. Polymorphism
2. Inheritance
3. Encapsulation


www.codecollege.NET

Is non-clustered index faster than clustered index ?


Yes.


www.codecollege.NET

What is the smallest unit of execution in .NET ?


An Assembly.


www.codecollege.NET

What does the Initial Catalog parameter denote in the connection string ?


The name of the database to be connected.


www.codecollege.NET

Among Windows Authentication and SQL Server Authentication, which one is the most trusted ?


Windows Authentication as the checking is done with the Active Directory.


www.codecollege.NET

How will you debug an ASP.NET Web application ?


By attaching the aspnet_wp.exe process to the DbgClr debugger.


www.codecollege.NET

How will you generate documentation from the C# file using a command-line compiler ?


If the file is commented properly , Compiling it with the /doc switch will generate the documentation.


www.codecollege.NET

What are the different ways a method can be overloaded ?


1. With different number of arguments
2. With different datatypes of arguments
3. With different order of arguments


www.codecollege.NET

Can you declare an overriden method to be static if the original method is not static ?


No.


www.codecollege.NET

What’s the implicit name of the parameter that gets passed into the set method/property of a class?


Value.


www.codecollege.NET

How will specify BULK Insert to fire triggers ?


You can specify BULK Insert to fire triggers by "FIRE_TRIGGERS" option.


www.codecollege.NET

Will by default BULK Insert fire Insert Triggers ?


No.


www.codecollege.NET

Can a method alone be sealed ?


Yes.


www.codecollege.NET

How will you prevent your class being inherited by another class ?


Make that class as Sealed.


www.codecollege.NET

Will the finally block get executed if an exception has not occurred ?


Yes.


www.codecollege.NET

What is an INSTEAD OF trigger ?


It is a trigger which is executed "INSTEAD OF" a TSQL statement. The main use of it is it enables views to support updates which are not updatable otherwise.


www.codecollege.NET

What is referential integrity ?


Referential integrity in a relational database concept where consistency is established through Primary key and Foreign key relationship.


www.codecollege.NET

What is a self join ?


It is a join which joins the table to itself.


www.codecollege.NET

What are the Differences between Response.Expires and Expires.Absolute ?


Expires:
The Expires property specifies the duration of time before a page that is cached on a browser expires.
ExpiresAbsolute:
The ExpiresAbsolute property specifies the date and time at which a page cached on a browser expires.


www.codecollege.NET

What is an Ad Hoc Query ?


It is a dynamically query generated by some query generation tools.


www.codecollege.NET

What are the contents of assembly?


A static assembly will generally contain,
1. The assembly manifest.
2. Type metadata.
3. MSIL code .
4. A set of resources.


www.codecollege.NET

What is role based security?


Role based Security is a feature using which access to data and resources will be given based on the roles the authenticated user has.


www.codecollege.NET

What is the use of the fixed statement in C# ?


It prevents the garbage collector from relocating a movable variable and is permitted on unsafe context.


www.codecollege.NET

What is BCL ?


The Base Class Library (BCL) is a standard library which is common to all languages using the .NET Framework.


www.codecollege.NET

What is an app.config ?


It is the Configuration file for Windows applications , simillar to Web.config is for Web Applications.


www.codecollege.NET

Daily Tips- Tip #24 - How will you set the Execution Timeout for a browser ?


The following code will set the executionTimeout as 40 mins,

<httpRuntime executionTimeout="00:40:00" />


www.codecollege.NET

How will you make a process wait ?


The following code will make the process wait for 10 seconds.
System.Threading.Thread.Sleep(1000);



www.codecollege.NET

Can "#Region #End Region " be created inside methods ?


No. Region can enclose methods and events , but they cant be created inside methods and events.


www.codecollege.NET

Name some of Code Analysis Tools ?


1. FxCop
2. StyleCop
3. NDepend
4. SourceMonitor


www.codecollege.NET

Daily Tips- Tip #26 - How will you analyze and improve the behaviour of your managed applications ?


You can analyze and improve the behaviour of your managed applications using the CLR Profiler tool.


www.codecollege.NET

Daily Tips- Tip #25 - How will you compare two versions of an assembly ?


You can compare two versions of an assembly, and determine the differences using the LibCheck tool.


www.codecollege.NET

Daily Tips- Tip #24 - How will you merge .NET Assemblies (without Aspnet_merge.exe) ? (or) What is ILMerge ?


You can merge multiple .NET assemblies into a single .NET assembly using the ILMerge utility . It works in the same way with both .exes and .dlls.


www.codecollege.NET

Daily Tips- Tip #23 - How will you merge Assemblies created by Aspnet_compiler.exe ?


The ASP.NET Merge tool (Aspnet_merge.exe) enables you to combine and manage assemblies which are created by Aspnet_compiler.exe. It works on assemblies that have been created by using ASP.NET version 2.0 or later.


www.codecollege.NET

What is an Immutable Class ? , give an example.


The object of the Class whose memory is changed upon change in the content is a Mutable Class.
Ex:
String


www.codecollege.NET

What is a Mutable Class ? , give an example.


The object of the Class whose memory is not changed upon change in the content is a Mutable Class.
Ex:
StringBuilder


www.codecollege.NET

Can you edit data in the Repeater control?


No.


www.codecollege.NET

Which two properties are on every validation control?


1. Controltovalidate
2. ErrorMessage



www.codecollege.NET

Can an Interface have a static method ?


No.


www.codecollege.NET

What are the DataConnections supported by MOSS 2007 Report Center?


The DataConnections supported by MOSS 2007 Report Center are :
1. Office Data Connection files (ODC)
2. Universal Data Connection files (UDC)
3. Reporting Services Data Sources (RSDS)


www.codecollege.NET

What namespace is responsible for remoting in Dot Net?

Tuesday, August 4, 2009


System.Runtime.Remoting



www.codecollege.NET

What are the three measures in common use in Quality?


1. MEAN
2. MEDIAN
3. MODE




www.codecollege.NET

How will you implement observer pattern in .NET?


Observer pattern can be implemented using “Delegates” and “Events”.



www.codecollege.NET

What are Design Patterns ?


Design Patterns are best proven techniques for a common design problem. It is only a design technique and not code. Though code is available for almost all design patterns in all popular languages, design patterns mean the design technique alone.Each design pattern explains a repeated problem, gives standard solution to the problem.


www.codecollege.NET

What are the different types of diagram in UML?


1. Use Case Diagram
2. Class Diagram
3. Interaction Diagrams
4. Activity Diagram
5. State Diagram
6. Physical Diagrams



www.codecollege.NET

What are the differences between ASP Session and ASP.NET Session?


Asp.net session supports cookie less session & it can span across multiple servers whereas these are not available in ASP sessions.



www.codecollege.NET

In Which mode alone Session_Abandon is supported ?


InProc mode.



www.codecollege.NET

After What event are Sessions available ?


AcquireRequestState event.



www.codecollege.NET

How will you customize columns in Data Grid?


You can customize columns ina DataGrid using the Template column.



www.codecollege.NET

How can we format data inside Data Grid?


We can do that by Using the DataFormatString property.



www.codecollege.NET

Can a trigger be fired from a stored procedure?


Yes.



www.codecollege.NET

Can a DataReader persist data ?


No.



www.codecollege.NET

Which is faster among DataSet and DataReader ? Why ?


DataReader is faster as it has only one record at a time, and Dataset is slower as it fetches the entire table or set of tables.



www.codecollege.NET

What's use of "DataView" ?


It is used for sorting and finding data with in DataTable. .



www.codecollege.NET

What is the name of the method which reverts changes made to the DataSet?


The Method which is called to save the changes in a DataSet is,
RejectChanges().



www.codecollege.NET

What is the name of the Method which is called to save the changes in a DataSet ?


The Method which is called to save the changes in a DataSet is,
AcceptChanges().



www.codecollege.NET

Can we have multiple threads in one App domain ?


Yes.



www.codecollege.NET

What are two different types of remote object creation mode in .NET ?


Object can be created using Remoting in two different ways , they are :
1. SAO (Server Activated Objects)
It is also called as Well-Known call mode. It is stateless.
2. CAO (Client Activated Objects)
It has state.



www.codecollege.NET

What is CAS ?


CAS(Code Access Security) belongs to .NET Security Model and determines whether a piece of code is allowed to run or not and if allowed to run then what resources it can access.



www.codecollege.NET

What are the steps followed by the Garbage Collector ?


1. Mark all the managed memory as garbage
2. Look for used memory blocks, and mark them as valid memory
3. Discard all unused memory blocks
4. Compact the heap



www.codecollege.NET

What is the error that is thrown while a method is written without a return type. ?


Not all code paths return a value.



www.codecollege.NET

Can we apply access modifiers to the methods of an interface?


No.



www.codecollege.NET

Can we define variables in interfaces?


No.



www.codecollege.NET

What is the use of ADO.NET Connection Pooling ?


The use of ADO.NET Connection Pooling is it reuses connections from a pool of Connections instead of establishing connection every time.





www.codecollege.NET

How will you enable ADO.NET MARS ?


You can enable MARS by setting the MultipleActiveResultSets attribute in the Connection String as follows,

"Server=localhost;Database=Northwind;" +
"Trusted_Connection=True;MultipleActiveResultSets=True";




www.codecollege.NET

what is MARS in ADO.NET ?


MARS(Multiple Active Result Sets) allows you to execute multiple queries or Stored Procedures with a single Connection.



www.codecollege.NET

On What situations Windows uses Kerberos in Integrated Windows Authentication ?

Monday, August 3, 2009


1. When the server and client are running over Windows 2000 or higher.
2. When an AD with Domain Controller which automatically acts as a key distribution center.


www.codecollege.NET

What are the two protocols used for trasmitting Authentication information in Integrated Windows Authentication ?


1. NTLM NT (LAN Manager).
2. Kerberos 5.


www.codecollege.NET

What are the disadvantages of Digest Authentication ?


1. It works only with IE5.0 or later.
2. Works only when the virtual directory under IIS is controlled by or authenticated by Windows Active Directory domain controller.


www.codecollege.NET

Can ASP.NET Membership API be used in Windows Forms ?


Yes.


www.codecollege.NET

What is the name of the method used to update users in ASP.NET Membership API ?


Membership.UpdateUser(cUser);
where cUser is the object of MembershipUser class.


www.codecollege.NET

Name any two Popular 3rd Party Tool developers for Microsoft Technologies ?


http://www.telerik.com
http://www.infragistics.com


www.codecollege.NET

How can you avoid SQL Server Cursors or What is the alternate for SQL Server Cursors ?

Saturday, August 1, 2009


You can avoid SQL Server Cursors using the following methods ,
1. Temprorary Table.
2. Comma Delimited values.


www.codecollege.NET

What is a SQL Server Replication and what are the Types ?


Replication is the process of copying or moving data between databases in the same server or external servers.
Types:
1. Sanpshot Replication
2. Transaction Replication
3. Merge Replication


www.codecollege.NET

What is a Multicast Delegate ?


It is a Delegate which points to and fires more than one method.


www.codecollege.NET

What is a Delegate?


It is a type safe function pointer. It can hold 1 or more methods in it. It is the base for The .NET Event Model.


www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books