Dotnet interview questions
- Explain the life cycle of an ASP .NET page.
- Explain the .NET architecture.
- What are object-oriented concepts?
- How do you create multiple inheritance in c# and .NET?
- When is web.config called?
- How many weg.configs can an application have?
- How do you set language in weg.config?
- What does connection string consist of?
- Where do you store connection string?
- What is abstract class?
- What is difference between interface inhertance and class inheritance?
- What are the collection classes?
- What are the types of threading models?
- What inheritance does VB.NET support?
- What is a runtime host?
- Describe the techniques for optimizing your application?
- Differences between application and session
- What is web application virtual directory?
- Differences between Active.exe and Dll
- Connection pooling in MTS?
- If cookies is disabled in client browser, will session tracking work?
- How do you make your site SSL-enabled?
- Will the following code execute successfully: response.write(’value of i=’+i);
- What are the provides available with VB.NET?
- What is a Process, Sesion and Cookie?
- What are Abstract base classes?
- What are the Difference between bstract base classes and Abstrat classes
- What are interface in .NET?
- How is Polymorphism supports in .NET?
- What are the 2 types of polymorphism supports in .NET?
- Types of compatibilities and explain them.
- What is aggregative? How can it be implements in .NET?
- Difference between COM components and .NET components?how to register it
- Difference between early binding and late binding?
- ASP.NET OBJECTS?
- Asp.NET life cycle? When request mode
- Explain ADO and its objects.
- What is side by side execution?
- Explain serialization?
- Explain a class access specifiers and method acess specifiers.
- What is the difference between overloading and overriding ? how can this be .NET
- Explain virtual function and its usage.
- How do you implement inhetance in .NET?
- If I want to override a method 1 of class A and this class B then how do you declared
- Explain friend and protected friend.
- Explain multiple and multi_level inheritance in .NET?
- Name all kind of access specifiers for a class and for methods?
- On ODP.NET
- What is non-derterministic finalization?
- What is isPostback property?
- What is dictionary base class?
- How can a class be extended and how is this mechanism difff from that of implementation an interface?
- What are indexes .NET?
- How can indexes be implemented in .NET?
- Differences between DLL and EXE?
- Can an assembly have EXE?
- Can a DLL be changed to an EXE?
- Compare & contrast rich client (smart clients or Windows-based) & browser-based Web application
- Compare Client server application with n-Tier application
- Can a try block have more than one catch block?
- Can a try block have nested try blocks?
- How do you load an assembly at runtime?
- If I am writing in a language like VB or C++, what are the procedures to be followed to support .NET?
- How do you view the methods and members of a DLL?
- What is shadowing?
- What are the collections you’ve used?
- How do you create a recordset object in VBScript?
- What is Querystring collection? - It allows you to extract data sent to the server using a GET request.
- Explain the difference between POST and GET Method. - GET requests are string data that is visible to the end user via the URL and a limit of 2kb, POST requests have no limit on total data and the user can’t see the data in a query string.
- Why do we use Option Explicit? - To avoid multiple variables of the same name.
- How do you write an SQL insert statement? - insert into tablename (fieldA, fieldB, fieldC)Values(’dataA’, ‘dataB’, ‘dataC’);
- How can you have different number of cells for each row of a table in HTML? - using colspan and rowspan
- What is wrong with the following code: <%afname="header.asp"%><%=afname%>"–>
- What variable can you use to share info across the whole application for one user? - Use the sessions object
- What is string concatenation function in VBScript? - the ampersand symbol and ampersand space underscore across multiple lines
- How do you get the value of a combo box in Javascript? - document.forms['formName'].elements['comboName'].options[i].value
- What is a class in CSS? - A class allows you to define different style characteristics to the same HTML element.
- When inserting strings into a SQL table in ASP what is the risk and how can you prevent it?
- Which is the default Data types in VBScript? - Variant.
- State True or False: If you set AutoGenerateColumns=True and still provide custom column definitions, the DataGrid will render both
- True
- 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)
- 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.xml
- Which of the following is the C# escape character for Null?
- \n
- \0
- \f
- \v
- 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
- 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()
- 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
- What method must be overridden in a custom control?
- The Paint() method
- The Control_Build() method
- The Render() method
- The default constructor
- What is used to validate complex string patterns like an e-mail address?
- Extended expressions
- Regular expressions
- Irregular expressions
- Basic expressions
- The following is a valid statement in ASP.NET<%@ Page Language="C" %>
- True
- False
- A valid comment block in ASP.NET is
- <% - - Comment - - %>
- <% ! - - Comment - - >
- The event handlers that can be included in the Global.asax file are
- Application Start and
Session Start event handlers only - Application End and
Session End event handlers only - Per-request and Non-deterministic event handlers only
- Application Start and End ,
Session Start and End, Per-request and Non-deterministic event handlers
- Application Start and
- A Few of the Namespaces that get imported by default in an ASPX file are
- The Assemblies that can be referenced in an ASPX file without using @Assembly Directive is
- An .ASHX file contains the following
- What is the output for the following code snippet:
public class testClass { public static void Main(string[] args) { System.Console.WriteLine(args[1]); }//end Main }//end class testClass
- Compiler Error
- Runtime Error
- Hello C# world
- None of the above
- One of the possible way of writing an ASP.NET handler that works like an ISAPI filter- that is, that sees requests and responses and modifies them also, is by,
- writing a module that extends FormsAuthenticatonModule and using it
- writing a component class that extends HttpModuleCollection and using it
- writing an HTTP module-a Class that implements IhttpModule and registering it in Web.Config
- All of the above
- The ASP.NET directive that lets you cache different versions of a page based on varying input parameters, HTTP headers and browser type is
- @OutputCache
- @CacheOutput
- @PageCache
- @CacheAll
- If we develop an application that must accommodate multiple security levels through secure login and ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?
- SessionState mode="InProc"stateConnectionString=" tcpip=127.0.0.1:42424" sqlConnectionString=" data source=127.0.0.1;user id=sa;password="cookieless="false" timeout="30" />
- SessionState mode="OutProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="30" />
- SessionState mode="stateserver" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="30" />
- What is the output for the below mentioned compilation command>csc /addmodule:A.Exe B.Cs
- A.exe
- B.exe
- A.dll
- B.dll
- How can be the web application get configured with the following authorization rules
- Anonymous users must not be allowed to access the application.
- All persons except David and John must be allowed to access the application.
- authorization>
authorization> - authorization>
authorization> - authorization>
authorization> - authorization>
authorization>
- What will be the output of the following code snippet?
using System; class MainClass { static void Main( ) { new MainClass().Display( 3.56 ); } private void Display( float anArg ) { Console.Write( "{0} {1}", anArg.GetType(), anArg ); } double Display( double anArg ) { Console.Write( "{0} {1}", anArg.GetType(), anArg ); return anArg; } public decimal Display( decimal anArg ) { Console.Write( "{0} {1}", anArg.GetType(), anArg ); return anArg; } }
- What will be output for the given code?
Dim I as integer = 5 Do I = I + 2 Response.Write (I & " ") Loop Until I > 10
- 5 8
- 5 7 9
- 7 9 11
- A structure in C# can be derived from one or more
- class
- interface
- both
- none
- State True or False: Static method cannot be overridden
- True
- False
- The Equivalent HTML Control for the tag is
- HtmlInput
- HtmlButton
- HtmlPushButton
- HtmlInputButton
- The Equivalent Html Control for the tag is
- HtmlCheckBox
- HtmlInputChkBox
- HtmlInputCheckBox
- HtmlInputTypeChkBox
- Which operator is used for connecting a event with a procedure in C#?
- +=
- =
- both
- none
- The Equivalent Html Control for the tag is
- State True or False: Events in Web forms are processed before the “Page Load” event
- True
- False
- What namespaces are necessary to create a localized application?
- System.Globalization
- System.Globalization and System.Resources.
- System.Resources.
- System.Array
- A new server-side control can be created by implementing the class ___________
- System.Web.WebControl
- System.Web.UI.WebControl
- System.Web.UI.WebControls.WebControl
- Any one of the above
- The parameter “clienttarget = downlevel” does one of the following
- Adds aliases for specific user agents to an internal collection of user agent aliases
- Indicates the useragents level of validating the controls
- Disables all DHTML events(including Validation controls)
- None of the above
- The methods in C# can be overloaded in which of the following ways
- By having the same method name and specifying different number of parameters
- By giving different method names and same number of parameters
- By having the same method name and specifying different types of parameters
- By giving different method names and same types of parameters
- The RangeValidator control supports the following datatype
- Integer and String
- Integer, Float, String, XMLDatatypes
- Integer, String and Date
- Integer, Boolean, Short, String and Date
- What is the difference between Convert.ToInt32 and int.Parse?
- Both are same and both can handle null value.
- Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.
- int.Parse can handle null value but Convert.ToInt32 throws ArgumentNullException error.
- Both Convert.ToInt32 and int.Parse cannot handle null value.
- State True or False: Any ODBC-compliant database can be accessed through ASP.NET
- True
- False
- You need to select a .NET language that has auto-documenting features built into the source code and compiler. Given the scenario above what language compiler should be selected?
- vbc.exe
- cl.exe
- ilasm.exe
- cs.exe
- A set of tables are maintained in a Dataset as
- TablesCollection object
- DataTableCollection object
- DataRowsCollection object
- TableRowCollection object
- The namespaces needed to use data mechanisms in ASP.NET pages are
- System.Data, System.Data.OleDb or System.Data.SQL
- System.Data, System.Data.ODBC
- System.Data, System.Data.DataRow
- System.Data.DataRowCollection, System.Data.DbType
- What are the different methods to access Database in .NET ?
- OleDB,ODBC,SQLClient
- OleDB, JDBC, SQLServer
- ODBC-JDBC, DataSet, SQLClient
- Datasource, DataSet, DSN
- The two properties of a DataGrid that has to be specified to turn on sorting and paging respectively are
- EnableSorting = “true” and EnablePaging = “true”
- DisableSorting = “false” and DisablePaging = “false”
- AllowSorting = “true” and AllowPaging = “true”
- Sorting = “true” and Paging = “true”
- Which one of the following objects is used to create a foreign key between two DataTables?
- DataRelation
- DataRelationship
- DataConstraint
- DataKey
- The Syntax for data-binding expressions is
- <%# 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()
- 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
- 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
- The property that indicates whether existing database constraints should be observed when performing updates
- EnforceConstraints
- Constraints
- GetConstraints
- Which of the following languages is NOT included in the default .NET Framework installation?
- What are the different types of serialization supported in .NET Framework
- XmlSerializer
- SoapFormatter
- XPathNavigator
- HttpFormatter
- The CLR uses which format for assembly version numbers
- Major:Minor:Revision:Build
- Major:Build:Minor:Revision
- Major:Revision:Minor:Build
- Major:Minor:Build:Revision
- What tool is used to manage the GAC?
- GacMgr.exe
- GacSvr32.exe
- GacUtil.exe
- RegSvr.exe
- State True or False: A single .NET dll can contain unlimited classes
- True
- False
- State True or False: ASP.NET can currently run only on Windows Platform
- True
- False
- Which one of the following best describes “Type-Safe”
- It ensures that the data type are safely handled
- It ensures that types are not mismatched when they are called so uses a typecasting before referencing any data object
- It ensures that an object only references memory locations that it’s allowed to, preventing data corruption and the accidental misuse of object types
- All of the above
- The number of objects in ASP.NET is
- 6
- 7
- 9
- 10
- The code used to turn off buffering is
- Buffering = false
- OutputBuffer = false
- BufferOutput = false
- Buffer = Off
- Can you have two applications on the same machine one which is using .NET Framework 1.1 and the other using 2.0 ?
- Yes
- No
- Depends on System configuration
- Which of the following DOT.NET tools manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs)?
- sn.exe
- certnet.exe
- certmgr.exe
- gacutil.exe
- You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be used?
- certmgr.exe
- gacutil.exe
- sn.exe
- resgen.exe
- The object that contains all the properties and methods for every ASP.NET page, that is built is
- Page Object
- HTTPPage Object
- WebPage Object
- System.Web.UI.Page
- In C#, which character is used to indicate a verbatim string literal?
- @
- !
- "
- #
- Which of the following operators has the highest precedence?
- Pre Increment (++x)
- Bitwise Or: |
- Post Increment (x++)
- The uniqueId that gets generated at the start of the Session is stored in
- Client computer as a cookie
- Server machine
- Passed to and fro on each and every request and response
- Both a and b are correct
- State True or False: C# supports multiple-inheritance
- True
- False
- Bitwise AND operator in C# is
- &
- &&
- AND
- XAND
- Bitwise OR operator in C# is
- OR
- ||
- |
- XOR
- What’s the .NET datatype that allows the retrieval of data by a unique key?
- Primary
- Integer
- Unique Identifier
- HashTable
- The keyword ‘int’ maps to one of the following .NET types
- System.Int16
- System.Int32
- System.Int64
- System.Int128
- What can be achieved in IL which is not possible in C# ?
Creation of an ArrayList
- Creation of a Dictionary
- Creation of a two dimensional array
- Creation of a non-zero based array
- Which of the following is the correct code for setting a Session timeout of 30 minutes
- Session.Timeout = 108000
- Session.Timeout = 1800
- Session.Timeout = 300
- Session.Timeout = 30
- The process that ASP.NET uses to keep track of Sessions without cookies is
- Cookie Munging
- Cookie Monking
- Cookie Mocking
- Cookie Munching
- The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is
- Server.Transfer()
- Server.Redirect()
- Server.Execute()
- To test a Web Service you must create a windows application or web application to consume this service? It is True/False?
- How many classes can a single.NET DLL contain?
- What are good ADO.NET object(s) to replace the ADO Recordset object?
- On order to get assembly info which namespace we should import?
- How do you declare a static variable and what is its lifetime? Give an example.
- How do you get records number from 5 to 15 in a dataset of 100 records? Write code.
- How do you call and execute a Stored Procedure in.NET? Give an example.
- What is the maximum length of a varchar in SQL Server?
- How do you define an integer in SQL Server?
- How do you separate business logic while creating an ASP.NET application?
- If there is a calendar control to be included in each page of your application, and and we do not intend to use the Microsoft-provided calendar control, how do you develop it? Do you copy and paste the code into each and every page of your application?
- How do you debug an ASP.NET application?
- How do you deploy an ASP.NET application?
- Explain similarities and differences between Java and.NET?
- Specify the best ways to store variables so that we can access them in various pages of ASP.NET application?
- What are theXML files that are important in developing an ASP.NET application?
- What are theXML files that are important in developing an ASP.NET application?
- What is XSLT and what is its use?
- How many objects are there in ASP?
- Which DLL file is needed to be registered for ASP?
- Is there any inbuilt paging (for example shoping cart, which will show next 10 records without refreshing) in ASP? How will you do pating?
- What does Server.MapPath do?
- Name atleast three methods of response object other than Redirect.
- Name atleast two methods of response object other than Transfer.
- What is State?
- Explain differences between ADO and DAO.
- How many types of cookies are there?
- Tell few steps for optimizing (for speed and resource) ASP page/application.
- Which command using Query Analyzer will give you the version of SQL Server and Operating System?
- Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table.
- What is the purpose of using COLLATE in a query?
- What is one of the first things you would do to increase performance of a query? For example, a boss tells you that “a query that ran yesterday took 30 seconds, but today it takes 6 minutes”?
- What is an execution plan? When would you use it? How would you view the execution plan?
- What is the STUFF function and how does it differ from the REPLACE function?
- What does it mean to have quoted_identifier on? What are the implications of having it off?
- What are the different type of replication? How are they used?
- What is the difference between a Local temporary table and a Global temporary table? How is each one used?
- What are cursors? Name four type of cursors and when each one would be applied?
- What is the purpose of UPDATE STATISTICS?
- How do you use DBCC statements to monitor various ASPects of a SQL Server installation?
- How do SQL Server 2000 andXML linked? What is SQL Server agent?
- What is referential integrity and how can we achieve it?
- What is indexing?
- Explain differences between server.transfer and server.execute method?
- What is de-normalization? When do you do it and how?
- Explain features of SQL Server like Scalibility, Availability, Integration with Internet.
- What is DataWarehousing?
- What is OLAP?
- How do we upgrade SQL Server 7.0 to 2000?
- What is job?
- What is Task?
- How would you update the rows which are divisible by 10, given a set of numbers in column?
- How do you find the error, how can you know the number of rows affected by last SQL Statement?
- What are the advantages/disadvantages of viewstate?
- Describe session handling in webform. How does it work and what are the limits?
- Explain differences between framework 1.0 and framework 1.1
- If we write any code for dataGrid methods, what is the access specifier used for that methods in the code behind file and why and how? Give an example.
- What is the use of trace utility?
- What are the differences between User control and Web control and Custom control?
- If I have more than one version of one assemblies, then how will I use old version in my application? Give an example.
- How do you create threadinf in.NET?
- Describe the Managed Execution Process.
- What is Active Directory? What is the namespace used to access the Microsoft Active Directories?
- What are Interop Services?
- How does you handle this COM components developed in other programming languages in.NET?
- How will you register COM+ services?
- What is a static class?
- What is static member?
- What is static function?
- What is static constructor?
- How can we inherit a static variable?
- How can we inherit a static member?
- Can we use a static function with a non-static variable?
- How can we access static variable?
- Why main function is static?
- How will you load dynamic assembly? How will create assesblies at run time?
- What is Reflection?
- If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) in my application?
- How do you create threading in.NET? What is the namespace for that?
- What do you mean by Serialize and MarshalByRef?
- What is the difference between Array and LinkedList?
- What is Asynchronous call and how it can be implemented using delegates?
- How to create events for a control? What is custom events? How to create it?
- If you want to write your own dot net language, what steps you will you take care?
- Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
- How dot net compiled code will become platform independent?
- Without modifying source code if we compile again, will it be generated MSIL again?
- How does you handle this COM components developed in other programming languages in.NET?
- How CCW (Com Callable Wrapper) and RCW (Runtime Callable Wrappers) works?
- What are the new thee features of COM+ services, which are not there in COM (MTS)?
- What are the differences between COM architecture and.NET architecture?
- Can we copy a COM dll to GAC folder?
- What is Shared and Repeatable Inheritance?
- Can you explain what inheritance is and an example of when you might use it?
- How can you write a class to restrict that only one object of this class can be created (Singleton class)?
- What are virtual destructures?
- What is close method? How its different from Finalize and Dispose?
- What is Boxing and UnBoxing?
- What is check/uncheck?
- What is the use of base keyword? Tell me a practical example for base keyword’s usage?
- What are the different.NET tools which you used in projects?
- What will do to avoid prior case?
- What happens when you try to update data in a dataset in.NET while the record is already deleted in SQL Server as backend?
- What is concurrency? How will you avoid concurrency when dealing with dataset?
- One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?
- How do you merge two datasets into the third dataset in a simple manner?
- If you are executing these statements in commandObject. “Select * from Table1; Select * from Table2″ How you will deal result set?
- How do you sort a dataset.
- If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?
- What is the use of Parameter object?
- How to generateXML from a dataset and vice versa?
- How do you implement locking concept for dataset?
- How will you do Redo and Undo in TextBox control?
- How to implement DataGrid in.NET? How would you make a combo-box appear in one column of a DataGrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods. what is the access specifier used for that methods in the code behind file and why?
- How can we create Tree control in asp.NET?
- Write a program in C# to find the angle between the hours and minutes in a clock?
- Write a program to create a user control with name and surname as data members and login as method and also the code to call it.
- How can you read 3rd line from a text file?
- Explain the code behind wors and contrast that using the inline style.
- Explain different types of HTML, Web and server controls.
- What are the differences between user control and server control?
- How server form post-back works?
- Can the action attribute of a server-side
- How would ASP and ASP.NET apps run at the same time on the same server?
- What are good ADO.NET object to replace to ADO Recordset object.
- Explain the differences between Server-side code and Client-side code.
- What type of code(server or client) is found in a Code-Behind class?
- Should validation (did the user enter a real date) occur server-side or client-side? Why?
- What does the “EnableViewState” property do? Why would I want it on or off?
- What is the difference between Server.Transfer and response.Redirect? Why?
- Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced.NET component?
- Let’s say I have an existing application written using VB6 and this application utilizes Windows 2000 COM+ transaction services. How would you approach migrating this application to.NET?
- If I am developing an application that must accomodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?
- What are ASP.NET web forms? How is this technology different than what is available though ASP(1.0-3.0)?
- How does VB.NET achieve polymorphism?
- How does C# achieve polymorphism?
- Can you explain what is Inheritance and an example in VB.NET and C# of when you might use it?
- Describe difference between inline and code-behind?
- What is loosely coupled solution in.NET?
- What is diffgram?
- Where would you use an iHTTPModule and what are the limitations of any approach you might take in implementing one?
- What are the Advantages and DisAdvantages of viewstate?
- Describe session handling in a webform, how does it work and what are the limitations?
- How would you get ASP.NET running in Apache web servers? Explain it’s limitations.
- What is MSIL and why should my developers need an appreciation of it if at all?
- Which methos do you invoke on the DataAdapter control to load your generated dataset with data?
- Can you edit data in Repeater control? How?
- Which template must you provide, in order to display data in a Repeater control?
- How can you provide an alternating color scheme in a Repeater control?
- What property must you set, and what method must you call in your code, in order to bind the data from some data source to the repeater control?
- What base class do all web forms inherit from?
- What method do you use to explicitly kill a user’s session? How?
- How do you turn off cookies for one page in your site? Give an example.
- Which two properties are on every validation control?
- What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
- How do you create a permanent cookie?
- What tag do you use to add a hyperlink column to the dataGrid?
- What is the standard you use to wrap up a call to a Web Service?
- Which method do you use to redirect the user to another page without performing a round trip to the client? How?
- What is the transport protocol you use to call a Seb Service SOAP?
- What does WSDL stand for?
- What property do you have to set to tell the grid which page to go to when using the Pager object?
- Where on the Internet would you look for Web Services?
- What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
- 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?
- How is a property designated as read-only?
- Which control would you use if you needed to make sure the values in two different controls matched?
- How does ASP page work?
- How ASP.NET page works?
- What are the contents of cookie?
- How do you create a permanent cookie?
- What is ViewState? What does the “EnableViewState” property do? Whay would I want it on or off?
- Give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
- Describe the role of global.asax?
- How can you debug your.NET application?
- How do you deploy your ASP.NET application?
- Where do we store our connection string in ASP.NET application?
- Explain security types in ASP.NET?
- Where do we store our connection string in ASP.NET application?
- Explain different Authentication modes in ASP.NET?
- How.NET has implemented security for web applications?
- How to do forms authentication in ASP.NET?
- Explain authentication levels in.NET?
- Explain authorization levels in.NET?
- How can you debug an ASP page, without touching the code?
- How can you handle Exceptions in ASP.NET?
- How can you handle UnManaged Code Exceptions in ASP.NET?
- Which is the namespace used to write error message in event Lof File?
- What are the Page level transaction and class level transaction?
- What are different transaction options?
- What is the namespace for encryption?
- What is the difference between application and cache variables?
- What is the difference between control and component?
- You have defined one page_load event in ASPx page and same page_load event in code behind, how will program run?
- Where would you use an IHttpModule, and what are the limitations of any approach you might take in implementing one?
- Can you edit data in the Repeater control? Which template must you provide, in order to display data in Repeater control? How can you provide an alternating color scheme in a repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some source to the repeater?
- In what order do the events of an ASPX page executes. As a developer is it important to understand these events?
- How would you get ASP.NET running in Apache web servers? Why would you even do this?
- What tags do you need to add within the ASP:datagrid tags to bind columns manualy?
- How can we create pie chart in ASP.NET?
- How do you understand asynchronous web services?
- What are the events fired when web service called?
- How do you perform a transaction in web services?
- How does SOAP transport happen and what is the role of HTTP in it? How you can access a webservice using soap?
- What are the different formatters can be used in both Binary and SOAP?
- How will you expose/publish a webservice?
- What is disco file?
- What’s the attribute for webservice method? What is the namespace for creating webservice?
- Can you pass SOAP messages through remoting?
- Explain web client class and its methods?
- What is flow of remoting?
- Explain the concept of data island?
- How to useXML DOM model on client using JavaScript?
- What are the ways to create a tree view control usingXML, XSL and JavaScript?
- What is XPathNavigator?
- What is the use of Template in XSL?
- What is “Well FormedXML” and “ValidXML“?
- How will you do SubString in XSL?
- How do you deal sorting columns dynamically inXML?
- What is “Async” property ofXML?
- What is XPath query?
- Explain differences between Element and Node.
- What is CDATA section?
- Explain definition and differences between DOM and SAX?
- What is GetElementbyname method will do?
- What will selectnode method will do?
- What is validXML document?
- What is well formedXML document?
- What is the difference betweenXMLDocument andXMLDataDocument?
- Can I replace my Sqlserver withXML files and how about handling the same?
- Write syntax to serialize class usingXML Serializer?
- How can we configure the sites in web server(IIS)?
- Explain advantages of IIS 6.0?
- What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.
- What is serialization, how it works in .NET?
- What should one do to make class serializable?
- What exactly is being serialized when you perform serialization?
- Tell me about 6h4 methods you have used to perform serialization.
- Did you work with XML and XSL Transformations?
- What methods and what for did you use to work with XML?
- What is the purpose of reserved word “using” in C#?
- How does output caching work in ASP.NET?
- What is connection pooling and how do you make your application use it?
- What are different methods of session maintenance in ASP.NET?
- What is Viewstate?
- Can any object be stored in a Viewstate?
- What should you do to store an object in a Viewstate?
- Explain how Viewstate is being formed and how it’s stored on client.
- Explain control life cycle, mind event order.
- What do you know about ADO.NET’s objects and methods?
- Explain DataSet.AcceptChanges and DataAdapter.Update methods.
- Assume you want to update a record in the database using ADO.NET. What necessary steps you should perform to accomplish this?
- How to retreive the value of last identity has been updated in a database (SQL Server)?
- What is the base class of .NET?
- Explain assemblies.
- Name some of the languages .NET support?
- ADO.NET features? Benefits? Drawbacks?
- How many types of exception handlers are there in .NET?
- Difference between Panel and GroupBox classes?
- What is the base class of Button control?
- What is Response object? How is it related to ASP’s Response object?
- What is IIS? Have you used it?
- Main differences between ASP and ASP.NET.
- Describe the difference between a Thread and a Process?
- What is a Windows Service and how does its lifecycle differ from a “standard� EXE?
- What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?
- What is the difference between an EXE and a DLL?
- What is strong-typing versus weak-typing? Which is preferred? Why?
- What’s wrong with a line like this? DateTime.Parse(myString
- What are PDBs? Where must they be located for debugging to work?
- What is cyclomatic complexity and why is it important?
- Write a standard lock() plus double check to create a critical section around a variable access.
- What is FullTrust? Do GAC’ed assemblies have FullTrust?
- What benefit does your code receive if you decorate it with attributes demanding specific Security permissions?
- What does this do? gacutil /l | find /i “about”
- What does this do? sn -t foo.dll
- What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
- Contrast OOP and SOA. What are tenets of each
- How does the XmlSerializer work? What ACL permissions does a process using it require?
- Why is catch(Exception) almost always a bad idea?
- What is the difference between Debug.Write and Trace.Write? When should each be used?
- What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
- Does JITting occur per-assembly or per-method? How does this affect the working set?
- Contrast the use of an abstract base class against an interface?
- What is the difference between a.Equals(b) and a == b?
- In the context of a comparison, what is object identity versus object equivalence?
- How would one do a deep copy in .NET?
- Explain current thinking around IClonable.
- What is boxing?
- Is string a value type or a reference type?
loading...
No comments: