Q. Explain what a diffgram is, and a good use for one?
A : The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. A good use is reading database data to an XML file to be sent to a Web Service.
Q.Whats MSIL, and why should my developers need an appreciation of it if at all?
A : MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL. MSIL also allows the .NET Framework to JIT compile the assembly on the installed computer.
Q.Which method do you invoke on the DataAdapter control to load your generated dataset with data?
A : The Fill() method.
Q.Can you edit data in the Repeater control?
A : No, it just reads the information from its data source.
Q.Which template must you provide, in order to display data in a Repeater control?
A : ItemTemplate.
Q.How can you provide an alternating color scheme in a Repeater control?
A : Use the AlternatingItemTemplate.
Q.What property must you set, and what method must you call in your code, in order to bind the data from a data source to the Repeater control?
A : You must set the DataSource property and call the DataBind method.
Q.What base class do all Web Forms inherit from?
A : The Page class.
Q.Name two properties common in every validation control?
A : ControlToValidate property and Text property.
Q.Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?
A : DataTextField property.
Q.Which control would you use if you needed to make sure the values in two different controls matched?
A : CompareValidator control.
Q.How many classes can a single .NET DLL contain?
A : It can contain many classes.
Q. What is ViewState?
A : ViewState allows the state of objects (serializable) to be stored in a hidden field on the page. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source. ViewState is used to retain the state of server-side objects between post backs.
Q.What is the lifespan for items stored in ViewState?
A : Item stored in ViewState exist for the life of the current page. This includes postbacks (to the same page).
Q.What does the "EnableViewState" property do? Why would I want it on or off?
A : It allows the page to save the users input on a form across postbacks. It saves the server-side values for a given control into ViewState, which is stored as a hidden value on the page before sending the page to the clients browser. When the page is posted back to the server the server control is recreated with the state stored in viewstate.
Q.What are the different types of Session state management options available with ASP.NET?
A : ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in memory on the web server. This requires the a "sticky-server" (or no load-balancing) so that the user is always reconnected to the same web server. Out-of-Process Session state management stores data in an external data source. The external data source may be either a SQL Server or a State Server service. Out-of-Process state management requires that all objects stored in session are serializable.
Q.What is CLS (Common Language Specificaiton)?
A : It provides the set of specificaiton which has to be adhered by any new language writer / Compiler writer for .NET Framework. This ensures Interoperability. For example: Within a ASP.NET application written in C#.NET language, we can refer to any DLL written in any other language supported by .NET Framework. As of now .NET Supports around 32 languages.
Q.What is CTS (Common Type System)?
A : It defines about how Objects should be declard, defined and used within .NET. CLS is the subset of CTS.
Q.What is Boxing and UnBoxing?
A : Boxing is implicit conversion of ValueTypes to Reference Types (Object). UnBoxing is explicit conversion of Reference Types (Object) to its equivalent ValueTypes. It requires type-casting.
Q.What is the difference between Value Types and Reference Types?
A : Value Types uses Stack to store the data where as the later uses the Heap to store the data.
Q.What are the different types of assemblies available and their purpose?
A : Private, Public/shared and Satellite Assemblies.
Private Assemblies : Assembly used within an application is known as private assemblies.
Public/shared Assemblies : Assembly which can be shared across applicaiton is known as shared assemblies. Strong Name has to be created to create a shared assembly. This can be done using SN.EXE. The same has to be registered using GACUtil.exe (Global Assembly Cache).
Satellite Assemblies : These assemblies contain resource files pertaining to a locale (Culture+Language). These assemblies are used in deploying an Gloabl applicaiton for different languages.
Q.What is view state and use of it?
A : The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested for the first time versus when the form is posted (sent to the server), which allows you to program accordingly.
Q.What are user controls and custom controls?
A : Custom controls: A control authored by a user or a third-party software vendor that does not belong to the .NET Framework class library. This is a generic term that includes user controls. A custom server control is used in Web Forms (ASP.NET pages). A custom client control is used in Windows Forms applications.User Controls: In ASP.NET: A user-authored server control that enables an ASP.NET page to be re-used as a server control. An ASP.NET user control is authored declaratively and persisted as a text file with an .ascx extension. The ASP.NET page framework compiles a user control on the fly to a class that derives from the System.Web.UI.UserControl class.
Q.What are the validation controls?
A : set of server controls included with ASP.NET that test user input in HTML and Web server controls for programmer-defined requirements. Validation controls perform input checking in server code. If the user is working with a browser that supports DHTML, the validation controls can also perform validation using client script.
Q.. What's the difference between Response.Write() andResponse.Output.Write()?
A : The latter one allows you to write formattedoutput.
Q.What methods are fired during the page load?
A : Init()
When the page is instantiated, Load() - when the page is loaded into server memory,PreRender () - the brief moment before the page is displayed to the user as HTML, Unload() - when page finishes loading.
Q.Where does the Web page belong in the .NET Framework class hierarchy?
System.Web.UI.Page
Q.Where do you store the information about the user's locale?
System.Web.UI.Page.Culture
Q.What's the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?
A : CodeBehind is relevant to Visual Studio.NET only.
Q.What's a bubbled event?
A : When you have a complex control, likeDataGrid, writing an event processing routine for each object (cell, button,row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents. Suppose you want a certain ASP.NET function executed on MouseOver over a certain button.
LATEST INTERVIEW QUESTIONS
Sunday, January 11, 2009
Difficult Interview Questions - ASP.NET
Campus Interview Papers: 30 VB Interview Questions & Answers
Q : How many objects resides in ADO ?
A : ADO Objects,Connection,Command,Recordset,Parameter,Field,Error
Q : What is the difference between ADODC and ADODB
A : When u build connection with database through coding, then its ADODB..
When u build connection with database through ADO component, then its ADODC
Q : What is difference between dbgrid and flexgrid control
A ; In case of flexgrid also you can make it editable, by placing the textbox on runtime on the cell and key in required data. This is possible with flexgrids onCellEnter and onCellLeave events.
Q: How will u handle error in vb application ? explain
A : If You want To Trap The Error In Visual Basic Code then
Write The Code In Every Procedure & Function
Public Sub xxxxx()
On Error Goto Err_xxxxx
Err_xxxxx:
if err.Number<>0 then
msgbox err.description
end if
End Sub
Q :What is MAPI?
A : Messaging Application programing Interface.
Q : Difference between subquery and coquery
A :A subquery is called a query with in the query. Such as
select n1,n2 from table1 where in n1 not in(select n1 from table2)
while main query is the only query like
select n1,n2 from table1
Q :What are the type of validation available in VB?
A : Field, Form
Q : What's the purpose of Visual source safe in vb?
A : The Visual source safe is used to set level of user control to read, add & destroy.
Q : Why we use Treeview Control?
A : To list the hierarchical list of the node objects. Such of files and Directories
Q : How many images can be placed in the image list?
A: 64
Q : What are the Style Properties of Combo Box?
A : Simple, Dropdown list We can type and select. Dropdown Combo Only Drop Down.
Q : How to change the Mouse Pointer?
A : S creen.MousePointer = VBHourGlass/VBNormal.
Q : Diff types of Lock Types?
A : RdConcurReadOnly 0 (Default)
RdConcurLock 1 (Pessimistic Locking)
RdConcurRowver 2 (Optimistic Lociking)
RdConcurValues 3
RdConcurBatch 4
Q : What are the scopes of the class?
Public, private, Friend
Q : Diff type of Datatypes?
A : LOB (Large Object Data type).
CLOB (Stores Character Objects).
BLOB ( Store Binary Objects such as Graphic, Video Chips and Sound files).
BFILE(Store file pointers to LOB It may Contain filename for photo’s store on CD_ROM).
Q : What is Inprocess and Out of Process?
A : Inprocess It will run with in the memory. ( Local Machine). Out of Process It will run out of the memory Normally in the server side.
Q : What is diff between the Generic Variable and Specific Variable?
A : Generic Variable:
Create Object Ex:-Ole-Automation . No need refer the object library.
Specific Variable:
Binding Procedure Early and Late Binding ( Can be Remove from the Memory).
Q : What are the Technologies for Accessing Database from Visual Basic?set?
A : DAO, Data Control, RDO, ODBCDIRECT, ADO, ODBC API , 0040.
Q : What is the diff between the Create Object and Get object?
A : Create Object - To create an instance of an object.
Get Object To get the reference to an existing object
Q : What is the max size allowed for Max Text box length.
A : 32,000
Q : How many event in VB6 form ? :
A : 31
Q : What about OCX Controls
A : OCX is a USER control. we can create a control of our own and use it in our projects. OCX can be created using Activex control
. For example if we have a Text Box for getting Numbers only in every form and in every project we can create a Text Box for getting numbers only in ActiveX Control and use it as we do to other Text Box.
Q : What is compatibility ?
A : IN Visual Basic have 3 types of Compatibilites is there.
1) No Compatibility :- New GUID created, references from other components will not work
2) Project Compatibility :-Default for a new component
3) Bianary Compatibility :-GUID does not change, references from other components will work
Q : How to send data from MS FlexGrid to database
A : FlexGrid1.TextMatrix(Row,Column) ...
Q : What is Stored Variable?
A stired variable is a variable which is permanently stored in the memory and we can use that variable in our project.
Q : What are the advantages of Visual Basic ?
A : 1) VB is a rapid application Tool to develop applications faster2) Flexibility in design time3) Debugging the source code4) .(dot) operator for objects to expose its properties and methods5) plug and play wizards to connect databases
Q : What is Tag & What is the purpose of using a Tag?
A : Tag is usaually used to store the value of any variable or store the value of any field for the future use. ...
Q : What is Diff. Between Use Defined Function and Array.
A : Array is collection of variable of similar datatypes saves unser the same name.while user definded function are like the store procedures but more effective than store proceures.we can pass the parameters to user definded funtion and it return u the results ...
Q : What is meant by urlencode and urldecode?
Anwser 1:
urlencode() returns the URL encoded version of the given string. URL coding converts special characters into % signs followed by two hex digits. For example: urlencode("10.00%") will return "10%2E00%25". URL encoded strings are safe to be used as part of URLs.
urldecode() returns the URL decoded version of the given string.
Anwser 2:
string urlencode(str) - Returns the URL encoded version of the input string. String values to be used in URL query string need to be URL encoded. In the URL encoded version:
Alphanumeric characters are maintained as is.
Space characters are converted to "+" characters.
Other non-alphanumeric characters are converted "%" followed by two hex digits representing the converted character.
string urldecode(str) - Returns the original string of the input URL encoded string.
For example:
$discount ="10.00%";
$url = " http://domain.com/submit.php?disc=".urlencode($discount );
echo $url;
You will get " http://domain.com/submit.php?disc=10%2E00%25 ".
Q : what is instead of trigger ? explain
A : Instead of Trigger is used in SQL Server it used when we execute some sql QUERYsome how that query doesn't execute then Instead of Trigger is fired.
Posted by Sakthivel at 9:45 PM 0 comments
Labels: Campus Interview papers, free download interview questions and answers, latest interview questions and answers, questions, vb, web language tutorials
Latest VB script Interview Questions & Answers
Q : What are the major differences between Visual Basic and VBScript?
A : They are different: You dont compile VB scripts like in Visual Basic. You just distribute them as plain text HTML files.The script engine interprets this text into intermediate code when it loads the Web page. It also creates a symbol table so that it can quickly look up things such as event-procedures and variable names. The scripting engine uses the ActiveX Scripting technology to interact with the browser.
IE supports VB scripts on your computer& we can create Web pages with VB scripts. For Visual Basic, you need a text editor,ActiveX,Control Pad and Web Browser.
Some other differences:
Debugging VBScript doesn't have a debugger like Visual Basic. You'll resort to using lots of message boxes, instead.
Event-handlers You don't have an editor in which you select an object and event to edit an event-procedure. You have to name event-procedures in your scripts so that the scripting engine can find the appropriate handler when an object fires an event.
Forms VBScript doesn't have a forms editor. It doesn't need one, because you can't display forms anyway. You put forms and controls on the Web page, instead. You can use the ActiveX Control pad to insert all those nasty