This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Enumerate The Types Of Directives? |
Answer»
|
|
| 2. |
What Is Postback? |
|
Answer» PostBack is the name GIVEN to the process of submitting an ASP.NET page to the SERVER for processing. PostBack is done if certain credentials of the page are to be checked against some sources (such as VERIFICATION of username and password using database). This is something that a client MACHINE is not able to accomplish and thus these DETAILS have to be 'posted back' to the server. PostBack is the name given to the process of submitting an ASP.NET page to the server for processing. PostBack is done if certain credentials of the page are to be checked against some sources (such as verification of username and password using database). This is something that a client machine is not able to accomplish and thus these details have to be 'posted back' to the server. |
|
| 3. |
Explain Windows Forms? |
|
Answer» WINDOWS Forms is employed for developing Windows GUI applications. It is a class LIBRARY that gives developers ACCESS to Windows Common Controls with rich FUNCTIONALITY. It is a common GUI library for all the languages supported by the .NET Framework. Windows Forms is employed for developing Windows GUI applications. It is a class library that gives developers access to Windows Common Controls with rich functionality. It is a common GUI library for all the languages supported by the .NET Framework. |
|
| 4. |
Explain Web Services? |
|
Answer» Web services are programmable business LOGIC components that provide access to functionality through the Internet. Standard PROTOCOLS like HTTP can be used to access them. Web services are based on the SIMPLE Object Access Protocol (SOAP), which is an APPLICATION of XML. Web services are given the .asmx extension. Web services are programmable business logic components that provide access to functionality through the Internet. Standard protocols like HTTP can be used to access them. Web services are based on the Simple Object Access Protocol (SOAP), which is an application of XML. Web services are given the .asmx extension. |
|
| 5. |
What Is Dll Hell? |
|
Answer» DLL hell is the problem that OCCURS when an installation of a newer application might break or hinder other applications as newer DLLS are copied into the system and the older applications do not support or are not compatible with them, .NET overcomes this problem by SUPPORTING multiple versions of an ASSEMBLY at any GIVEN time. This is also called side-by-side component versioning. DLL hell is the problem that occurs when an installation of a newer application might break or hinder other applications as newer DLLs are copied into the system and the older applications do not support or are not compatible with them, .NET overcomes this problem by supporting multiple versions of an assembly at any given time. This is also called side-by-side component versioning. |
|
| 6. |
What Is Shadow Copy? |
|
Answer» In order to replace a COM component on a live dedicated SERVER, it was necessary to stop the entire website, copy the new files and then restart the website. This is not feasible for the web servers that need to be always running. .NET components are different. They can be overwritten at any time using a mechanism called Shadow Copy. It prevents the Portable Executable (PE) files like DLLs and EXE's from being locked. Whenever new versions of the PE's are RELEASED, they are AUTOMATICALLY DETECTED by the CLR and the changed components will be automatically loaded. They will be used to process all new requests not currently executing, while the older version still runs the currently executing requests. By bleeding out the older version, the update is COMPLETED. In order to replace a COM component on a live dedicated server, it was necessary to stop the entire website, copy the new files and then restart the website. This is not feasible for the web servers that need to be always running. .NET components are different. They can be overwritten at any time using a mechanism called Shadow Copy. It prevents the Portable Executable (PE) files like DLLs and EXE's from being locked. Whenever new versions of the PE's are released, they are automatically detected by the CLR and the changed components will be automatically loaded. They will be used to process all new requests not currently executing, while the older version still runs the currently executing requests. By bleeding out the older version, the update is completed. |
|
| 7. |
Explain Assembly And Manifest? |
|
Answer» An assembly is a collection of one or more FILES and one of them (DLL or EXE) contains a special metadata called Assembly Manifest. The manifest is stored as binary data and contains details like versioning requirements for the assembly, the author, security permissions, and list of files FORMING the assembly. An assembly is created whenever a DLL is built. The manifest can be viewed programmatically by making use of classes from the System. Reflection namespace. The tool Intermediate Language Disassembler (ILDASM) can be used for this purpose. It can be launched from the COMMAND prompt or via Start> Run. An assembly is a collection of one or more files and one of them (DLL or EXE) contains a special metadata called Assembly Manifest. The manifest is stored as binary data and contains details like versioning requirements for the assembly, the author, security permissions, and list of files forming the assembly. An assembly is created whenever a DLL is built. The manifest can be viewed programmatically by making use of classes from the System. Reflection namespace. The tool Intermediate Language Disassembler (ILDASM) can be used for this purpose. It can be launched from the command prompt or via Start> Run. |
|
| 9. |
What Is Cli? |
|
Answer» The CLI is a set of specifications for a runtime ENVIRONMENT, INCLUDING a common TYPE system, base class library, and a machine-independent intermediate code known as the Common Intermediate Language (CIL). (Source: Wikipedia). The CLI is a set of specifications for a runtime environment, including a common type system, base class library, and a machine-independent intermediate code known as the Common Intermediate Language (CIL). (Source: Wikipedia). |
|
| 10. |
What Is Clr? |
|
Answer» Common Language RUNTIME (CLR) is a run-time environment that manages the execution of .NET code and provides SERVICES like memory management, debugging, SECURITY, etc. The CLR is also known as Virtual Execution SYSTEM (VES). Common Language Runtime (CLR) is a run-time environment that manages the execution of .NET code and provides services like memory management, debugging, security, etc. The CLR is also known as Virtual Execution System (VES). |
|
| 11. |
List The Types Of Authentication Supported By Asp.net? |
| Answer» | |
| 12. |
Explain Namespace? |
|
Answer» Namespaces are logical GROUPINGS of names used WITHIN a program. There may be multiple namespaces in a SINGLE application code, grouped based on the identifier's use. The NAME of any given identifier must appear only once in its namespace. Namespaces are logical groupings of names used within a program. There may be multiple namespaces in a single application code, grouped based on the identifier's use. The name of any given identifier must appear only once in its namespace. |
|
| 13. |
Is A New Version Coming Up? |
|
Answer» ASP.NET 2.0, Visual Studio 2005 (Whidbey), Visual Web Developer 2005 EXPRESS Edition are the NEXT releases of Microsoft's Web platform and tools. They have ALREADY been RELEASED as Beta versions. They are scheduled to be released in the week of November 7, 2005. ASP.NET 2.0, Visual Studio 2005 (Whidbey), Visual Web Developer 2005 Express Edition are the next releases of Microsoft's Web platform and tools. They have already been released as Beta versions. They are scheduled to be released in the week of November 7, 2005. |
|
| 14. |
When Was Asp.net Released? |
|
Answer» ASP.NET is a PART of the .NET framework which was released as a SOFTWARE platform in 2002. ASP.NET is a part of the .NET framework which was released as a software platform in 2002. |
|
| 15. |
Where Can I Download The .net Sdk? |
|
Answer» .NET SDK can be OBTAINED here. (You have to INSTALL the Microsoft .NET Framework Version 1.1 Redistributable PACKAGE before installing the .NET SDK.) .NET SDK can be obtained here. (You have to install the Microsoft .NET Framework Version 1.1 Redistributable Package before installing the .NET SDK.) |
|
| 16. |
Are There Any Free Ides For The .net Sdk? |
|
Answer» MICROSOFT provides Visual STUDIO 2005 EXPRESS Edition Beta for free. Of particular interest to the ASP.NET developers would be the Visual Web Developer 2005 Express Edition Beta 2 available as a free download. The ASP.NET Web Matrix Project (supported by Microsoft) is a free IDE for developing ASP.NET applications and is available here. There is also a free open-source UNIX version of the Microsoft .NET DEVELOPMENT platform called Mono available for download here. Another increasingly popular Open Source Development Environment for .NET is the #develop (short for SharpDevelop) available for download here. Microsoft provides Visual Studio 2005 Express Edition Beta for free. Of particular interest to the ASP.NET developers would be the Visual Web Developer 2005 Express Edition Beta 2 available as a free download. The ASP.NET Web Matrix Project (supported by Microsoft) is a free IDE for developing ASP.NET applications and is available here. There is also a free open-source UNIX version of the Microsoft .NET development platform called Mono available for download here. Another increasingly popular Open Source Development Environment for .NET is the #develop (short for SharpDevelop) available for download here. |
|
| 17. |
What I Need To Create And Run An Asp.net Application? |
|
Answer» WINDOWS 2000, Windows Server 2003 or Windows XP. ASP.NET, which can be either the redistributable (INCLUDED in the .NET SDK) or Visual Studio .NET. Windows 2000, Windows Server 2003 or Windows XP. ASP.NET, which can be either the redistributable (included in the .NET SDK) or Visual Studio .NET. |
|
| 18. |
Why Would You Use An Array Vs Linked-list ? |
|
Answer» Linked List:
Array
Linked List: Array |
|
| 19. |
What Property Do You Have To Set To Tell The Grid Which Page To Go When Using The Pager Object? |
|
Answer» CurrentPageIndex. You NEED to SET this ONE with the DataGridPageChangedEventArgs' NewPageIndex. CurrentPageIndex. You need to set this one with the DataGridPageChangedEventArgs' NewPageIndex. |
|
| 20. |
A Web Service Can Only Be Written In .net? |
|
Answer» False. False. |
|
| 21. |
Which Method Do You Use To Redirect The User To Another Page Without Performing A Round Trip To The Client? |
|
Answer» SERVER.Transfer. Response.Redirect ALSO does that but it requires ROUND trip between CLIENT and server. Server.Transfer. Response.Redirect also does that but it requires round trip between client and server. |
|
| 22. |
What Is The Standard You Use To Wrap Up A Call To A Web Service? |
|
Answer» SOAP. SOAP. |
|
| 23. |
What Tag Do You Use To Add A Hyperlink Column To The Datagrid? |
|
Answer» HyperLinkColumn. HyperLinkColumn. |
|
| 24. |
How Do You Create A Permanent Cookie? |
|
Answer» If you are DEVELOPING web services and the cookies need to be travelled across multiple requests, then it need to have PERMANENT or persistant cookie. In ORDER to do this, you have to set your webserivce CookieContainer to a newly created Cookie Container, and set its cookie to a session value and then store the cookie(s) into the SERVICE CookieCollection from that cookie container if something is there otherwise ADD cookie to the container. If you are developing web services and the cookies need to be travelled across multiple requests, then it need to have permanent or persistant cookie. In order to do this, you have to set your webserivce CookieContainer to a newly created Cookie Container, and set its cookie to a session value and then store the cookie(s) into the Service CookieCollection from that cookie container if something is there otherwise add cookie to the container. |
|
| 25. |
What Tags Do You Need To Add Within The Asp:datagrid Tags To Bind Columns Manually? |
|
Answer» You NEED to SET AutoGenerateColumns PROPERTY to FALSE. You need to set AutoGenerateColumns Property to false. |
|
| 26. |
Which Two Properties Are On Every Validation Control? |
|
Answer» The common PROPERTIES are:
The common method is:Validate(). The common properties are: The common method is:Validate(). |
|
| 27. |
How Do You Turn Off Cookies For One Page In Your Site? |
|
Answer» Actually I never did this. But there should be a WAY to do this. May be need to write your own CODE to do this USING RESPONSE. Cookies collection and HTTPCookie class and ALSO SessionStateMode. Or there may be some simple way to do it. Need to do further research on this. Actually I never did this. But there should be a way to do this. May be need to write your own code to do this using Response. Cookies collection and HTTPCookie class and also SessionStateMode. Or there may be some simple way to do it. Need to do further research on this. |
|
| 28. |
What Method Do You Use To Explicitly Kill A User's Session? |
|
Answer» Session.Abandon() Session.Abandon() |
|
| 29. |
In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events? |
|
Answer» This is the order of Page EVENTS
Out of all the Page_Load is the one where your code GETS LOADED and your magic should be written. page_init occurs only once, i.e. when the page is initially created. As a DEVELOPER you need to know these, becuase your development activity is coding for these only. This is the order of Page events Out of all the Page_Load is the one where your code gets loaded and your magic should be written. page_init occurs only once, i.e. when the page is initially created. As a developer you need to know these, becuase your development activity is coding for these only. |
|
| 30. |
How Would You Get Asp.net Running In Apache Web Servers - Why Would You Even Do This? |
|
Answer» You need to CREATE a CLRHost, which hosts the CLR (ASP.NET) on top of Apache. SINCE Apache is #1 webserver used by many COMPANIES, this would allow more NUMBER of web SITE owners to take advantage of ASP.NET and its richness. You need to create a CLRHost, which hosts the CLR (ASP.NET) on top of Apache. Since Apache is #1 webserver used by many companies, this would allow more number of web site owners to take advantage of ASP.NET and its richness. |
|
| 31. |
Describe Session Handling In A Webform, How Does It Work And What Are The Its Limits? |
|
Answer» Sometimes it is NECESSARY to carry a particular session data across PAGES, and HTTP is a stateless protocol. In order to maintain state between page calls, we could use cookies, hidden form fields etc. One of them is using sessions. each sessions are maintain a unique key on the server and serialize the data on it. Actually it is a hashtable and stores data on key/value pair of combination. You could set a session using Session Object and retrieve the same data/state by passing the key. //Set // Get The downside of sessions is scalability. Say your application gets more and more hits and you though instead of one webserver handling it, have it in a webform (multiple web servers working under one domain). You cannot transfer the session so easily across multiple webservers. it PHYSICALLY serializes the state data to webserver hard disk. .NET proposes a new way to handle this using a stateserver (actually a trimmed down sql server) storing the web session data in a factory configured database SCHEMA or using Database with your own schema defined to handle the sessions. Sometimes it is necessary to carry a particular session data across pages, and HTTP is a stateless protocol. In order to maintain state between page calls, we could use cookies, hidden form fields etc. One of them is using sessions. each sessions are maintain a unique key on the server and serialize the data on it. Actually it is a hashtable and stores data on key/value pair of combination. You could set a session using Session Object and retrieve the same data/state by passing the key. //Set // Get The downside of sessions is scalability. Say your application gets more and more hits and you though instead of one webserver handling it, have it in a webform (multiple web servers working under one domain). You cannot transfer the session so easily across multiple webservers. it physically serializes the state data to webserver hard disk. .NET proposes a new way to handle this using a stateserver (actually a trimmed down sql server) storing the web session data in a factory configured database schema or using Database with your own schema defined to handle the sessions. |
|
| 32. |
How Does Vb.net/c# Achieve Polymorphism? |
|
Answer» Polymorphism is ACHIEVED through virtual, overloaded, OVERRIDDEN METHODS in C# and VB.NET. Polymorphism is achieved through virtual, overloaded, overridden methods in C# and VB.NET. |
|
| 33. |
What Are Asp.net Web Forms? How Is This Technology Different Than What Is Available Though Asp (1.0-3.0)? |
|
Answer» ASP.NET webforms are analogous to Windows Forms which are available to most VB developers. A webform is essentially a core container in a Page. An empty webform is nothing but a HTML FORM tag(CONTROL) RUNNING at server and posting form to itself by DEFAULT, but you could change it to post it to something else. This is a container, and you could place the WEB controls, user controls and HTML Controls in that one and interact with user on a postback basis. ASP.NET webforms are analogous to Windows Forms which are available to most VB developers. A webform is essentially a core container in a Page. An empty webform is nothing but a HTML Form tag(control) running at server and posting form to itself by default, but you could change it to post it to something else. This is a container, and you could place the web controls, user controls and HTML Controls in that one and interact with user on a postback basis. |
|
| 34. |
If Iam Developing An Application That Must Accomodate Multiple Security Levels Though Secure Login And My Asp.net Web Appplication Is Spanned Across Three Web-servers (using Round-robbin Load Balancing) What Would Be The Best Approach To Maintain Login-in State For The Users? |
|
Answer» Use the STATE server or store the state in the DATABASE. This can be easily done through simple setting change in the web.config. <sessionState mode="InProc" stateConnection String= "tcpip=127.0.0. 1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa; password=" cookieless="false" timeout="30"/> in the above one INSTEAD of mode="InProc", you specifiy stateserver or sqlserver. Use the state server or store the state in the database. This can be easily done through simple setting change in the web.config. <sessionState mode="InProc" stateConnection String= "tcpip=127.0.0. 1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa; password=" cookieless="false" timeout="30"/> in the above one instead of mode="InProc", you specifiy stateserver or sqlserver. |
|
| 35. |
Can You Give An Example Of What Might Be Best Suited To Place In The Application_start And Session_start Subroutines? |
|
Answer» In the Application_Start event you COULD store the DATA, which is used throughout the life time of an application for example application name, where as Session_Start could be used to store the information, which is required for that SESSION of the application SAY for example user ID or user name. In the Application_Start event you could store the data, which is used throughout the life time of an application for example application name, where as Session_Start could be used to store the information, which is required for that session of the application say for example user id or user name. |
|
| 36. |
Let's Say I Have An Existing Application Written Using Visual Studio 6 (vb 6, Interdev 6) And This Application Utilizes Windows 2000 Com+ Transaction Services. How Would You Approach Migrating This Application To .net |
|
Answer» You have to USE System.EnterpriseServices NAMESPACE and ALSO COMInterop the EXISTING APPLICATION. You have to use System.EnterpriseServices namespace and also COMInterop the existing application. |
|
| 37. |
What Are The Different Types Of Session State Management Options Available With Asp.net? |
|
Answer» ASP.NET PROVIDES In-Process and Out-of-Process state management. In-Process stores the session in memory on the web SERVER. This requires the a "sticky-server" (or no load-balancing) so that the user is always re connected to the same web server. Out-of-Process Session state management stores data in an external data source. The external data source may be EITHER a SQL Server or a State Server service. Out-of-Process state management requires that all objects stored in session are serializable. ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in memory on the web server. This requires the a "sticky-server" (or no load-balancing) so that the user is always re connected to the same web server. Out-of-Process Session state management stores data in an external data source. The external data source may be either a SQL Server or a State Server service. Out-of-Process state management requires that all objects stored in session are serializable. |
|
| 38. |
What Does The "enableviewstate" Property Do? Why Would I Want It On Or Off? |
|
Answer» It ALLOWS the page to save the users INPUT on a FORM across postbacks. It saves the server-side values for a GIVEN control into ViewState, which is STORED as a hidden value on the page before sending the page to the clients browser. When the page is posted back to the server the server control is recreated with the state stored in viewstate. It allows the page to save the users input on a form across postbacks. It saves the server-side values for a given control into ViewState, which is stored as a hidden value on the page before sending the page to the clients browser. When the page is posted back to the server the server control is recreated with the state stored in viewstate. |
|
| 39. |
What Is The Lifespan For Items Stored In Viewstate? |
|
Answer» ITEM stored in ViewState EXIST for the life of the CURRENT page. This includes POSTBACKS (to the same page). Item stored in ViewState exist for the life of the current page. This includes postbacks (to the same page). |
|
| 40. |
What Is Viewstate? |
|
Answer» VIEWSTATE allows the state of objects (SERIALIZABLE) to be stored in a hidden field on the page. ViewState is transported to the CLIENT and back to the server, and is not stored on the server or any other EXTERNAL source. ViewState is used the RETAIN the state of server-side objects between postbacks. ViewState allows the state of objects (serializable) to be stored in a hidden field on the page. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source. ViewState is used the retain the state of server-side objects between postbacks. |
|
| 41. |
Can You Give An Example Of When It Would Be Appropriate To Use A Web Service As Opposed To A Non-serviced .net Component? |
|
Answer» Webservice is one of main component in Service Oriented Architecture. You could use WEBSERVICES when your clients and servers are running on different networks and also different PLATFORMS. This provides a loosely COUPLED system. And also if the client is behind the firewall it would be EASY to use webserivce since it runs on PORT 80 (by default) instead of having some thing else in SOA apps. Webservice is one of main component in Service Oriented Architecture. You could use webservices when your clients and servers are running on different networks and also different platforms. This provides a loosely coupled system. And also if the client is behind the firewall it would be easy to use webserivce since it runs on port 80 (by default) instead of having some thing else in SOA apps. |
|
| 42. |
To Test A Web Service You Must Create A Windows Application Or Web Application To Consume This Service? |
|
Answer» False, The web service comes with a TEST PAGE and it PROVIDES HTTP-GET METHOD to test. False, The web service comes with a test page and it provides HTTP-GET method to test. |
|
| 43. |
Where On The Internet Would You Look For Web Services? |
|
Answer» HTTP://www.uddi.org http://www.uddi.org |
|
| 44. |
What Does Wsdl Stand For? |
|
Answer» WEB SERVICES DESCRIPTION LANGUAGE. Web Services Description Language. |
|
| 45. |
What Is The Transport Protocol You Use To Call A Web Service? |
|
Answer» SOAP(SIMPLE Object Access PROTOCOL) is the PREFERRED protocol. SOAP(Simple Object Access Protocol) is the preferred protocol. |
|
| 46. |
How Many Classes Can A Single .net Dll Contain? |
|
Answer» It can contain many classes. |
|
| 47. |
Which Control Would You Use If You Needed To Make Sure The Values In Two Different Controls Matched? |
|
Answer» CompareValidator CONTROL. CompareValidator control. |
|
| 48. |
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? |
|
Answer» DataTextField PROPERTY. DataTextField property. |
|
| 49. |
Name Two Properties Common In Every Validation Control? |
| Answer» | |