Put the blocks in the proper order.
\n", + "options": { + "grader": { + "type": "dag", + "show_feedback": true + }, + "maxdist": 0, + "indent": { + "active":true, + "mode":"", // prescribed or free + "max_indents":3 //Defaults to 3 if not specified + }, + "adaptive": true, + "numbered": false, + "language": "math", + "runnable": true + }, + "blocks": [ + { + "text": "Fixed Start", + "type": "", + "tag": "fixed", + "depends": "", + "indent": "", + "displaymath": true, + "feedback": "" + }, + { + "text": "Random Group 1 Block 1", + "type": "", + "tag": "randomg1b1", + "depends": "", + "indent": "", + "displaymath": true, + "feedback": "" + }, + { + "text": "Random Group 1 Block 2", + "type": "", + "tag": "randomg1b2", + "depends": "randomg1b1", + "indent": "", + "displaymath": true, + "feedback": "" + }, + { + "text": "Random Group 1 $\\textbf{Block}$ 3", + "type": "", + "tag": "randomg1b3", + "depends": "randomg1b2", + "indent": "", + "displaymath": true, + "feedback": "" + }, + { + "text": "Fixed $\\textbf{Middle}$", + "type": "", + "tag": "fixed", + "depends": "", + "indent": "", + "displaymath": true, + "feedback": "" + }, + { + "text": "Random Group 2 Block 1", + "type": "", + "tag": "randomg2b1", + "depends": "randomg1b3", + "indent": "", + "displaymath": true, + "feedback": "" + }, + { + "text": "Random Group 2 Block 2", + "type": "", + "tag": "randomg2b2", + "depends": "randomg2b1", + "indent": "", + "displaymath": true, + "feedback": "" + }, + { + "text": "Random Group 2 Block 3", + "type": "", + "tag": "randomg2b3", + "depends": "randomg2b2", + "indent": "", + "displaymath": true, + "feedback": "" + }, + { + "text": "Fixed End", + "type": "", + "tag": "fixed", + "depends": "", + "indent": "", + "displaymath": true, + "feedback": "" + } + ] +} +``` +The constructed code should print the minimum of variables a and b.
\n", + "options": { + "grader": { + "type": "exec", + "showFeedback": true + }, + "maxdist": 0, + "order": "", + "indent": true, + "adaptive": true, + "numbered": false, + "language": "python", + "runnable": true + }, + "blocks": [ + { + "text": "if ``a`b`c`` ``<`>`>=`` b", + "type": "", + "tag": "one1", + "depends": "", + "indent": true, + "displaymath": true, + "feedback": "", + "toggle_options": [ + { + "start_index": 3, + "end_index": 12, + "values": [ + "a", + "b", + "c" + ] + }, + { + "start_index": 13, + "end_index": 23, + "values": [ + "<", + ">", + ">=" + ] + } + ] + }, + { + "text": "print(a)", + "type": "", + "tag": "two", + "depends": "", + "indent": true, + "displaymath": true, + "feedback": "" + }, + { + "text": "else", + "type": "", + "tag": "three", + "depends": "", + "indent": true, + "displaymath": true, + "feedback": "" + }, + { + "text": "print(b)", + "type": "", + "tag": "four", + "depends": "", + "indent": true, + "displaymath": true, + "feedback": "" + } + ] +} +``` + +## Validation + + + +## Local Testing +Run the server normally. +To access files in the ./tests/postitive directory, use the endpoint route: /parsons/test/`${parsedJson.value.question_text || 'Please arrange the code blocks correctly.'}
+