Você está na página 1de 15

asp.

net interview questions


Search

Interview Q&A HR interview Improve your CV Cover letter GD Soft skills HR managers Interview practice tests (IT and Non-IT) Freshers JOBS
Download HR interview Download CV samples Download IT interview
name location email keyskills Fresher

Keep it simple; just submit your key skills and we connect you to employers globally!
Interv iew quest ions ASP.NE T part 1 ASP.NE T part 2 ASP.NE T part 3 ASP.NE T part 4 ASP.NE T part 5 Downlo ad ASP/C# FAQ ASP.NE T part 6 Test ASP.NE T skills Ne
w

300 Asp.net interview questions and answers : last updated July 28, 2011 Next>> Part 2 | Part 3 | Part 4 | Part 5 | Part 6

60 ASP.NET interview questions and answers for freshers and experienced What is the difference between login controls and Forms authentication?

Latest answer: Forms authentication can be easily implemented using login controls without
writing any code. Login control performs functions like prompting for user credentials, validating them and issuing authentication just as the FormsAuthentication class...............
Read answer

What is Fragment Caching in ASP.NET?

Latest answer: Fragment caching refers to the caching of individual user controls within a Web Form. Each user control can have independent cache durations and implementations of how the caching behavior is to be applied.............
Read answer

Test

ASP.NET interview notes part 1 ASP.NET interview notes part 2 ASP.NET interview notes part 3 ASP.NET interview notes part 4

Lates t place ment tests ASP.NE T C#.NET C++ Sql Server Linux Java Oracle Networki ng Mysql PHP Data Structure More 100 tests....

C#.NET ASP.NET interview notes part 5 skills Ne ASP.NET interview notes part 6 w ASP.NET interview notes part 7 Test VB.NET skills Ne What is partial classess in .net?
w

ASP.NE T Advanta ges ASP.NE T Issues ASP.NE T Life cycle ASP.NE T Server control ASP.NE T Server vs. HTML ASP.NE T Datalist control ASP.NE T Applcn & session ASP.NE T Navigati on method ASP.NE T Validatio n control ASP.NE T State Manage ment ASP.NE T Caching ASP.NE T Exceptio n Handling ASP.NE T Master pages ASP.NE T resource s

Lates t links How to write a good CV 15 common Latest answer: Partial classes allow us to divide the class definition into multiple files (physically). Logically, all the partial classes are treated as a single file by the compiler............ job interview Read answer Q&A 8 things Explain how to pass a querystring from an .asp page to aspx page. NOT do in a GD Latest answer: FromHTMLinasppage:<ahref="abc.aspx?qstring1=test">Test Query Cracking String</a> an IT interview From server side code: <%response.redirect "webform1.aspx?id=11"%>............... Promotio Read answer ns and perks E-mail Etiquette ASP.NET interview questions - Jan 04, 2011 at 05:16 PM by Rahul s Tips to stay Describe how Passport authentication works. Motivate d ASP.NET application with Passport authentication implemented checks the users machine What is for a current passport authentication cookie. If it is not available, ASP.NET directs the user to a holding Passport sign-on page. The Passport service authenticates the user, stores an authentication you cookie on the users computer and direct the user to the requested page. back? We need leaders Explain the steps to be followed to use Passport now! authentication. Build a positive attitude 1. Install the Passport SDK. 2. Set the applications authentication mode to Passport in Web.config. 3. Set authorization to deny unauthenticated users. 3. Use the PassportAuthentication_OnAuthenticate event to access the users Passport profile Live chat to get to identify and authorize the user. career 4. Implement a sign-out procedure to remove Passport cookies from the users machine. counseli ng on Explain the advantages of Passport authentication. Faceboo k User doesnt have to remember separate user names and passwords for various Web sites User can maintain his or her profile information in a single location. Passport authentication also avail access to various Microsoft services, such as Passport Express Purchase.

What is caching?
Caching is the technique of storing frequently used items in memory so that they can be accessed more quickly. By caching the response, the request is served from the response already stored in memory. Its important to choose the items to cache wisely as Caching incurs overhead. A Web form that is frequently used and does not contain data that frequently changes is good

ASP.NE T session state ASP.NE T authenti cation ASP.NE T Globaliz ation Net mobile LINQ .NET compact framewo rk Silverlig ht

for caching. A cached web form freezes forms server-side content and changes to that content do not appear until the cache is refreshed.

Explain the use of duration attribute of @OutputCache page directive.


