You are viewing this question as it will appear in the manual grading interface. Return to the normal view when you are done.

Element pl-order-blocks: Externally graded python code with randomized parameters

Write a Python function that returns an odd number.

Drag from here:
  • 1
    a = 12
    
  • 1
    a = 3
    
  • 1
    a = 6
    
  • 1
    a = 7
    
  • 1
    def return_number():
    
  • 1
    return a
    
Construct your solution here:

Correct answer

Student view placeholder

In student views this area is used for assessment and score info.
Tools

Staff information

Question

Title:
Element pl-order-blocks: Externally graded python code with randomized parameters

Variant

Started at:
2026-09-19 09:11:12 (CDT)
Duration:
0s
Show/Hide answer
{
  "coding": [
    {
      "tag": "d0217c64-5d62-4d47-8d5c-21cf1183d36c",
      "uuid": "cf983cce-c208-4a30-8b5a-81ec9597067d",
      "final": false,
      "index": 0,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">def return_number():</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "ab967393-b175-45b8-acb8-2f3fd232d8fc",
      "uuid": "abaaa597-3b9c-43d8-91e2-dbb52580419d",
      "final": false,
      "index": 1,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">a = 3</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "f57e02ce-e1b2-419e-9c2e-dc3c8e973fbc",
      "uuid": "f31cb659-16d3-4f46-8a00-a6b199ba0e1b",
      "final": false,
      "index": 2,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">a = 6</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "c5ee5edf-fc32-4597-ae0a-e5d705a1da81",
      "uuid": "edffc33e-acb5-459b-b776-b86edba7e2ad",
      "final": false,
      "index": 3,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">a = 7</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "eb5689c8-9935-486c-b5a8-095fdf21c227",
      "uuid": "d30e6268-c93b-4455-bf70-e87d3f208760",
      "final": false,
      "index": 4,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">a = 12</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "f6ba8f5f-b121-4b00-8d8a-fe0913551583",
      "uuid": "a41f7e04-7b5e-4ec9-bf05-d75e5586e1ef",
      "final": false,
      "index": 5,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">return a</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    }
  ]
}
History
dec frac
rad deg