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.