Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Wednesday, July 16, 2008

.Net Web Interview Questions and Answers 4

Which one of the following objects is used to create a foreign key between two DataTables?
* DataRelation
* DataRelationship
* DataConstraint
* DataKey

DataRelation

The Syntax for data-binding expressions is
* <%# property or collection %>
* <%# property or collection #%>
* <%$ property or collection %>
* <%@ property or collection %>

<%# property or collection #%>

The method that need to be invoked on the DataAdapter control to load the generated dataset with data is
* Bind()
* Fill()
* FillData()
* SetData()

Fill()

Which of the following operations can you NOT perform on an ADO.NET DataSet?
* A DataSet can be synchronised with the database.
* A DataSet can be synchronised with a RecordSet.
* A DataSet can be converted to XML.
* You can infer the schema from a DataSet

A DataSet can be synchronised with a RecordSet.

Which is the correct statement to set the alias name for namespace in C#?
* using System Data.OracleClient = aliasName;
* using aliasName = System.Data.OracleClient;
* string aliasName = using.System.Data.OracleClient;
* Both a & b

using aliasName = System.Data.OracleClient;

The property that indicates whether existing database constraints should be observed when performing updates
* EnforceConstraints
* Constraints
* GetConstraints
* ConstraintsEnforce

EnforceConstraints

State True or False: If you set AutoGenerateColumns=True and still provide custom column definitions, the DataGrid will render both
* True
* False

False.

The data from an XSL Transform with XmlReader can be returned in one of the following ways
* objReader = objXslT.Transform(objNav, nothing)
* objXslT.Transform(objNav, nothing)
* objReader = objXslT.Transform(objNav, nothing, objWriter)
* objXslT.Transform(objNav, nothing, objWriter)

objXslT.Transform(objNav, nothing)

Pick the command line that would result in the C# compiler generating an XML documentation file
* csc /doc:NewHome.xml NewHome.cs
* c /doc /docfile: NewHome.xml NewHome.cs
* csc /doc /out: NewHome.xml NewHome.cs
* csc /xml NewHome.cs

csc /doc:NewHome.xml NewHome.cs

What is the comment syntax for C#’s XML-based documentation? * /** and **/ * //# * /// * //*

///

When creating a C# Class Library project, what is the name of the supplementary file that Visual Studio.NET creates that contains General Information about the assembly?
* AssemblyInfo.xml
* AssemblyInfo.cs
* AssemblyInformation.cs
* AssemblyAttributes.cs

AssemblyInfo.cs

Which of the following is the C# escape character for Null?
* \n
* \0
* \f
* \v

\0

What is the exception that is thrown when there is an attempt to dynamically access a method that does not exist?
* MissingMethodException
* TypeLoadException
* MethodLoadException
* MethodAccessException

MissingMethodException

What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time?
* Synchronize()
* Lock() and UnLock()
* Lock()
* Asynchroize()

Lock()

After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t execute. What could the problem be?
* The AutoEventWireup attribute is set to False
* The AutomaticPostBack attribute is set to False
* The codebehind module is not properly compiled
* The ListBox must be defined WithEvents

AutoPostBack attribute is set to False

What method must be overridden in a custom control?
* The Paint() method
* The Control_Build() method
* The Render() method
* The default constructor

The Render() method

No comments:

Archives