The absolutely awesome .net interview book

  1. Learn C#: Tutorials for Beginners, Intermediate, and Advanced Programmers
  2. Interview Q&A E-Books
  3. .Net Interview Questions_WorkShop(250 questions and answers).pdf
  4. C# Interview Questions and Answers with PDF Download

NET eBook with easy-to-follow concepts in a Q & A format. NET Interview. NET. Q&A on C# by Damir Arh. The Absolutely Awesome Book on C#. About the Book. The Absolutely Interview Book is a deep technical book and helps you build a solid foundation to give you an edge in any . The Absolutely Awesome Book on C# has released. NET. This book covers C# , C# ,.NET Framework and. NET Interview.

Language:English, Spanish, Indonesian
Published (Last):24.01.2016
Distribution:Free* [*Registration Required]
Uploaded by: DARRELL

63321 downloads 166840 Views 38.86MB ePub Size Report

The Absolutely Awesome .net Interview Book

Free download Interview Questions by Abhishek Goenka. Available in PDF, ePub and Kindle. Read, write reviews and more. Mr. RN Interview () Questions and simpwaperlacal.mlmeWork. What Face book. Id: Framework? A). Looking for a job change, but don't have confidence to face the interview. Be prepare yourself for your next job interview in a short time by referring our eBooks .

February 17, '11 Comments [] Posted in Learning. I thought it'd be useful to crowd-source some questions from you, Dear Reader. These questions should be more software design focused, less technical trivia like my previous two lists of interview questions: What Great. NET Interview Questions 7 years ago, can you believe it? UPDATE: I think we all agree or at least we should that if you go into an interview tomorrow and you look across the table and the interviewer has simply printed out this list and is reading from it, that you should excuse yourself and run. This isn't a "guide to how to interview" nor is this meant to me a "best practices for engineers" list. It's simply a collective brain-dump of stuff that someone who's been in the business of developing software for money for 10 or so years should have some passing familiarity with. Of course, it's assumed that the interviewer is able to detect BS. This isn't, and shouldn't be, a trivia contest. If you're going to get a job or you're looking for hire someone for a job it's ultimately more important to understand if someone can Solve Problems and if Their Head is Screwed on Straight. Take it with a grain of salt, friends, remember, you found it on the Internet. What is something substantive that you've done to improve as a developer in your career? Would you call yourself a craftsman craftsperson and what does that word mean to you? Why is the Single Responsibility Principle important?

Even seasoned. NET Developers will find this book as a good reference guide. A high level view of the contents are as follows:. Suprotim Agarwal is an architect consultant and a web developer at heart who's been designing and building Web sites and applications since the year He has been awarded the prestigious Microsoft ASP.

NET Developers'. He has written over online tutorials and runs popular websites like www. Pravin Dabade, works as a freelance trainer and consultant on Microsoft Technologies. He has conducted various corporate trainings on all versions of. NET Technologies. Thank you for confirming your email address. I will notify you when this eBook is ready for a pre-order.

It will depend on some other application for execution for execution. Collection of classes which is not having Main will produce dll files. Net class library project. It will create a local copy within every client application folder, that local copy will provide the services to concern client application.

It will not create a local copy, it will provide services to multiple client application from a centralized shared folder called GAC. When we install. How to create strong name? A It is one of the. NET Framework utility, which is representing with a file called sn. Using this utility we can give a strong name or public key to the given assembly. Strong name or public key will give uniqueness to given assembly among collection of assemblies.

It is represented with a file called GACutil. Using this utility we can install an assembly into GAC folder Syntax: A Informing about created strong name to the assembly is nothing but signing the assembly.

A An assembly which we can use to develop multi lingual applications in. A An application that supports for more than one human readable language is known as multilingual application. A Reflection is used to get the information about an assembly programmatically by writing some code. What is the default data type of enum?

A Enum is a value type. It is a collection of constants that means it is a collection of string constants which are representing collection of integer constants. Int is the default data type of enum.

A Generics allow us to define type-safe data structures, without committing to actual data types. A We can avoid function overloading in some level. A Collections are of 2 types: Normal Collection and 2.

