Interview questions

Software Engineer interview questions – page 15

490 questions. Tap “Show answer” to check yourself.

  1. Which access specifier/s can help to achive data hiding in C++?

  2. Name the default standard streams in C++.?

  3. Do we have a String primitive data type in C++?

  4. Define a destructor?

  5. When a class member is defined outside the class, which operator can be used to associate the function definition to a particular class?

  6. Define the data type to store the Boolean value?

  7. Can it be overloaded? What is a constructor?

  8. What do you mean by function overloading?

  9. Can I use malloc() function of C language to allocate dynamic memory in C++?

  10. What do you mean by a default constructor?

  11. Distinguish between the keywords struct and class in C++?

  12. Can we implement all the concepts of OOPS using the keyword struct?

  13. Does C++ supports exception handling?

  14. Which operator can be used in C++ to allocate dynamic memory?

  15. Tell the purpose of 'delete' operator?

  16. Can I use 'delete' operator to release the memory which was allocated using malloc() function of C language?

  17. Define a friend function?

  18. Explain a copy constructor?

  19. Describe command line arguments?

  20. Where an automatic variable is stored? Define is a container class?

  21. Can a program be compiled without main() function?

  22. Which operator can be used to determine the size of a data type/class or variable/object?

  23. When should we use the register storage specifier?

  24. What are the different ways of passing parameters to the functions?

  25. Which compiler switch to be used for compiling the programs using math library with g++ compiler?

  26. Explain a preprocessor?

  27. Define a token?

  28. List out the available modes of inheritance to inherit one class from another?

  29. You put a glass of water on a record turntable and begin slowly increasing the speed. What happens first - does the glass slide off, tip over, or does the water splash out?

  30. You're in a row boat, which is in a large tank filled with water. You have an anchor on board, which you throw overboard (the chain is long enough so the anchor rests completely on the bottom of the tank). Does the water level in the tank rise or fall?

Companies that ask Software Engineer questions