I am trying to get context id of quiz module. I would like to know my following method is right or not.
1 Get id from course_modules table on the base of course(id) and instance(quiz id) // I have offline data of course Id and quiz Id
2 Get id from context table on the base of contextlevel=70 and instanceid = id of course_module
Any help would be greatly appreciated.