Generic Collection. The Dictionary class is a generic class and can store any data types. It is a collection of Pairs. Each pair will have 2 elements: Key value and 2. Item Value. Every item should be represented with one unique key value.

A If we want to add a method comment you can just place your cursor on an empty line above one of your method and insert 3 slashes which will insert a comment block for you to fill out. Scroll down the list until you find "System. Forms", click it and then click OK 4. Using System. Forms; 5. Now go to the main function MessageBox. Show "Hello World" ; 6.

Why partial class? Partial class will split into multiple class files but the class name will be same but class files names should be differ. In asp. A Thread is an independent execution path, it able to run simultaneously with other execution paths.

A Whenever we want to create a thread, we have to create an object for thread pre-defined class. A Using thr1. Start ; Start: It is a pre-defined member method of thread class. Using this method we can invoke or start a thread. Threadstart is a pre-defined delegate, which is a part of System. Threading base class library. We can initialize a method to thread with the help of ThreadStart.

A Using Thread. Sleep method is used to Block the current thread for the specified number of milliseconds. In other words We can include specific time via thread. Sleep TimeSpan. A Using Suspend we can suspend the targeted thread. When you call Thread. Suspend on a thread, the system notes that a thread suspension has been requested and allows the thread to execute until it has reached a safe point before actually suspending the thread. A safe point for a thread is a point in its execution at which garbage collection can be performed.

Once a safe point is reached, the runtime guarantees that the suspended thread will not make any further progress in managed code. A thread executing outside managed code is always safe for garbage collection, and its execution continues until it attempts to resume execution of managed code. A Suspended thread can be called back by using resume.

A The Thread. Abort method is used to start the process of terminating the thread. ThreadingAbortException in the thread on which it is invoked. A Using GC. Collect ; The garbage collection class provides the GC.

Collect ; which you can use to give your application some direct control over the garbage collector. In general, you should avoid calling any of the collect methods and allow the garbage collector to run independently. A These are just like any other methods in the class and can be called explicitly but they have a special purpose of cleaning up the object.

In the dispose method we write clean up code for the object. It is important that we freed up all the unmanaged recources in the dispose method like database connection, files etc. The class implementing dispose method should implement IDisposable interface. A Dispose method should call the GC. SuppressFinalize method for the object it is disposing if the class has desturctor because it has already done the work to clean up the object, then it is not necessary for the garbage collector to call the object's Finalize method.

A Finalize method acts as a safeguard to clean up resources in the event that your Dispose method is not called. You should only implement a Finalize method to clean up unmanaged resources. You should not implement a Finalize method for managed objects, because the garbage collector cleans up managed resources automatically.

Finalize method is called by the GC implicitly therefore you can not call it from your code. In C , Finalize method cannot be override, so you have to use destructor whose internal implementation will override the Finalize method in MSIL.

But in the VB. NET, Finalize method can be override because it does support destructor method. What is ASP. Why asp. NET is a. NET web technology or Server side technology. To develop a web application by using.

Net we have to use a. Net web technology called Asp. Net and a. Net language called C. What do you mean by server side technology? Server side code we can implement by using Server side technologies. Using server side technology we can develop server side web pages.

What do you mean by client side technology? Client side code we can implement by using client side technologies. What are the programming techniques will be supporting by asp. A Asp. They are1. InPage Technique and 2. CodeBehing Technique. Can we convert client side control as a server side control? Can we convert server side control as client side control? But we cannot convert server side control as client side control. How can you pass values between ASP. NET pages? A Different techniques to move data from one web form to another are: Query string 2.

Cookies 3. Session state 4. Application state 5. Cross page postback 6. Handler object. What is the difference between Response. Redirect and Server. A Response. It is used to navigate the user request between multiple web servers.

It will not hide the Destination url address. It is used to navigate the user request within the web server. It will hide the Destination url address. Explain about validation controls in asp.

A There are 6 Validator Controls. Requiredfield Control 2. Compare validator 3. Range validator 4. Regular Expression validator 5. Custom validator 6. Validation summary. When we will go for custom validator control? How to invoke server side validation function and how to invoke client side validation function? A Server side validation functions can be invoked by using ASP. How to access information about a users locale in ASP.

