"The" is used in this sentence because it is referring to the general concept of fridges, not a specific fridge. Also, the question is correct, although it does sound more like British English rather than American English. In American English we would probably say "Do you have any idea who invented the fridge?".