C interview questions – page 21

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

Advertisement
  1. Why can't we overload the sizeof, :?, :: ., .* operators in c++?

  2. Can we inherit private members of class ?

  3. Can we make any program in c++ without using any header file and what is the shortest program in c++.

  4. Why do we need to close a file.Eg.ifstream ifile;ifile.open("temp.dat")........ifile.close();What happens if we do not close() a file?

  5. How to implement the runtime polymorphism using c++. examples.

  6. When do we use abstract.h?Give an example with a small program.

  7. Types of Assemblies?:

  8. What is the definition of abstract class and virtual function?

  9. Difference between stack memory and heap memory?

  10. What is partial class. & what is advantage.

  11. Write a program on abstract class.

  12. The C# keyword int maps to which .NET type

  13. Advertisement
  14. To Configure .Net for JIT activation what do you do

  15. In c++ have a default constructor ?

  16. What is memory leaking in c++ ?

  17. What is function overriding?

  18. What is the use of fixed statement

  19. It is not permitted to declare modifier on the members in an interface definition

  20. What is the difference between macro and inline()?

  21. Which of the following statement is invalid with regards to constructor

  22. Which of the following is not a member of stringbuilder

  23. What does the volatile modifier do

  24. Can we generate a C++ source code from the binary file?

  25. Code running under the control of CLR is often referred as

  26. Advertisement
  27. How do you write a program which produces its own source code as its output?

  28. What is the use of virtual destructor?

  29. How we can use inheritance and polymorphisms in c# programming?

  30. Which debugging window allows you to see the methods called in the order they were called?

  31. Where we can use DLL made in C#.Net

  32. Which of the following statements is not true for interfaces

Advertisement