The @OutputCache directives Duration attribute determines how long the page is cached. If the duration attribute is set to 60 seconds, the Web form is cached for 60 seconds; the server loads the response in memory and retains that response for 60 seconds. Any requests during that time receive the cached response. Once the cache duration has expired, the next request generates a new response and cached for another 60 seconds.

What is a ViewState? Latest answer: Viewstate is used to maintain or retain values on postback. It helps in preserving a page. Viewstate is internally maintained as a hidden field in encrypted form along with a key............
Read answer

What is the difference between src and Code-Behind? Latest answer: Src: is a way mention the name of the code-behind class to dynamically compile on the request for a page. ...............
Read answer

What is the difference between URL and URI? Latest answer: URI - Uniform Resource Identifier: its a string and its responsibility is to identify a resource by meta-information. It gives information about only one resource............
Read answer

What is the Pre-Compilation feature of ASP.NET 2.0? Latest answer: It is a process where things that can be handled before compilation are prepared in order to reduce the deployment time, response time, increase safety. Its main aim to boost performance.............
Read answer

How can we create custom controls in ASP.NET? Latest answer: Custom controls are user defined controls. They can be created by grouping existing controls, by deriving the control from System.Web.UI.WebControls..........
Read answer

What is an application domain? Latest answer: An operating system process can have many ongoing application domains. Application Domains keep an application separate. All objects created within the same application scope are created within the same application domain...........

Read answer

Explain the two different types of remote object creation mode in .NET. [Hint SAO and CAO] Latest answer: SAO Server Activated Object (call mode): lasts the lifetime of the server. They are activated as SingleCall/Singleton objects. It makes objects stateless...........
Read answer

Describe SAO architecture of Remoting. Latest answer: Remoting has at least three sections:1. Server 2. Client: This connects to the hosted remoting object 3. Common Interface between client and the server .i.e. the channel..........
Read answer

Explain Singleton architecture of Remoting. Latest answer: Singleton architecture is to be used when all the applications have to use or share same data...........
Read answer

Define LeaseTime, SponsorshipTime, RenewOnCallTime, LeaseManagePollTime. Latest answer: The LeaseTime property protects the object so that the garbage collector does not destroy it as remoting objects are beyond the scope of the garbage collector. Every object created has a default leasetime for which it will be activated..........
Read answer

Briefly explain how to specify remoting parameters using config files. Latest answer: The remoting parameters can be specified through both programming and in config files. All the settings defined in config files are placed under <system.runtime.remoting>...........
Read answer

What is marshalling? Explain types of marshalling. Latest answer: Marshaling is a process of transforming or serializing data from one application domain and exporting it to another application domain...........
Read answer

What is ObjRef object in remoting? Latest answer: ObjRef is a searializable object returned by Marshal() that knows about location of the remote object, host name, port number, and object name........
Read answer

Explain the steps of acquiring a proxy object in web services. Latest answer: Every service listed has a URI pointing to the service's DISCO or WSDL

document, which is needed to access the webservice and its 'webmethod" methods..........
Read answer

Explain the steps to create a web services and consume it. Latest answer: Create a new website by selecting "ASP.NET Web Site" and giving it a suitable name. service.cs file appears inside the solution with a default webmethod named as "HelloWorld()"........
Read answer

Explain the difference between cache object and application object. Latest answer: Application Object: Application variable/object stores an Object with a scope of availability of the entire Application unless explicitly destroyed.............
Read answer

What is Cache Callback in Cache? Latest answer: The cache object has dependencies e.g. relationships to the file it stores. Cache items remove the object when these dependencies change. As a work around we would need to simply execute a callback method............
Read answer

What is Scavenging? Latest answer: A process where items are removed from cache in order to free the memory based on their priority. A property called "CacheItemPriority" is used to figure out the priority of each item inside the cache...........
Read answer

Explain the types of Caching using Cache object of ASP.NET. Latest answer: Page output: Is used to fetch information or data at page level. It is best used when the site is mainly static. Used by declaring the output page directive............
Read answer

Show with an example how to Cache different version of same page using ASP.NET Cache object. Latest answer: The ways to cache different versions on the same page using ASP.NET cache object is using OutputCache object............
Read answer

Explain how to implement Fragment Cache. Latest answer: Fragment cache is to store user controls individually within a web form in cache instead of the whole webform as such. The idea is to simply have different cache parameters for different user controls.............
Read answer

Explain the various modes of storing ASP.NET session. Latest answer: Types of sessions: InProc: The default way to use sessions. InProc is the

