Interview Tips Interview Tips, Interview Questions and Answers

25May/110

C# interview questions

1 Describe the difference between a Thread and a Process?

2 What is a Windows Service and how does its lifecycle differ from a "standard" EXE?

3 What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?

4 What is the difference between an EXE and a DLL?

5 What is strong-typing versus weak-typing? Which is preferred? Why?

6 Corillian's product is a "Component Container." Name at least 3 component containers that ship now with the Windows Server Family.

7 What is a PID? How is it useful when troubleshooting a system?

8 How many processes can listen on a single TCP/IP port?

9 What is the GAC? What problem does it solve?

10 What is serialization in .NET? What are the ways to control serialization?

11 Does C# support multiple inheritance?

12 What’s the implicit name of the parameter that gets passed into the class’ set method?

13 What’s the top .NET class that everything is derived from?

14 How’s method overriding different from overloading?

15 What is CLR?

16 What is CTS?

17 What is CLS?

18 What is strong name?

19 What is Application Domain?

20 Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming.

21Apr/110

difference between a document library and a form library in SharePoint?

What is the difference between a document library and a form library in SharePoint?

Document libraries in SharePoint consist of your main/core documents. For example a word document, excel, PowerPoint, Visio, pdf, csv, notepad etc. Form libraries consist of XML forms.

15May/100

.NET Object Serialization – Difference between the SoapFormatter and the XmlSerializer

What is the difference between the SoapFormatter and the XmlSerializer?

SoapFormatter

SOAP formatter will actually take the field values of an object and store all of that information in the stream passed.

SoapFormatter is better to serialize arbitrary data

XmlSerializer

XML Serialization would just serialize the public properties of an object.

The XML Serializer is used typically for serializing simple types across web services

xmlserializer is better, more flexible and faster

22Mar/100

.Net Interview Questions

1. Explain the differences between Server-side and Client-side code?
2. What type of code (server or client) is found in a Code-Behind class?
3. Should validation (did the user enter a real date) occur server-side or client-side? Why?
4. What does the "EnableViewState" property do? Why would I want it on or off?
5. What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over the other?
6.Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component
7.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
8.Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?
9. Can you give an example of what might be best suited to place in the Application Start and Session Start subroutines?
10. If I'm developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?

9Mar/100

asp.net questions and answers

Whether azure supports all OS?
No it supports Windows 7, Vista, Windows 2008 server.

What is the difference between document.getElementById('<%= btnMakeUpdate.ClientID %>').name AND document.getElementById('<%= btnMakeUpdate.UniqueID %>')?
There is no difference. Both will use control's id seperated using $ sign.

MaintainScrollPositionOnPostback will work in Ajax Postback.
NOTE: This is objective type question, Please click question title for correct answer.

You are going to deploy a website on live server. Which build option you will select while building the website? 1. Debug 2. Release
You should select Release .

Your site is deployed on testing server and you make some change in web.config file stored on the server. What will happen to the user's who are accessing site at that time?
When you make any change in web.config file then IIS restarts automatically so all the session and application variables get reset. This can affect user drastically as their session is lost.

Can you add title to browser history point?
Yes, we can add.

Can you hash state information of URL ?
NOTE: This is objective type question, Please click question title for correct answer.

Can you have multiple form tags in a page?
YES.
Page can have multiple form tags but only one of them can contain runat=”server” atrribute at a time.

6Jan/100

