WD Interview Question

1) What is the difference between struct and class. 2) Difference between call by value and call by reference. 3) What is a doubly link list and name some methods and attributes. 4) Write a function in whatever language that accepts an integer(decimal) as an argument and will return how many 1's are in that integer's binary counterpart.