fastest way to store and access sessions...........


Read answer

What are the benefits and limitations of using hidden fields? Latest answer: Advantages: Easy to implement, Hidden fields are supported by all browsers, Enables faster access of information because data is stored on client side............
Read answer

What are the benefits and limitations of using Hidden Frames? Latest answer: Advantages: Hidden frames allow you to cache more than one data field, The ability to cache and access data items stored in different hidden forms...........
Read answer

What are benefits and limitations of using Cookies? Latest answer: Advantages: They are simple to use. Light in size, thus occupy less memory. Stores server information on client side. Data need not to be sent back to server........
Read answer

What is QueryString and what are benefits and limitations of using querystring? Latest answer: Querystring is way to transfer information from one page to another through the URL........
Read answer

What is Absolute and Sliding expiration in .NET? Latest answer: Absolute and sliding expiration are two Time based expiration strategies. Absolute Expiration: Cache in this case expires at a fixed specified date or time..............
Read answer

Explain the concepts and capabilities of cross page posting. Latest answer: Cross-page posting is done at the control level. It is possible to create a page that posts to different pages depending on what button the user clicks on. It is handled by done by changing the postbackurl property of the controls..........
Read answer

Explain how to access ViewState value of this page in the next page. Latest answer: PreviousPage property is set to the page property of the nest page to access the viewstate value of the page in the next page. Page poster = this.PreviousPage;..........
Read answer

What is SQL Cache Dependency in ASP.NET? Latest answer: SQL Cache Dependency in ASP.NET: It is the mechanism where the cache object gets invalidated when the related data or the related resource is modified.........
Read answer

Explain the concepts of Post Cache Substitution in .NET Latest answer: Post Cache Substitution: It works opposite to fragment caching. The entire page is cached, except what is to be kept dynamic. When [OutputCache] attribute is used, the page is cached............
Read answer

Explain the use of localization and Globalization. Latest answer: Users of different countries, use different languages and others settings like currency, and dates. Therefore, applications are needed to be configurable as per the required settings based on cultures, regions, countries........
Read answer

Explain the concepts of CODE Page approach. What are the disadvantages of this approach? Latest answer: Code Page was used before Unicode came into existence. It was a technique to represent characters in different languages..........
Read answer

What are resource files and explain how do we generate resource files? Latest answer: Resource files are files in XML format. They contain all the resources needed by an application. These files can be used to store string, bitmaps, icons, fonts........
Read answer

What are Satellite assemblies and how to generate Satellite assemblies? Latest answer: To support the feature of multiple languages, we need to create different modules that are customized on the basis of localization. These assemblies created on the basis of different modules are knows as satellite assemblies...........
Read answer

Define AL.EXE and RESGEN.EXE. Latest answer: Al.exe: It embeds the resources into a satellite assembly. It takes the resources in .resources binary format.......
Read answer

Explain the concepts of resource manager class. Latest answer: ResourceManager class: It provides convenient access to resources that are culture-correct. The access is provided at run time.........
Read answer

What is Windows communication foundation, WCF? Latest answer: WCF is a framework that builds applications that can inter-communicate based on service oriented architecture consuming secure and reliable web services.............
Read answer

Explain the important principle of SOA. Latest answer: A service-oriented architecture is collection of services which communicate with one another other......
Read answer

Explain the components of WCF - Service class, Hosting environment, END point. Latest answer: WCF Service is composed of three components: Service class: It implements the service needed, Host environment: is an environment that hosts the developed service.............
Read answer

Difference between WCF and Web Services. Latest answer: WCF can create services similar in concept to ASMX, but has much more capabilities. WCF is much more efficient than ASP.Net coz it is implemented on pipeline............
Read answer

What are different bindings supported by WCF? Latest answer: BasicHttpBinding, WSHttpBinding, WSDualHttpBinding.......
Read answer

What is duplex contract in WCF? Latest answer: Duplex contract: It enables clients and servers to communicate with each other. The calls can be initiated independently of the other one.............
Read answer

Explain the different transaction isolation levels in WCF. Latest answer: Read Uncommitted: - Also known as Dirty isolation level. It makes sure that corrupt Data cannot be read. This is the lowest isolation level............
Read answer

What are Volatile and Dead letter queues? Latest answer: Volatile Queues: There are scenarios in the project when you want the message to deliver in proper time. The timely delivery of message is very more important and to ensure they are not lost is important too. Volatile queues are used for such purposes.............
Read answer