A Users locale information can be accessed through System. Culture property. What are the life cycle events of asp. A Application level, Control level, Page level. What are the Asp. Net page cycle stages? A There are overall 8 stages available for any webpage that will undergo with in server at page life cycle. A Event will execute for some action i. Whereas method will contain some behavior or functionality.

A Default events of: A When ever user request for a page for first time it is called First request. When ever user will interact the page by clicking button or selecting radiobutton e.

When we will use Not Ispostback? A IsPostBack: It is the property of the Page class which is used to determine whether the page is posted back from the client. Whenever we dont want to execute the code within the load event, when the page load event fires then we will use! A Autopostback is the property of the control. If you want a control to postback automatically when an event is raised, you need to set the AutoPostBackproperty of the control to True.

It will provide services to single web 1. It will provide services to multiple applications. If we want to develop a web user 3. If we want to develop a custom control we have to add a pre-defined control we have to use a class library template called web user control to the project. Web user control we have to drag 4. Custom control we have to drag from from solution explorer window to web toolbox window to web page.

A TextBox1. ToString ;. A By using div tag and panel control. A Rendering is a process of converting complete server side code into client understable code. It will happen before page is submitting to the client. A ASP 1. Asp is a classic server side technology before.

NET 2. Net is a. Net advanced server side technology. Net will support 2 programming techniques i. In Asp, its file extension is. Asp has limited OOPs support. Net uses any.

Net languages including VB. Net, C but mostly C. NET uses languages which are fully object oriented languages like C. A Two types of memories are there in. Stack memory and 2. Heap memory. A Client Side Scripting 1. Scripting which will execute within the web browser can be called as client side scripting. Using this we can implement client side validations. Client side scripting we can implement by using client side technologies called JavaScript, VB script and so on.

Server Side Scripting 1. Scripting which will execute within the web server can be called as client side scripting. Using this we can implement server side validations. Server side scripting we can implement by using server side technologies called Asp. A Whenever we want to display the Gridview control according to our requirement then we will go for Gridview Customisation.

A It is a Boolean property of gridview control. By default it is true. If we want to customize gridview control.. A Whenever we want to have common header and common footer within multiple pages of a website then we can go for a Master Page. A Whenever we want to display the collection of images in a rotation manner one by one then we will go for Adrotator control. A View and multiview are container controls. Multiview control: It can contain collection of view controls but not a normal control.

View Control: It can contain normal controls, but view control should be placed within the multiview. By implementing view and multiview control we can reduce the no. A In ASP. NET we have 2 types of Configuration files. Config and 2. How many web. Config is one of the configuration files. It is a XML file. This file we can use to define the ASP. NET application configuration settings. Config files within a single application. A YES.

But the connection string names must be different. A Whenever we want to define some separate settings for couple of web pages, we will create a new folder and we will add that couple of web pages to that folder and we will add a new Web.

How many machine. A The Machine. Config file, which specifies the settings that are global to a particular machine. That is, configuration done in machine. Usually, this file is not altered. We can have only ONE machine. A Hyperlink: It will not PostBack the webpage to the server. Link Button: It will postback the webpage to the server. It is a process of maintaining the users information. Server Side State Management and 2.

Client Side State Management. How many types of sessions? A Session is a temporary variable which will be used to maintain the user information. Based on the locations, sessions are of4 types: Inproc session 2. State server session 3. Sql server session 4. Custom session. A Within the Web. A Using Abondon. Abondon will destroy the session. Accessing the inproc session data will be faster. It we restart the web server or if any crashes to the web server there is a chance of losing the session data.

If the session data is increased there is a burden on the web server, it will affect the performance of web server and web application. It is not suitable for large web application models like webgarden and webfarm. State server session will provide more security because sessions are creating separately within the windows service. If we restart the web server or if any crashes to the web server but still session data will be safe.

It is suitable for large web applications like webgarden and webfarm model. Accessing the state server session will be slower compare with inproc session. It is not that much suitable for small web applications because maintaining the windows service is expensive. Always windows service should be ON.

A We can start the Windows Service in 2 ways1. By using control panel and 2. By using Command prompt. A Sql server sessions will be creating within the Sql Server Database. A There are 2 Types of Session events. Session Start and 2. Session End. A Whenever we want to store user data within the server. A Worker process is nothing but Asp. Net execution engine or Asp. Net runtime. The role of Asp. Net runtime is executing the Asp. Net web page within the Web server.

