Sunday, 10 July 2011

A dozen .NET questions

Differences between DLL and EXE?
Can an assembly have EXE?
Can a DLL be changed to an EXE?
Compare & contrast rich client (smart clients or Windows-based) & browser-based Web application
Compare Client server application with n-Tier application
Can a try block have more than one catch block?
Can a try block have nested try blocks?
How do you load an assembly [...]

Saturday, 9 July 2011

ASP and ASP.NET questions

Explain the life cycle of an ASP .NET page.
Explain the .NET architecture.
What are object-oriented concepts?
How do you create multiple inheritance in c# and .NET?
When is web.config called?

Friday, 8 July 2011

C# interview questions and answers


  1. What’s the implicit name of the parameter that gets passed into the class’ set method? Value, and it’s datatype depends on whatever variable we’re changing.
  2. How do you inherit from a class in C#? Place a colon and then the name of the base class.
  3. Does C# support multiple inheritance? No, use interfaces instead.
  4. When you inherit a protected class-level variable, who is it available to?Classes in the same namespace.
  5. Are private class-level variables inherited? Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But they are.
  6. Describe the accessibility modifier protected internal. It’s available to derived classes and classes within the same Assembly (and naturally from the base class it’s declared in).
  7. C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write? Two. Once you write at least one constructor, C# cancels the freebie constructor, and now you have to write one yourself, even if there’s no implementation in it.

Thursday, 7 July 2011

.NET WebDev interview questions


  1. State True or False: If you set AutoGenerateColumns=True and still provide custom column definitions, the DataGrid will render both
    • True
    • False
  2. The data from an XSL Transform with XmlReader can be returned in one of the following ways
    • objReader = objXslT.Transform(objNav, nothing)
    • objXslT.Transform(objNav, nothing)
    • objReader = objXslT.Transform(objNav, nothing, objWriter)
    • objXslT.Transform(objNav, nothing, objWriter)
  3. Pick the command line that would result in the C# compiler generating an XML documentation file
    • csc /doc:NewHome.xml NewHome.cs
    • c /doc /docfile: NewHome.xml NewHome.cs
    • csc /doc /out: NewHome.xml NewHome.cs
    • csc /xml NewHome.cs
  4. What is the comment syntax for C#’s XML-based documentation?
    • /** and **/
    • //#
    • ///
    • //*
  5. When creating a C# Class Library project, what is the name of the supplementary file that Visual Studio.NET creates that contains General Information about the assembly?
    • AssemblyInfo.xml
    • AssemblyInfo.cs
    • AssemblyInformation.cs

Active Server Pages interview questions


  1. How do you create a recordset object in VBScript?
  2. What is Querystring collection? - It allows you to extract data sent to the server using a GET request.
  3. Explain the difference between POST and GET Method. - GET requests are string data that is visible to the end user via the URL and a limit of 2kb, POST requests have no limit on total data and the user can’t see the data in a query string.
  4. Why do we use Option Explicit? - To avoid multiple variables of the same name.

The Best Answers to Tough Interview Questions-Part IV

What is your biggest weakness?

This is a great example of what is known as a negative question. Negative questions are a favorite among interviewers, because they're  effective for uncovering problems or weaknesses. The key to answering negative questions is to give them a positive spin. For this  particular question your best bet is to admit to a weakness that isn't catastrophic, inconsistent, or currently disruptive to your chosen  professional field, and to emphasize how you've overcome or minimized the problem. Whatever you do, don't answer this question with a  copout like "I can't think of any," or even worse, "I don't really have any major weaknesses." This kind of a response is likely to eliminate  you from contention. 

"I admit to being a bit of a perfectionist. I take a great deal of pride in my work and am committed to producing the highest-quality work I  can. Sometimes if I'm not careful, thought,

The Best Answers to Tough Interview Questions-Part III

What's your greatest achievement to date?

Be sure that the achievement you describe here is relevant to the job you're interviewing for. Also, be careful that your answer doesn't  sound as if the best is behind you. Mention something great that you've achieved, but clearly communicate your belief that the best is yet  to come. 

"I'm proud of the fact that I graduated on time with a solid GPA while I played varsity basketball for four years. A lot of women on my  team either took a reduced course load or let their grades suffer. I believe the reason I got through it all was sheer determination; I never  even let myself visualize anything but finishing on time and with good grades. So I firmly believe, as a professional counselor, in the  importance of a positive outlook." Give

The Best Answers to Tough Interview Questions-Part II

What color is your brain?

Be aware that you'll probably be asked zany questions. The point is not to stump you, but to find out what makes you tick. When the  standard interview questions are asked, people are prepared, and it's harder for the recruiter to get to know the real person. An advertising  recruiter, for example, tries to avoid this. There is no right or wrong answer to this type of question. In fact, the recruiter won't even really  care what your answer is. He or she just doesn't want to hear something like, "I don't know, I guess it's blue because that's the way I  imagine it." The point is to see how creative you are and how you think. Be sure to explain why you answered the way you did.  "My brain is red because I'm always hot. I'm always on fire with new plans and ideas."