What is Windows workflow foundation? Latest answer: Windows Workflow Foundation (WF): It is a platform for building, managing and executing workflow-enabled applications, for designing and implementing a programming model ..........
Read answer

Explain the types of Workflow in Windows Workflow Foundation. Latest answer: There are 3 types of workflows in WWF: Sequential Workflow: The sequential workflow style executes a set of contained activities in order, one by one and does not provide an option to go back to any step...........
Read answer

What are XOML files? Explain their uses. Latest answer: XOML is an acronym for Extensible Object Markup Language. XOML files are the markup files. They are used to declare the workflow and are then compiled with the file containing the implementation logic..............
Read answer

How to make an application offline in ASP.NET 2.0. Latest answer: Microsoft's Internet Information Services web server software is used to make an application offline. The IIS is instructed to route all incoming requests for the web site to another URL automatically........
Read answer

What are script injection attacks? Latest answer: Script injection attacks called Cross-site scripting (XSS) attacks exploit vulnerabilities in Web page validation by injecting client-side script code.............
Read answer

What is Authentication in ASP.NET? Latest answer: Authentication is the process of verifying users details and find if the user is a valid user to the system or not. This process of authentication is needed to provide authority to the user........
Read answer

What is Authorization in ASP.NET? Latest answer: Authorization is a process that takes place based on the authentication of the user. Once authenticated, based on users credentials, it is determined what rights des a user have...........
Read answer

What is the difference between login controls and Forms authentication? Login controls are part of ASP. Nets UI controls collection which allows users to enter their username and password to login to a website/application. They provide login solution without the need of writing code...........
Read answer

What is Fragment Caching in ASP.NET? Fragment caching does not cache a WebForm, rather it allows for caching of individual user controls within a Web Form, where each control can have different cache duration and behavior...........

Read answer

What is partial classess in .net? .Net2.0 supports the concept of partial classes which is unlike the concept of one class one file. In .Net technology, one can define a single class over multiple files using the concept of partial classes............
Read answer

Explain how to pass a querystring from an .asp page to aspx page. Yesyoucandoitusingahyperlink<BR><ahref="Abc.aspx?name=test">Click to go to aspx </a>.............
Read answer

Overview of the .NET Compact Framework .NET Compact Framework is a scaled down versions of .NET framework for supporting Windows CE based mobile and embedded devices like mobile phones............... What is Language Integrated Query (LINQ)? LINQ is a set of extensions to .NET Framework that encapsulate language integrated query, set and other transformation operations................... Next>> Part 2 | Part 3 | Part 4 | Part 5 | Part 6 Download ASP.NET interview questions and answers pdf .NET online practice tests

Also Read ASP.NET DataList Control Using the DataList control, Binding images to a DataList control dynamically, Displaying data using the DataList control, Selecting, editing and delete data using this control, Handling the DataList control events.......... ASP.NET Methodologies ASP.NET attempts to make the web development methodology like the GUI development methodology by allowing developers to build pages made up of controls similar to a GUI. Server controls in ASP.NET function similarly to GUI controls in other environments.......... Problems ASP.NET Solves Microsoft developed ASP.NET, which greatly simplifies the web development methodology........... ASP.NET issues & options

The truth is that ASP.NET has several issues that need to be addressed.......... Explain the advantages of ASP.NET Web application exists in compiled form on the server so the execution speed is faster as compared to the interpreted scripts......... What Is ASP.NET 2.0 AJAX? AJAX-style communications between client and server. This communication is over web services. Asynchronous communication. All client-to-server communication in the ASP.NET 2.0 AJAX framework is asynchronous................ The components in the ASP.NET 2.0 AJAX packaging ASP.NET AJAX Futures Community Technology Preview (CTP) The ASP.NET 2.0 AJAX framework contains a set of functionality that is experimental in nature. This functionality will eventually become integrated with the RTM/Core code. Potential benefits of using Ajax AJAX makes it possible to create better and more responsive websites and web applications............... Potential problems with AJAX Search engines may not be able to index all portions of your AJAX application site......... What Is ASP.NET AJAX? ASP.NET AJAX is the name of Microsofts AJAX solution, and it refers to a set of client and server technologies that focus on improving web development with Visual Studio............... Balancing Client and Server Programming with ASP.NET AJAX With AJAX, much of the logic surrounding user interactions can be moved to the client. This presents its own set of challenges. Some examples of AJAX use include streaming large datasets to the browser that are managed entirely in JavaScript.................. Understanding Anonymous Types Anonymous types defined with var are not VB variants. The var keyword signals the compiler to emit a strong type based on the value of the operator on the right side. Anonymous types can be used to initialize simple types like integers and strings but detract modestly from clarity and add little value.............. Model View Controller We will learn about MVC design patterns, and how Microsoft has made our lives easier by creating the ASP.NET MVC framework for easier adoption of MVC patterns in our web