A Every worker process will maintain a memory unit within the web server which is nothing but Appdomain. A Deploying a website into multiple web servers is called Webfarm. A when ever we want to store the data in web server.. In youtube video number of views. A There are 3 application events. Application Start Event 2. Application End Event 3. Application Error Event. Application state: It will be available to all users of the application.

Application state variables are cleared, when the process hosting the application is restarted. Session state: It will only be available to a specific user of the ASP. Session state variable are cleared, when the user session times out. The default is 20 minutes. This is configurable in Web. This file will contain all the application session related events.

A Cookie is a variable which we can use to store the user data. It will create within the client machine due to that reason which is called as client side state management. Cookies can be broadly classified into 2 types 1. Persistent cookies: Remain on the client computer, even after the browser is closed.

You can configure how long the cookies remain using the expires property of the Http Cookie object. Non-Persistent cookies: If you don't set the Expires property, then the cookie is called as a Non-Persistent cookie. Non-Persistent cookies only remain in memory until the browser is closed. Cookie is a client side state management technique.

Cookie is a variable which will create within the client machine. Default timeout of a cookie is 30 minutes. Session is a server side state management technique.

Session is also a variable which will create within the Web server. Default life time of session variable is 20 minutes. What is the draw back?

QueryString is a way to forward the data from one web page to another. QueryString is attached to the URL with "? All the attributes and values are visible to the end user. Therefore, they are not secure.

There is a limit to URL length of characters. What is the scope of view state? Viewstate will maintain the users data among multiple postbacks requests. The scope of the Viewstate is within that web form. To Implement HiddenField we can use Asp. Net server control called HiddenField. A Caching is a process of storing the frequently used web page or frequently used part of the web page or frequently used data into some location for future access.

A According to the location caching is classified into 4 types. Client caching 2. Proxy caching 3. Reverse caching 4. Web server caching. Net will support 3 Caching Techniques. Page Output Caching 2. Fragment Output caching 3. Data Caching. In general, we will implement page caching on startup page such as login and home page.

Fragment caching we will implement on a Web user control, which is accessing by multiple web pages. A ConfigurationManager class. A Security is a process of allowing the authenticated users and denying the unauthorized users when user is requested for restricted web page. A Authorization is a process of verifying the authentication ticket and supplying the web page based on authentication ticket.

A Authentication is a process of accepting the user credentials, when user will request for a restricted web page and generating the authentication ticket for the valid user. A It will support 3 types of authentications. Forms authentication 2. Passport authentication 3. Windows authentication. A FormsAuthentication 96 When we will go for forms authentication?

A Forms authentication is used for normal web applications. A A group of websites which will allow the user with single user id and password will go for the passport authentication. If we have Gmail id with that we can access Gmail, Facebook, Youtube etc. A Whenever users are part of the same Windows domain as the server then the Windows Authentication is the preferred approach to authentication.

In other words, whenever we have intranet web applications it is better to go with Windows Authentication.

Learn C#: Tutorials for Beginners, Intermediate, and Advanced Programmers

Row deleting and Row deleted 2. Row editing 3. Row updating and Row updated 4. Row Cancelling edit 5. Row command 6.

Row created 7.

Row DataBound 8. Page index changing and page index changed 9. Sorted and sorting. A Whenever we want to display the data as it is we can go for Repeater control, that means we dont require to provide any Edit or Delete facilities.

To display Bank Statements and Examination results. A Whenever we want to display the data in a repeating list format then we will go for Datalist control. Details View: A Data pager control provides paging functionality for data bound controls.

It will allow the user to select one item or multiple items. It will allow the user to select only one item.

Interview Q&A E-Books

ControlToValidate and 2. A It informs the compiler of any custom server control added to the page. A To avoid full page postback,to implement partial page postback 1. A when ever user will interact the part of the page then sending postback request for only that part of the page.

.Net Interview Questions_WorkShop(250 questions and answers).pdf

A Synchronous Request Model: In this model, every client request has to communicate the web server and every request has to process by the web server then only that request, response will be getting by the client. Asynchronous Request Model: It is a part of web browser. The role of AJAX engine is to process the part of the web page or partial web page within the client side.

