Sample Questions on Programming

Sample Questions on Programming

This contains a sample list of questions related to Programming languages and concepts.   Hadware verification demands a lot of programming skills which are important to develop complex  test benches efficiently.

This is never a complete list, but  try to focus your learning and preparation using this.

  1. What is the difference between a static variable, local variable and a global variable in any programming language?
  2. What do you mean by inline function?
  3. What is the difference between  heap and stack ?
  4. What is the difference between ++a  and  a++  in any programming language?
  5. What is meant by memory leak?
  6. What is the difference between struct and class ?
  7. What is the difference between class an object?
  8. What is polymorphism ?
  9. What is  inheritance and multi inheritance?
  10. What are public, private and protected data members?
  11. What is  function overriding  vs function overloading?
  12. What are static methods and where do we use it?
  13. What is an abstract class?
  14. What is a virtual function?
  15. Write a  C program to compute number of  ones in a bit vector?
  16. Write a C/SystemVerilog program to generate Fibonacci series?