Further testing on this confirms it...
q. id | q.parent | qma.question | qma. sequence
--------------+--------------+---------------+-------------------------
2783831 | 7302100 | 5334552 | 2783831,2783832,2783833
2783831 | 7302100 | 3756523 | 2783831,2783832,2783833
2783831 | 7302100 | 3758257 | 2783831,2783832,2783833
2783831 | 7302100 | 6473599 | 2783831,2783832,2783833
2783831 | 7302100 | 7302100 | 2783831,2783832,2783833
2783831 | 7302100 | 9878958 | 2783831,2783832,2783833
2783832 | 7302100 | 5334552 | 2783831,2783832,2783833
2783832 | 7302100 | 3756523 | 2783831,2783832,2783833
2783832 | 7302100 | 3758257 | 2783831,2783832,2783833
2783832 | 7302100 | 6473599 | 2783831,2783832,2783833
2783832 | 7302100 | 7302100 | 2783831,2783832,2783833
2783832 | 7302100 | 9878958 | 2783831,2783832,2783833
2783833 | 7302100 | 5334552 | 2783831,2783832,2783833
2783833 | 7302100 | 3756523 | 2783831,2783832,2783833
2783833 | 7302100 | 3758257 | 2783831,2783832,2783833
2783833 | 7302100 | 6473599 | 2783831,2783832,2783833
2783833 | 7302100 | 7302100 | 2783831,2783832,2783833
2783833 | 7302100 | 9878958 | 2783831,2783832,2783833
(18 rows)
Editing the first qma.question before deleting the parent question looks like this:
Then, I went and deleted the parent question 7302100, went to edit the same question, and got this:
The question still exists in the mdl_question and mdl_question_multianswer tables in the database:
SELECT * FROM mdl_question WHERE id = 5334552;
id | category | parent | name | questiontext | questiontextformat | generalfeedback | defaultmark | penalty | qtype | length | stamp | version | hidden | timecreated | timemodified | createdby | modifiedby | generalfeedbackformat
---------+----------+--------+------+----------------------------------------------------------------------------------------------------+--------------------+-----------------+-------------+-----------+-------------+--------+---------------------------------------+---------------------------------------+--------+-------------+--------------+-----------+------------+-----------------------
5334552 | 346831 | 0 | Q04 | <p>Using the diagram below and the following calculations.</p> +| 1 | | 3.0000000 | 0.0000000 | multianswer | 1 | eldev8.cit.edu.au+130427090228+klCquZ | eldev8.cit.edu.au+150518092645+R7SkDm | 0 | 1367053348 | 1431941205 | 108526 | 108526 | 1
| | | | <p><img src="https://moodle.org/pluginfile.php/134/mod_forum/post/1485481/series.parallel%206.4.png" alt="" width="332" height="250" /></p> +| | | | | | | | | | | | | |
| | | | <p>Note: R1 = 2.6k Ω...R2 = 4k Ω...R3 = 8k Ω....R4 = 600 Ω...R5 = 2.4k Ω...R6 = 12k Ω</p> +| | | | | | | | | | | | | |
| | | | <p>Supply voltage 620 V</p> +| | | | | | | | | | | | | |
| | | | <p>Question (a) Calculate the total equivalent resistance of the circuit...Answer{#1} k ohm's</p>+| | | | | | | | | | | | | |
| | | | <p>Question (b) Calculate the total circuit current...Answer{#2} amps</p> +| | | | | | | | | | | | | |
| | | | <p>Question (c) Calculate the current through R4...Answer{#3} amp</p> +| | | | | | | | | | | | | |
| | | | <p> </p> | | | | | | | | | | | | | |
(1 row)
SELECT * FROM mdl_question_multianswer WHERE question = 5334552;
id | question | sequence
--------+----------+-------------------------
115404 | 5334552 | 2783831,2783832,2783833
(1 row)
But now the sequence questions don't exist:
SELECT * FROM mdl_question WHERE id = 2783831;
id | category | parent | name | questiontext | questiontextformat | generalfeedback | defaultmark | penalty | qtype | length | stamp | version | hidden | timecreated | timemodified | createdby | modifiedby | generalfeedbackformat
----+----------+--------+------+--------------+--------------------+-----------------+-------------+---------+-------+--------+-------+---------+--------+-------------+--------------+-----------+------------+-----------------------
(0 rows)