applications............... MVC Design MVC, which stands for Model View Controller, is a design pattern that helps us achieve the decoupling of data access and business logic from the presentation code , and also gives us the opportunity to unit test the GUI effectively and neatly, without worrying about GUI changes at all.......... Page Controller Pattern in ASP.NET Here it shows how a page controller pattern works in ASP.NET. Test your ASP.NET knowledge with our multiple choice questions!

Dot Net Interview Questions


21 Jun 2011

TCS
TCS Interview questions 1.Thread life cycle. The life cycle of a thread starts when an object of the System.Threading.Thread class is created. The life cycle of the thread ends with task execution. The life cycle of a thread are: The Unstarted state The Runnable state The Not Runnable state The Dead state 2.What is the difference between multi threading and multi tasking? multitasking is the mechanism to run many processes simultaneously with user interaction. multithreading is a mechanism of running various threads under single process within its own space 3.What is application pool? When we run IIS 6.0 in worker process isolation mode, we can separate different Web applications and Web sites into groups known as application pools. An application pool is a group of

one or more URLs that are served by a worker process or set of worker processes. Any Web directory or virtual directory can be assigned to an application pool. Every application within an application pool shares the same worker process. Because each worker process operates as a separate instance of the worker process executable, W3wp.exe, the worker process that services one application pool is separated from the worker process that services another. Each separate worker process provides a process boundary so that when an application is assigned to one application pool, problems in other application pools do not affect the application. This ensures that if a worker process fails, it does not affect the applications running in other application pools. Use multiple application pools when you want to help ensure that applications and Web sites are confidential and secure. For example, an enterprise organization might place its human resources Web site and its finance Web site on the same server, but in different application pools. Likewise, an ISP that hosts Web sites and applications for competing companies might run each companys Web services on the same server, but in different application pools. Using different application pools to isolate applications helps prevent one customer from accessing, changing, or using confidential information from another customers site. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003 /Library/IIS/67e39bd8-317e-4cf6-b6756431d4425248.mspx?mfr=true http://www.developer.com/net/asp/article.php/2245511/IIS-andASPNET-The-Application-Pool.htm 4.what is a namespace? Namespace is a logical collection of classes. The namespace keyword is used to declare a scope. This namespace scope lets you organize code and gives you a way to create globally unique types. namespace SampleNamespace { class SampleClass{} interface SampleInterface{} struct SampleStruct{} enum SampleEnum{a,b} delegate void SampleDelegate(int i); namespace SampleNamespace.Nested {

class SampleClass2{} } } Within a namespace, you can declare one or more of the following types: another namespace class interface struct enum delegate

5.Difference between namespace and package? A namespace is a logical collection of classes but a package is a physical collection of code files. A namespace is the more general term. Namespace is just a block of names (of functions, classes, etc) grouped together. A package is a block of code files grouped together.

6. What are the access specifiers we can have on an interface method? The members defined in an interface contain only definition, no implementation. The members of an interface are all public by default, any other access specifier cannot be used 7.Explain windows authentication in detail? 8. Have you used threads anywhere and why do we need to use it? 9.difference bewteen abstarct classes and interface and in which scenario we use them? Posted by Dot Net Interview Questions at 23:28 Email ThisBlogThis!Share to TwitterShare to FacebookShare to Google Buzz

0 comments: Post a Comment


Newer PostOlder PostHome
Subscribe to: Post Comments (Atom)

Blog Archive

July (12) June (23) January (1) December (14) November (8) Feedjit
Awesome Inc. template. Powered by Blogger.

Oracle Database Microsoft Java

Operating system Data warehousing


Design analysis Networking

Testing Management accounting


Programming Web

Programming language Wireless communication


Application server Mainframe

Data communication and broadb Mobile Application UI Designer Embedded Systems

Home | Write for us and earn | My key skills | A


Copyright 2008 - 2010 CareerRide.com. All rights reserved. Terms of use

Placement practice test: Java | SAP | .NET | Oracle | Sql Server | QA | Aptitude | Networking | All Skills

Você também pode gostar