C++ Interview Questions



Job interviews are always stressful and they are tough enough to make fresher and even experienced one feel nervous and scary of the interview. Technical-interviews.com has been developed to help students and jobseekers to prepare for the tough job interview questions shot at them. Review the job interview questions and answers on networking basics, load runner, winrunner, .net, vb, java, oracle and many more common job interview questions online here. You have just made the first step to build the foundation for a successful interview by reviewing Technical-interviews.com.

C interview questions

  1. What does static variable mean?
  2. What is a pointer?
  3. What is a structure?
  4. What are the differences between structures and arrays?
  5. In header files whether functions are declared or defined?
  6. What are the differences between malloc() and calloc()?
  7. What are macros? What are the advantages and disadvantages?
  8. Difference between pass by reference and pass by value?
  9. What is static identifier?
  10. Where are the auto variables stored?
  11. Where does global, static, local, register variables, free memory and C Program instructions get stored?
  12. Difference between arrays and linked list?

Programming Interviews Questions

  1. How can you defined OOP?
  2. How can you use OOP in your projects/products/applications?
  3. What is copy constructor?
  4. How many types of copy constructor are there?
  5. What shallow copy constructor does/behaves?
  6. Does C++ support copy constructor?
  7. Does Java support copy constructor?
  8. (If the answer to the previous question was correct) Why doesn’t Java support copy constructor?
  9. What is software life cycle?

C & C++ Questions for interviews

  1. What is the output of printf(”%d”)
  2. What will happen if I say delete this
  3. Difference between “C structure” and “C++ structure”.
  4. Diffrence between a “assignment operator” and a “copy constructor”
  5. What is the difference between “overloading” and “overridding”?
  6. Explain the need for “Virtual Destructor”.
  7. Can we have “Virtual Constructors”?
  8. What are the different types of polymorphism?
  9. What are Virtual Functions? How to implement virtual functions in “C”
  10. What are the different types of Storage classes?
  11. What is Namespace?
  12. What are the types of STL containers?.
  13. Difference between “vector” and “array”?

Windows Programming Interview Questions

  1. What are kernel objects? - - Several types of kernel objects, such as access token objects, event objects, file objects, file-mapping objects, I/O completion port objects, job objects, mailslot objects, mutex objects, pipe objects, process objects, semaphore objects, thread objects, and waitable timer objects.
  2. What is a kernel object? - Each kernel object is simply a memory block allocated by the kernel and is accessible only by the kernel. This memory block is a data structure whose members maintain information about the object. Some members (security descriptor, usage count, and so on) are the same across all object types, but most are specific to a particular object type. For example, a process object has a process ID, a base priority, and an exit code, whereas a file object has a byte offset, a sharing mode, and an open mode.

Windows Programming Interview Questions II

  1. What is handle? - Handle value is actually the index into the process’s handle table that identifies where the kernel object’s information is stored.
  2. How the handle helps in manipulating the kernel objects? - Whenever you call a function that accepts a kernel object handle as an argument, you pass the value returned by one of the Create* functions. Internally, the function looks in your process’s handle table to get the address of the kernel object you want to manipulate and then manipulates the object’s data structure in a well-defined fashion.

Pages (8): « 1 2 [3] 4 5 6 » ... Last »