C interview questions – page 23

2,130 questions. Tap “Show answer” to check yourself.

Advertisement
  1. What is the difference between Object and Instance?

  2. What is the output of printf ("%d")

  3. What is the difference between shadow and override

  4. What is the first step to do anything with assembly

  5. Assemblies cannot be loaded side by side

  6. If A.equals(B) is true then A.getHashcode & B.getHashCode must always return same hash code

  7. How do you import Activex component in to .NET

  8. How to implement multiple inheritence in C#

  9. GetEnumerator( ) of Ienumerable interface returns

  10. In a multilevel hierarchy how are the constructors are called

  11. What are Virtual Functions? How to implement virtual functions in "C"

  12. What is difference between followin intialization.int iVar1;int iVar2 = int();and which one of two should we prefer always and why?

  13. Advertisement
  14. What is the order of destructors called in a polymorphism hierarchy

  15. This is a Regular expression built for parsing string in vb.net and passed to Regex class.Dim r As Regex = New Regex(",(?=([^""]*""[^""]*"")*(?![^""]*""))")What is C# equivalent for this regular expression.

  16. Which attribute you generally find on top of main method

  17. Constructors can not be static

  18. What happens when you create an arraylist as ArrayList Arr=new ArrayList()

  19. What is the default Function arguments?

  20. In the following cases which is not function overloading

  21. How can you force instantiation of a template?

  22. How to convert ocx into DLL

  23. What are the different types of polymorphism?

  24. How do you add objects to hashtable

  25. Constructor is the method which is implicitly created when ever a class is instantiated. Why?

  26. Advertisement
  27. Which utility is used to create resource file

  28. Which debugging window allows you to see all the name and values of all the variables in scope?

  29. What is the output of Vectors.RemoveAt(1)

  30. Stream object can not be initialized

  31. What will be output of the following code#includeusing namespace std;class abc{public :void main(){cout<<" Its main function "< }};int main(int c, char **v){abc a;if(c<1){cout<<" Error can not accept it "< exit(1);}cout<<" its in main program "< a.main();return 0;}

  32. It possible to inherit the private member in drived class?

Advertisement