A AJAX will support 2 programming models. They are: Server Centric programming model: In this model every client request will be processing by the web server that can be first request or postback request. Client Centric programming model: In this model, first request will be processing by the web server and postback request will be processing by the client.

While developing an AJAX web page we can implement only server centric programming model or client centric programming model or both within single web page. And non extender controls? Extender controls are not individual controls i. Extender controls will extend the functionalities of existing ASP.

NET controls. Autocomplete extender, calendar extender, dropdown extender and so on.. Non Extender controls are individual controls i. Non Extender controls provides the extra controls in ASP.

In Ajax, Script Manager is the main important parent control. Update panel is one of the Ajax Container control. By default Asp. Whenever we want to make Asp. Net controls to follow Client Centric Programming Model. We can drag and drop update panel, in that we can add Asp. Net controls and Ajax controls.

What is ADO. Why Ado. A ADO.

It is an integral component in. NET framework, which was introduced by the Microsoft with. NET Framework 1. It is a Data Access Object, which allows communication between.

NET application and Databases. NET application wants to communicate Databases it has to take the help of Ado. Net application and Database. A COA 1. Whenever we require a continuous connection with the Database for accessing the data we use COA 2. DOA 1. Whenever we doesnt require a continuous connection with the Database for accessing the data we can use DOA.

What is the base class library used for ado. A System. What are components required for connected oriented? A The components required for Connected oriented architecture are: Connection Object 2. Command Object 3. DataReader Object. What are the components required for Disconnected oriented? A The components required for Disconnected oriented architecture are: DataAdapter Object 4.

Dataset Object 6. Difference between DataReader and DataAdapter? It is used in Connected Oriented 1. It is used in Disconnected Oriented Architecture. DataReader is represents with a 2. DataAdapter is represented with a pre-defined class called pre-defined class called SqlDataReader. DataReader is used to retrieve a 3. DataAdapter is used to retrieve data read-only, forward-only stream of from a data source and populate tables data from a database within a DataSet. Difference between dataset and data table?

Data table represents a single table i. Difference between data reader and dataset? It is used in Connected Oriented Architecture. DataReader is directly accessing the. Dataset is a local database which is. DataReader is represented at a time single record. DataReader is Read only, Forward only, connected recoed set. DataReader we will use only when we want to read the data from Central DataBase. Dataset can contain collection of tables because dataset itself is a local database.

We can use dataset for reading the data, inserting, updating and deleting the data. Whenever we require a continuous connection with the Database for accessing the data then we will go for COA. Whenever we doesnt require a continuous connection with the Database for accessing the data then we will go for DOA. A Gridview1. DataBind ;. A ExecuteReader: It is apre-defined member method of SqlCommand class. This method will read or fetch the data from the central database and will return to DataReader object.

Then it will return the no. This method will executes the command object command till the first match. This method will avoid the unnecessary scanning of the table, which improves the performance of the application. When we will go for row command event? A Row Command event is one of the events of the Gridview control. This event will fire when user will click any button within the Gridview control. Listview control. A A software solution which is implemented by using 3 layers can be called as 3Tier Architecture.

In 3-Tier architecture, we have 3 layers 1. Windows service in one of the software application.

C# Interview Questions and Answers with PDF Download

It works only on windows operating system due to that reason windows service is called operating system dependent application. It will start when the windows OS is Booting. It will run till the windows OS is Running. It will stop when the OS is Shutdown.

It can be start and stop manually also. It is a.

Net advanced windows technology, introduced by Microsoft with. Net Framework 3. Using WPF we can develop an advanced windows applications. WPF is integrated with 2D graphics, 3D graphics, animations and multimedia. Whenever we want to implement animations within a desktop application the best choice is WPF.

A SilverLight is an advanced web technology which we can use to implement animations, multimedia for asp. Jquery is an advanced technology of JavaScript that means jquery is next generation of JavaScript. It is a predefined JavaScript Library. It is a group of JavaScript predefined functions. It is a lightweight and more powerful API adding dynamic behavior for webpage. To implement JavaScript programmer has to write the multiline code. But using Jquery we can implement JavaScript.