i want to know " How is information like quiz grades etc are passed from SCORM content to Moodle for storage in database?"
Typically you will use a SCORM authoring tool - see list here:
https://docs.moodle.org/en/Creating_SCORM_Content
That package will then communicate with the Moodle SCORM API using JavaScript function calls.
Here's a good overview that explains SCORM a bit more:
http://scorm.com/scorm-explained/
thanks sir for your valuable help. Sir i have query related reusability of scorm
1.Is it possible with SCORM and Moodle to create content once and reuse it in different courses? Like creating a chapter on "PHP Arrays" and using it in 2 different courses without making a copy (so that if in future a change is to made, it will be made only once)?