C interview questions – page 67

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

Advertisement
  1. Tell the valid operations on pointers?

  2. You have a 100 coins lying flat on a table, each with a head side and a tail side. 10 of them are heads up, 90 are tails up. You can't feel, see or in any other way find out which side is up. Split the coins into two piles such that there are the same number of heads in each?

  3. Define 'cin' ?

  4. If a pointer declared for a class, which operator can be used to access its class members?

  5. Which key word is used to perform unconditional branching?

  6. What is the order of objects destroyed in the memory?

  7. How should runtime errors be handled in C++?

  8. List out the difference between actual and formal parameters?

  9. Can we nest multi line comments in a C++ code?

  10. What is the purpose of #undef preprocessor?

  11. Tell the difference between variable declaration and variable definition?

  12. What is meant by quality analysis?

  13. Advertisement
  14. What is the use of the keyword ‘using’?

  15. Which function is used to move the stream pointer for the purpose of writing data from stream?

  16. Which function is used to move the stream pointer for the purpose of reading data from stream?

  17. Are the exceptions and error same?

  18. Are class functions taken into consideration as part of the object size?

  19. What happens if an exception is thrown outside a try block?

  20. What is function overloading and operator overloading?

  21. Define RTTI?

  22. Explain Pure Virtual Function? Why and when it is used ?

  23. Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?

  24. When do use "const" reference arguments in function?

  25. Define a mutable member?

  26. Advertisement
  27. When can you tell that a memory leak will occur?

  28. When is a template a better solution than a base class?

  29. How can I create a process that is running a supplied native executable (e.g., cmd.exe)?

  30. Why does the function arguments are called as "signatures"?

  31. What is dgs

  32. What is tree?

Advertisement