|
|
Interview Questions |
|
|
|
|
ASP.NET and .NET WEB Questions and Answers
Are you a developer? Need to update your software development knowledge or need to prepare for a job interview?
Check out this collection of ASP.NET and .NET WEB Questions and Answers...
ASP.NET and .NET WEB Questions and Answers
- How many languages .NET is supporting now?
- How is .NET able to support multiple languages?
- How ASP .NET different from ASP?
- What is smart navigation?
- What is view state?
- How do you validate the controls in an ASP .NET page?
- Can the validation be done in the server side? Or this can be done only in the Client side?
- How to manage pagination in a page?
- What is ADO .NET and what is difference between ADO and ADO.NET?
- Explain the differences between Server-side 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?
- Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component?
- Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?
- Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
- What are ASP.NET Web Forms? How is this technology different than what is available though ASP?
- How does VB.NET/C# achieve polymorphism?
- Can you explain what inheritance is and an example of when you might use it?
- How would you implement inheritance using VB.NET/C#?
- Whats an assembly?
- Describe the difference between inline and code behind - which is best in a loosely coupled solution?
- Explain what a diffgram is, and a good use for one?
- Where would you use an iHTTPModule, and what are the limitations of anyapproach you might take in implementing one?
- In what order do the events of an ASPX page execute. As a developer is it important to undertsand these events?
- Which method do you invoke on the DataAdapter control to load your generated dataset with data?
- 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 do you turn off cookies for one page in your site?
- Which two properties are on every validation control?
- How do you create a permanent cookie?
- Which method do you use to redirect the user to another page without performing a round trip to the client?
- What is the transport protocol you use to call a Web service?
- True or False: A Web service can only be written in .NET.?
- What does WSDL stand for?
- 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 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?
- True or False: To test a Web service you must create a windows application or Web application to consume this service?
- How many classes can a single .NET DLL contain?
- Describe session handling in a webfarm, how does it work and what are the limits?
- What are the disadvantages of viewstate/what are the benefits?
- What tags do you need to add within the asp:datagrid tags to bind columns manually?
- What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?
- 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?
- What is the difference between boxing and unboxing?
- 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 difference between an EXE and a DLL?
- What is strong-typing versus weak-typing? Which is preferred? Why?
- What are PDBs? Where must they be located for debugging to work?
- What is cyclomatic complexity and why is it important?
- What is FullTrust? Do GAC’ed assemblies have FullTrust?
- What does this do? gacutil /l | find /i “about”
- 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?
- Contrast the use of an abstract base class against an interface?
- What is the difference between a.Equals(b) and a == b?
- How would one do a deep copy in .NET?
- What is boxing?
- Is string a value type or a reference type?
- How does the lifecycle of Windows services differ from Standard EXE?
- What’s wrong with a line like this? DateTime.Parse(myString)
- NET is Compile Time OR RunTime Environment?
- Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.
- What’s the difference between Response.Write() andResponse.Output.Write()?
- What methods are fired during the page load?
- Where does the Web page belong in the .NET Framework class hierarchy?
- Where do you store the information about the user’s locale?
- What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?
- What’s a bubbled event?
- Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler?
- What data type does the RangeValidator control support?
- 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...
- The CLR uses which format for assembly version numbers ...
- What tool is used to manage the GAC?
- State True or False: A single .NET dll can contain unlimited classes: * True or * False?
- State True or False: ASP.NET can currently run only on Windows Platform: * True or * False?
- Which one of the following best describes “Type-Safe”
- The number of objects in ASP.NET is ...
- The code used to turn off buffering is * Buffering = false...
- Can you have two applications on the same machine one which is using .NET Framework 1.1 and the other using 2.0 ?
- Which of the following DOT.NET tools manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs)?
- 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?
- The object that contains all the properties and methods for every ASP.NET page, that is built is ..
- In C#, which character is used to indicate a verbatim string literal?
- Which of the following operators has the highest precedence?
- The uniqueId that gets generated at the start of the Session is stored in ...
- State True or False: C# supports multiple-inheritance: * True or * False?
- Bitwise AND operator in C# is ...
- Bitwise OR operator in C# is ...
- What’s the .NET datatype that allows the retrieval of data by a unique key?
- The keyword ‘int’ maps to one of the following .NET type ...
- What can be achieved in IL which is not possible in C# ?
- Which of the following is the correct code for setting a Session timeout of 30 minutes
- The process that ASP.NET uses to keep track of Sessions without cookies is ..,
- The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is ...
- A structure in C# can be derived from one or more ...
- State True or False: Static method cannot be overridden: * True or * False
- The Equivalent HTML Control for the <input type=”button”> tag is ..
- The Equivalent Html Control for the <input type=”checkbox”> tag is
- Which operator is used for connecting a event with a procedure in C#?
- The Equivalent Html Control for the <select> tag is ...
- State True or False: Events in Web forms are processed before the “Page Load” event: * True or * False
- What namespaces are necessary to create a localized application?
- A new server-side control can be created by implementing the class ___________
- The parameter “clienttarget = downlevel” does one of the following ...
- The methods in C# can be overloaded in which of the following ways
- The RangeValidator control supports the following datatype ...
- What is the difference between Convert.ToInt32 and int.Parse?
- State True or False: Any ODBC-compliant database can be accessed through ASP.NET: * True or * False
- A set of tables are maintained in a Dataset as ...
- The namespaces needed to use data mechanisms in ASP.NET pages are...
- What are the different methods to access Database in .NET ?
- The two properties of a DataGrid that has to be specified to turn on sorting and paging respectively are ...
- Which one of the following objects is used to create a foreign key between two DataTables?
- The Syntax for data-binding expressions is ...
- The method that need to be invoked on the DataAdapter control to load the generated dataset with data is
- Which of the following operations can you NOT perform on an ADO.NET DataSet?
- Which is the correct statement to set the alias name for namespace in C#?
- The property that indicates whether existing database constraints should be observed when performing updates
- If you set AutoGenerateColumns=True and still provide custom column definitions ...
- The data from an XSL Transform with XmlReader can be returned in one of the following ways
- Pick the command line that would result in the C# compiler generating an XML documentation file ...
- What is the comment syntax for C#’s XML-based documentation?
- When creating a C# Class Library project, what is the name of the supplementary file ...
- Which of the following is the C# escape character for Null?
- What is the exception that is thrown when there is an attempt to dynamically access a method that does not exist?
- What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time?
- After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t execute. What could the problem be?
- What method must be overridden in a custom control?
- What is used to validate complex string patterns like an e-mail address?
- The following is a valid statement in ASP.NET<%@ Page Language="C" %>: * True or * False
- A valid comment block in ASP.NET is ...
- The event handlers that can be included in the Global.asax file are ...
- 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:..
- One of the possible way of writing an ASP.NET handler that works like an ISAPI filter- that is ...
- The ASP.NET directive that lets you cache different versions of a page based on varying input parameters ...
- 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?
- What is the output for the below mentioned compilation command>csc /addmodule:A.Exe B.Cs
- How can be the web application get configured with the following authorization rules ...
- What will be the output of the following code snippet?
- What will be output for the given code?
|
|
|
|
|
|
|
|
|
|