tag:blogger.com,1999:blog-133584302024-02-20T05:05:09.978-08:00DotNet Interview QuestionsNarendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comBlogger49125tag:blogger.com,1999:blog-13358430.post-20031329436358469832012-11-05T05:58:00.001-08:002012-11-05T05:58:25.773-08:00i18N concepts<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;">
<ul style="text-align: left;">
<li>What is the difference between Unicode and UTF-16?</li>
<li>What is the significance of UTF-8? When to use it?</li>
<li>If Chinese characters are represented as 2 or 3 bytes, how will you
find out the length of a string in Chinese? For e.g. for validating the
length of a field on a form.</li>
<li>When do we need to use Base64 encoding?</li>
<li>If I need to make an application i18n enabled, besides label/message
strings, what are the other areas (data-points) I need to take care of?</li>
<li>Can you open an unicode file (containing CJK chars) in notepad? If not, then why? What editors support unicode on your desktop? </li>
</ul>
</div>
</div>
Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-58418342566014355342012-11-05T05:53:00.006-08:002012-11-05T05:53:37.599-08:00Security concepts<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;">
<ul style="text-align: left;">
<li>What is the difference between pseudo-random numbers and real random numbers? PRNG and TRNG...</li>
<li>Is it even possible to create a true random number?</li>
<li>Why are random numbers important in cryptography?</li>
<li>What is the difference between hashing and encryption?</li>
<li>When would you use symmetric vs asymmetric encryption?</li>
<li>Does SSL / HTTPS use symmetric key or asymmetric key? What is session key?</li>
<li>What do you mean by 128-bit encryption? Is it the size of the symmetric key or asymmetric key?</li>
<li>What is the difference between digital signature and digital certificate?</li>
<li>What does a digital certificate contain? Also please explain how
this all relates to the "Chain of Responsibility" design pattern?</li>
<li>What's the difference between a GUID generator and a random number generator?</li>
<li>When you install a digital certificate on the server, where is the private key stored?</li>
<li>What digital certs are installed on your brower? Who installs them and why are they required?</li>
</ul>
Sample scenarios: What to do? Whose public / private key to use?<br />
<ul style="text-align: left;">
<li>You want to send a encrypted message to a person</li>
<li>You want to digitally sign a document/message </li>
</ul>
</div>
</div>
Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1133774138305727132005-12-05T01:13:00.000-08:002006-10-22T23:54:53.173-07:00- What's the difference btw a DataReader and a DataSet?<br />- When would U use a DataReader instead of a DataSet ?<br />- How is a DataSet populated ? Is a DataReader used behind the scenes ?<br />- How is a database Cursor linked to a DataReader ?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1129728611660149882005-10-19T06:27:00.000-07:002006-10-22T23:54:53.113-07:00Can a single ASP.NET application have 2 different authentication modes specified in 2 different web.config files?<br /><br />If Cookies is disabled, then can Forms authentication work?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1129722283996385072005-10-19T04:42:00.000-07:002006-10-22T23:54:53.052-07:00How do I create a multilanguage, multifile assembly?<br />Why cannot you specify the accessibility modifier for methods inside the interface?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1128673564526781152005-10-07T01:25:00.000-07:002006-10-22T23:54:52.990-07:00How are the activation URLs different in case of SAO and CAO in .NET remoting?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1128673531409495732005-10-07T01:24:00.000-07:002006-10-22T23:54:52.929-07:00When will U use a XMLDataDocument and when will U use a XPathDocument? What's the differences btw the two?<br /><br />When will U use a XMLReader class? What's the difference btw 'pull' model and 'SAX event-driven' push model of XML parsing?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1128344682280394572005-10-03T06:03:00.000-07:002006-10-22T23:54:52.868-07:00What are 'Principles' and 'Identities' in .NET ?<br /><br />How can these be used for authentication and authorization?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1128339203114179882005-10-03T04:32:00.000-07:002006-10-22T23:54:52.742-07:00How would U create a user-control?<br />What basic steps are required to create a custom webcontrol?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1128338786057024042005-10-03T04:08:00.000-07:002006-10-22T23:54:52.671-07:00In web applications what's the difference btw authentication and authorization?<br /><br />What are the different ways of authentication in ASP.NET ?<br /><br />Scenario: At runtime, whenever the user requests a change in some settings, I update the web.config file dynamically at runtime to store the config values. But I notice that my session state gets lost. Why does this occur?<br /><br />U want to control anonymous user's access to resources on the server. How would U do it? (Hint: Which user account would U modify? )Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1128335977025523582005-10-03T03:36:00.000-07:002006-10-22T23:54:52.611-07:00How would U add a client side script for a web-control in ASP.NET ?<br /><br />Can U raise a post-back event for a custom control?...Say U have a link and U want a post-back event to be raised when the link is clicked.<br /><br />What's the difference btw a 'HyperLink' and a 'LinkButton' ?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1128335759587857522005-10-03T03:35:00.000-07:002006-10-22T23:54:52.555-07:00What is the 'Item' property in C#. How does one access the Item property in C#.NET ?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1128335701142245772005-10-03T03:33:00.000-07:002006-10-22T23:54:52.498-07:00What's the difference between 'const' and 'static readonly' in C#.NET ?<br /><br />How would U mark a method as obsolete in C#.NET. Say U want a compiler error to be generated whenever someone uses a obsolete version of you API....Can this be done?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1127479684258806062005-09-23T05:46:00.000-07:002006-10-22T23:54:52.440-07:00What's the difference btw the following methods in .NET remoting?<br /><br />RegisterWellknownServiceType()<br />RegisterWellknownClientType()<br />RegisterActivatedServiceType()<br />RegisterActivatedClientType()Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1127203796462602772005-09-20T00:50:00.000-07:002006-10-22T23:54:52.383-07:00Visual Studio Questions:<br />---------------------------<br />1) Can U debug JavaScript or VBScript code using VS ?<br />2) When I debug a ASP.NET application, IE opens by default. How can I change the browser?<br />3) Can U debug ASP.NET applications remotely? i.e. Ur application is running on a different server and U have VS.NET on Ur m/c ?<br />4) How would U do "Production Debugging" in ASP.NET?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1121408727291684752005-07-14T23:22:00.000-07:002006-10-22T23:54:52.325-07:00Can U debug (generate debug information/symbols) in Release mode?<br />Is the size of a .NET dll/assembly same in Debug and Release mode?<br />While debugging, I see the VS.NET pointer skipping some lines.Why ?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1121161293036508532005-07-12T02:40:00.000-07:002006-10-22T23:54:52.268-07:00What is thread-pool starvation in ASP.NET and when does it occur?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1121148273997783452005-07-11T23:03:00.000-07:002006-10-22T23:54:52.211-07:00.NET Remoting Questions Contd.What is a sink? What are message sinks, channel sinks, transport sinks?<br /><br />Can I use SoapSuds.exe to access a Webservice?<br /><br />How can I control the lifetime of SAO Single-Call objects?<br /><br />Can a SAO have a non-default parameter constructor? Why?<br /><br />When would U override the InitializeLifetimeService() method?<br /><br />How can a client increase the lease time of a remote object?<br /><br />Why does a Sponsor class need to extend MarshalByRef? Who controls the life-time of the sponsor?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1121074785225420442005-07-11T02:32:00.000-07:002006-10-22T23:54:52.153-07:00.NET Remoting QuestionsIn .NET webservices, we can create a proxy class by either adding a web-reference in VS.NET or using the WSDL.exe tool from the command prompt. Who creates the proxy classes in .NET remoting?<br /><br />What are well-known types in .NET remoting?<br /><br />We have 2 methods of Activator -- GetObject() {Used for Server-activated objects}<br />and CreateInstance() { Used for client activated objects }<br />When do we use the 'new' operator ?<br /><br />What are the advantages/disadvantages of using programmatic configuration of remoting data Vs config files?<br /><br />When do we need to override the InitializeLifetimeService() method?<br /><br />How are Life-times managed in a .NET remoting distibuted environment?<br /><br />When would U use the SoapSuds.exe utility?<br /><br />What's the difference between the Soapsuds.exe and Wsdl.exe tools? (Both of them are used to generate proxies for web-services)<br /><br />Is it possible to have a binary formatter for a HTTP channel?<br /><br />Can I use SoapSuds.exe for a Tcp channel? For a CAO?<br /><br />What network calls happen when Activator.GetObject() is called for a SAO?<br /><br />Can I pass parameters to the constructor of a CAO?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1120904502495856822005-07-09T03:20:00.000-07:002006-10-22T23:54:52.094-07:00In COM interop, what's the difference between "tlbexp" and "regasm" tools?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1120821253534854962005-07-08T04:13:00.000-07:002006-10-22T23:54:52.031-07:00How would U maintain data-concurrency in ADO.NET?<br />Please explain the common techniques.Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1120820654663138862005-07-08T04:03:00.000-07:002006-10-22T23:54:51.971-07:00What are the different transaction isolation levels and when to use what?<br />What does the isolation level 'Any' mean?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1120135878127528502005-06-30T05:50:00.000-07:002006-10-22T23:54:51.910-07:00What's the advantage of using strongly typed datasets in ADO.NET?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1119883612341572472005-06-27T07:46:00.000-07:002006-10-22T23:54:51.853-07:00A circular project dependency occurs when two or more projects depend on each other. For example: FileOne in ProjectA depends on FileTwo in ProjectB, and FileThree in ProjectB depends on FileFour back in ProjectA.<br /><br />How will U solve such dependencies in VS.NET ?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.comtag:blogger.com,1999:blog-13358430.post-1119507291330968542005-06-22T23:14:00.000-07:002006-10-22T23:54:51.794-07:00Suppose U have a file that needs to be shared between a .NET application and a non-.NET application for writing/reading. How will U do it ?Narendra Naiduhttp://www.blogger.com/profile/14883940950404721626noreply@blogger.com