• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

DotNet Interview Questions Answers

Question - 1 : - What are PDBs? Where must they be located for debugging to work?

Answer - 1 : -   A program database (PDB) files holds debugging and project state information that allows incremental linking of debug configuration of your program.There are several different types of symbolic debugging information. The default type for Microsoft compiler is the so-called PDB file. The compiler setting for creating this file is /Zi, or /ZI for C/C++(which creates a PDB file with additional information that enables a feature called ""Edit and Continue"") or a Visual Basic/C#/JScript .NET program with /debug. A PDB file is a separate file, placed by default in the Debug project subdirectory, that has the same name as the executable file with the extension .pdb. Note that the Visual C++ compiler by default creates an additional PDB file called VC60.pdb for VisulaC++6.0 and VC70.PDB file for VisulaC++7.0. The compiler creates this file during compilation of the source code, when the compiler isn't aware of the final name of the executable. The linker can merge this temporary PDB file into the main one if you tell it to, but it won't do it by default. The PDB file can be useful to display the detailed stack trace with source files and line numbers.

Question - 2 : - What is view state?

Answer - 2 : - The web is stateless. But in ASP.NET, the state of a page is maintained in the in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control

Question - 3 : -    What is a satellite assembly?

Answer - 3 : -   When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies.

Question - 4 : - What is the difference between typeof(foo) and myFoo.GetType()?

Answer - 4 : -   Typeof is operator which applied to a object returns System.Type object. Typeof cannot be overloaded white GetType has lot of overloads.GetType is a method which also returns System.Type of an object. GetType is used to get the runtime type of the object. Example from MSDN showing Gettype used to retrive type at untime:- public class MyBaseClass: Object { } public class MyDerivedClass: MyBaseClass { } public class Test {    public static void Main() {       MyBaseClass myBase = new MyBaseClass();       MyDerivedClass myDerived = new MyDerivedClass();       object o = myDerived;       MyBaseClass b = myDerived;       Console.WriteLine("mybase: Type is {0}", myBase.GetType());       Console.WriteLine("myDerived: Type is {0}", myDerived.GetType());       Console.WriteLine("object o = myDerived: Type is {0}", o.GetType());       Console.WriteLine("MyBaseClass b = myDerived: Type is {0}", b.GetType());    } } /* This code produces the following output. Previous Next

Computer Contributors

Rajeev Katiyar
Yes Baroda

Share your email for latest updates


Our partners

Copyright 2017, All Rights Reserved. A Product Design BY CoreNet Web Technology