- What is the difference between Unicode and UTF-16?
- What is the significance of UTF-8? When to use it?
- 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.
- When do we need to use Base64 encoding?
- 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?
- Can you open an unicode file (containing CJK chars) in notepad? If not, then why? What editors support unicode on your desktop?
DotNet Interview Questions
Monday, November 05, 2012
i18N concepts
Security concepts
- What is the difference between pseudo-random numbers and real random numbers? PRNG and TRNG...
- Is it even possible to create a true random number?
- Why are random numbers important in cryptography?
- What is the difference between hashing and encryption?
- When would you use symmetric vs asymmetric encryption?
- Does SSL / HTTPS use symmetric key or asymmetric key? What is session key?
- What do you mean by 128-bit encryption? Is it the size of the symmetric key or asymmetric key?
- What is the difference between digital signature and digital certificate?
- What does a digital certificate contain? Also please explain how this all relates to the "Chain of Responsibility" design pattern?
- What's the difference between a GUID generator and a random number generator?
- When you install a digital certificate on the server, where is the private key stored?
- What digital certs are installed on your brower? Who installs them and why are they required?
- You want to send a encrypted message to a person
- You want to digitally sign a document/message
Monday, December 05, 2005
Wednesday, October 19, 2005
Friday, October 07, 2005
Monday, October 03, 2005
In web applications what's the difference btw authentication and authorization?
What are the different ways of authentication in ASP.NET ?
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?
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? )
What are the different ways of authentication in ASP.NET ?
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?
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? )
Friday, September 23, 2005
Tuesday, September 20, 2005
Visual Studio Questions:
---------------------------
1) Can U debug JavaScript or VBScript code using VS ?
2) When I debug a ASP.NET application, IE opens by default. How can I change the browser?
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 ?
4) How would U do "Production Debugging" in ASP.NET?
---------------------------
1) Can U debug JavaScript or VBScript code using VS ?
2) When I debug a ASP.NET application, IE opens by default. How can I change the browser?
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 ?
4) How would U do "Production Debugging" in ASP.NET?
Thursday, July 14, 2005
Monday, July 11, 2005
.NET Remoting Questions Contd.
What is a sink? What are message sinks, channel sinks, transport sinks?
Can I use SoapSuds.exe to access a Webservice?
How can I control the lifetime of SAO Single-Call objects?
Can a SAO have a non-default parameter constructor? Why?
When would U override the InitializeLifetimeService() method?
How can a client increase the lease time of a remote object?
Why does a Sponsor class need to extend MarshalByRef? Who controls the life-time of the sponsor?
Can I use SoapSuds.exe to access a Webservice?
How can I control the lifetime of SAO Single-Call objects?
Can a SAO have a non-default parameter constructor? Why?
When would U override the InitializeLifetimeService() method?
How can a client increase the lease time of a remote object?
Why does a Sponsor class need to extend MarshalByRef? Who controls the life-time of the sponsor?
.NET Remoting Questions
In .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?
What are well-known types in .NET remoting?
We have 2 methods of Activator -- GetObject() {Used for Server-activated objects}
and CreateInstance() { Used for client activated objects }
When do we use the 'new' operator ?
What are the advantages/disadvantages of using programmatic configuration of remoting data Vs config files?
When do we need to override the InitializeLifetimeService() method?
How are Life-times managed in a .NET remoting distibuted environment?
When would U use the SoapSuds.exe utility?
What's the difference between the Soapsuds.exe and Wsdl.exe tools? (Both of them are used to generate proxies for web-services)
Is it possible to have a binary formatter for a HTTP channel?
Can I use SoapSuds.exe for a Tcp channel? For a CAO?
What network calls happen when Activator.GetObject() is called for a SAO?
Can I pass parameters to the constructor of a CAO?
What are well-known types in .NET remoting?
We have 2 methods of Activator -- GetObject() {Used for Server-activated objects}
and CreateInstance() { Used for client activated objects }
When do we use the 'new' operator ?
What are the advantages/disadvantages of using programmatic configuration of remoting data Vs config files?
When do we need to override the InitializeLifetimeService() method?
How are Life-times managed in a .NET remoting distibuted environment?
When would U use the SoapSuds.exe utility?
What's the difference between the Soapsuds.exe and Wsdl.exe tools? (Both of them are used to generate proxies for web-services)
Is it possible to have a binary formatter for a HTTP channel?
Can I use SoapSuds.exe for a Tcp channel? For a CAO?
What network calls happen when Activator.GetObject() is called for a SAO?
Can I pass parameters to the constructor of a CAO?
Friday, July 08, 2005
Monday, June 27, 2005
Wednesday, June 22, 2005
Thursday, June 16, 2005
Wednesday, June 15, 2005
Tuesday, June 14, 2005
Monday, June 13, 2005
Can I declare a delegate outside of a class? i.e. public delegate void myDelegate()
Can I declare a event outside of a class? i.e. public event myDelegate myEvent;
If not then WHY?
Is is necessary that a event delegate should take the 'source' and 'EventArgs' parameters?
Have U ever heard of the 'EventHandler' delegate? Where have U seen it being used?
Can I declare a event outside of a class? i.e. public event myDelegate myEvent;
If not then WHY?
Is is necessary that a event delegate should take the 'source' and 'EventArgs' parameters?
Have U ever heard of the 'EventHandler' delegate? Where have U seen it being used?
Tuesday, June 07, 2005
- Can 2 services share a same process?
- In the OnStart() method of a service, I try to make a database connection that takes around 40 sec. What will happen?
- How is the Pause() method different from a Stop() method in a service?
- A service is handling some Performance counters, EventLogs etc. Is it possible to add a new Perf counter without recompiling the service application?
Monday, June 06, 2005
By default, ASP.NET configuration files that are located in subdirectories override and extend configuration settings that are declared in parent configuration files. In application hosting scenarios, you might want to lock some settings of an ASP.NET application to prevent modification at lower levels. How will U do so?
Thursday, June 02, 2005
- How does GC work in .NET?
- Since objects are automatically memory-managed, can a .NET application ever go "out of memory" ??
- Are there resources that cannot be garbage collected? Why do we have a Dispose() method?
- What's the difference between Finalize() and Dispose() method? When to use what?
- What are generations in GC? What's the advantage of having generations?
- How does GC work in a distributed environment such as "Remoting"?
- When do we use the "SuppressFinalize()" method?
Important Notice - to all wannabe geeks..
Over the last couple of years, I have been taking interviews for .NET and I realise that the percentage of developers who have their fundamentals strong is so less !!!
In this blog, I am going to post dotnet interview questions.
These questions will not have their answers. This is on purpose !!!!
I do not want someone to just read the answers and mug-up for an interview...A true geek should take the pain to find out the answers and understand the underlying concepts.
It is possible that some of the answers may be found at my other blog:
http://NarenCoolGeek.blogspot.com/
Note: Some questions would be very simple, some complex and confusing...Enjoy !!!
In this blog, I am going to post dotnet interview questions.
These questions will not have their answers. This is on purpose !!!!
I do not want someone to just read the answers and mug-up for an interview...A true geek should take the pain to find out the answers and understand the underlying concepts.
It is possible that some of the answers may be found at my other blog:
http://NarenCoolGeek.blogspot.com/
Note: Some questions would be very simple, some complex and confusing...Enjoy !!!
Subscribe to:
Posts (Atom)