Is it possible to embed a calculator in a quiz?
As the quiz questions support HTML, yes, you can do so. I haven't actually done one before, but this one seems like it should work: Embed Calculator
I would suggest going with an HTML5 solution, rather than Flash, as the HTML5 option would work on mobile devices. The concept is the same, find a HTML5-based calculator you like on the Internet (that allows third-party use) and embed it.
Retrieving data ...