How will you complement this department?

Describe how your personality

The Best Answers to Tough Interview Questions-Part I

Why should we hire you rather than someone else?

Do not be distracted by the mention of two other candidates, you don't know anything about them and they could be fictitious. Focus on  what strengths you bring to the table. These should be consistent with the four things most employers are looking for in candidates during  the job interview: competence, professionalism, enthusiasm, and likeability. Remember, they are looking for chemistry between you and  them. Be prepared to summarize in 60 seconds why you are the best candidate for the job. Also, let the employer know you want the job  and you will enjoy working with them. A lack of interest in the job may indicate a lack of enthusiasm for the job and them. 

Why do you want to work in this industry?

Tell a story about how you first became interested in this type of work. Point out any similarities between the job you're interviewing for  and your current or most recent job. Provide proof that you aren't simply shopping in this interview.

The Best Answers to Tough Interview Questions

Tell me about yourself.


This is really more of a request than a question. But these few words can put you on the spot in a way no question can. Many quickly lose  control of the interview during the most critical time- the first five minutes.

This is not the time to go into a lengthy history or wander off  in different directions. Your response should be focused and purposeful. Communicate a pattern of interests, skills, and strengths that  relate to the position in question. Consider your response to this question as a commercial that sells your autobiography. Provide an  answer that includes, what you are getting a degree in, your major, a few highlights from your resume such as projects or classes that  relate to the position you are interviewing for, any work experience, leadership experience, and finally include why you are interested in  this particular employer.  One of the most effective ways to prepare for this question is to develop a 60-second (can extend to 2 minutes)  biographic sketch that emphasizes a pattern of interests, skills, and accomplishments. Focus your response around a common theme  related to your major interests and skills. Take, for example, the following response, which emphasizes computers.

Since I was a teenager, I enjoyed working with computers. It was my hobby, my passion, and my way of learning. Like most kids I enjoyed  computer games. When my parents gave me a computer as a reward for making honor roll my sophomore year, I

Sample Interview Questions

An interview provides the hiring manager a perfect opportunity to identify the applicant best  qualified and best suited for the organization. Conducted properly, it is a valuable tool in the  hiring process.  


Prior to the interview:
As you prepare for the interview consider the following:

  1.  Be prepared (develop a list of questions to be utilized for all applicants in the same job)
  2.  Ask open-ended questions
  3.  Refrain from asking any questions about age, sex, ethnic origin, race, religion or political beliefs,  and medical conditions/disabilities.


Tuesday, 5 July 2011

Interview Questions


Q1.  Describe your current project?
A1. Provide the following information in order: name/title of the project, the client name and  location, a functional overview of the project, the environment (hardware and software) of the  project, your specific role and responsibilities and technical features of the software that were  used by you. However, if your most recent project does not fit the requirements of the project for  which you are being interviewed for, and then provide a summary of your experience and  highlight the project which best fits the requirements of the project for which you are being  interviewed.

Q2.  Rate yourself on a scale of 1 to 10 (10 being the best) or 1 to 5 (5 being the best) on each  area of expertise. Example: Rate yourself in PowerBuilder and Sybase.
A2.  Typically, you should rate yourself between 8 and 10.


Q3.  If you rated yourself less than a 10, what will it take for you to become a 10?
A3.  One possible answer is “more experience in a wide range of applications and systems”.

Q4.  Describe which part of software lifecycle you were a part of?
A4.  The main phases in the software lifecycle are specification, design, coding, testing, and  implementation. You need to indicate which areas you have worked in.  For a programmer  analyst, it is essential to have experience in design, coding and testing.  It is always nice to tell  the interviewer that you at least have some experience in specification (interacting with users)  and implementation (installation at the client site).

HOW TO FACE AN INTERVIEW


1. Golden Rule:  Speak        1) Loudly  
                                              2) Clearly 
                                              3) Slowly 
2. You need to make sure that you arrive and are ready to take the phone call about 15 minutes  before the scheduled interview time.  Please make sure the phone is not busy (or engaged) about  10 minutes before the scheduled interview time.
3. Have a pen and paper ready to take notes during the interview with your resume and verify the  resume experience.
4.  Be calm and composed before and during the interview.
5.  Be enthusiastic during the interview. Smile. They can definitely hear it in your voice.  Discuss  hot buttons for client.
6.  Provide direct and complete answers to all questions that are asked of you. Always research  the client’s website before the interview to get an idea of the client’s business.
7.  If this is an international call, there may be  delay across the phone line.  Wait for the  interviewer to finish talking and then respond to the question.
8.  The interviewer begins the conversation with “How are you doing?”  You need to respond back  with “Fine.  How about you?”