21 Apr 2013

Important C++ Exam and Interview Questions.

Important C++ Exam and Interview Questions.

  1. Why main function is special in C++ ?

  2. What is run-time error, logical error and syntax error?

  3. What is the role of #include directive in C++?

  4. What is compiler and linker?

  5. Why is char often treated as integer data type in C++ ?

  6. What is type conversion in C++ ?

  7. What is type castin>g in C++ ?

  8. What is the effect of absence of break in switch case in C++ ?

  9. In control structure switch-case what is the purpose of default in C++ ?

  10. What is the difference between while and do-while loop?

  11. What is the difference between call by value and call by reference in a user defined function in C++?

  12. What is preprocessor directive?

  13. What is the difference between local variable and global variable?

  14. What is the role of #define in C++?

  15. What are the major differences between Object Oriented Programming        and Procedural Programming?

  16. What are the basic concepts of OOP?

  17. How is OOP implement in C++?

  18. What is abstract class?

  19. What is concrete class?

  20. What is a constructor? What are its features?

  21. What does a destructor do?

  22. Define inheritance.

  23. Define Base class and derived class.

  24. What are the different forms of inheritance in C++ ?

  25. What is virtual base class in C++ ? What is its significance?

  26. How are binary files different from text files in C++?

  27. What is a stream? Name the streams generally used for file I/O.

  28. Difference between get() and getline().

  29. Difference between ios::app and ios::out.

  30. What is pointer?

  31. What is pointer arithmetic ? How is it performed?

  32. Differentiate between static and dynamic allocation of memory.

  33. What do you understand by memory leaks? How can memory leaks be avoided?

  34. What is this pointer? What is its Significance?

  35. What is the full form of LIFO? Give an example of LIFO list?

  36. What is the full form of FIFO? What is FIFO list technically called?

  37. What are the preconditions for Binary search to be performed on a single dimensional array?

Written by

Hello,Visitor..!

0 comments:

Comments

© 2013-2016 ITTechnocrates. All rights resevered. Developed by Bhavya Mehta