10 Frequently asked C# questions, Class Questions

    1. What is the syntax to inherit from a class in C#?
      Place a colon and then the name of the base class.
      Example: class MyNewClass : MyBaseClass
    2. What is an interface class?
      Interfaces, like classes, define a set of properties, methods, and events. But unlike classes, interfaces do not provide implementation. They are implemented by classes, and defined as separate entities from classes. 
    3. Why can’t you specify the accessibility modifier for methods inside the interface?
      They all must be public, and are therefore public by default.
    4. What’s an abstract class?
      A class that cannot be instantiated. An abstract class is a class that must be inherited and have the methods overridden. An abstract class is essentially a blueprint for a class without any implementation.
    5. When do you absolutely have to declare a class as abstract?
      1. When the class itself is inherited from an abstract class, but not all base abstract methods have been overridden.
      2. When at least one of the methods in the class is abstract.
    6. Can you prevent your class from being inherited by another class?
      Yes. The keyword “sealed” will prevent the class from being inherited. 
    7. What is the difference between a Struct and a Class?
      Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval.  Another difference is that structs cannot inherit.
    8. Can you allow a class to be inherited, but prevent the method from being over-ridden?
      Yes. Just leave the class public and make the method sealed.
    9. What’s the difference between an interface and abstract class?
      In an interface class, all methods are abstract - there is no implementation. In an abstract class some methods can be concrete. In an interface class, no accessibility modifiers are allowed.  An abstract class may have accessibility modifiers.
    10. Can you inherit multiple interfaces?
      Yes.  .NET does support multiple interfaces. 
23Dec/090

Common Java Interview questions

Java interview questions can be difficult. So you should be very careful about your preparation prior to appearing for any Java interview question. So you need to take an in-depth preparation before facing your interviewer. This article sheds light on different types of java questions that are common to find in different interview sessions. Quite obviously, being a java developer is not only a prestigious career option but also it offers good compensation as well.

There is a great variety of questions that can be asked during interview. These may include queries regarding difference between String and StringBuffer; difference between interface and abstract class; experience with open source; difference between EJB and Hibernate; usage of Spring; knowledge about Websphere and WSAD; discussion about struts; class in JDK; difference between final, finally and finalize; experience with XP/Agile; JUnit; etc.

Few interviewers may instill answering practical questions during java interview session. He may ask you to define abstract class with good examples; interface with examples; explanation of synchronization. The interviewer may also show you an example, and ask you relevant questions based on the given example. The interviewer may also ask you to write program code as instructed the interviewer. These types of questions may cover different areas of core java, JSP/Servlets, EJB, JMS, JDBC, RMI and Swing.

Due to its lucrative career option, one may choose the appropriate career path to become a java professional. In fact, if someone is aspired for being a java professional, he may choose to appear for different java certification exams as well.

22Dec/090

Interview Questions for ASP.Net

  • We can add a crystal report in aspx page using two techniques, what are these?
  • What is Cache?
  • What is AJAX?
  • Is AJAX a language?
  • What is the difference between syncronus and asyncronus?
  • what do you mean by HTTP Handler?
  • What is the purpose of Global.asax?
  • What is the difference between stroed procedure and stored function in SQL?
  • Can we have an updateable view in SQL?
  • What is connection pooling? how can we acheive that in asp.net?
  • What is DataSet?
  • What is the difference between typed and untyped dataset?
  • What is the difference bewteen accessing the data throgh the dataset and datareader?
  • Any idea of Data Access Component provided by Microsoft?
  • Any idea of Enterprise library?
  • What is web service?
  • What is WSDL?
  • Can a web service be only developed in asp.ent?
  • can we use multiple web services from a single application?
  • can we call a web service asynchronously?
  • Can a web service be used from a windows application?
  • What do we need to deploy a web service?
  • What is the significance of web.config?
  • Can we have multiple web.config files in a sigle web project?
  • Can we have more then one configuration file?
  • Type of Authentications?
  • Can we have multiple assemblies in a single web project?
  • What is the difference between the inline and code behind?
  • what is side by side execution?
  • can we have two different versions of dot net frameworks running on the same machine?
  • What is CLR? Difference b/w CLR and JVM?
  • What is CLI?
  • What is GAC?
  • What is View State?
  • Can you read the View State?
  • What is the difference between encoding and encryption? Which is easy to break?
  • Can we disable the view state application wide?
  • can we disable it on page wide?
  • can we disable it for a control?
  • What is provider Model?
  • What is machine.config?
  • What different types of session state Management we have in asp.net?
  • What are cookies?
  • What is the significance of Application_Start/Session_Start/Application_Error?
  • What is CTS?
  • What is .resx file meant for?
  • Any idea of aspnet_regiis?
  • Any idea of ASP NET State Service?
  • Crystal report is only used for read only data and reporting purposes?