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 even 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:34 (CDT)
Duration:
0s
Show/Hide answer
{
  "coding": [
    {
      "tag": "c047e0f2-bac6-4fbf-a8a5-7e60d2b8e250",
      "uuid": "aa8fe4b7-258c-4f5f-8d22-59aef36fdf47",
      "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": "f9b01605-a9f1-4013-aaf9-d57c3678e5bb",
      "uuid": "e37fe84e-575e-44e8-9362-1de2cad3fda4",
      "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": "ac67bcb3-ac81-473a-b849-8ebdf516680c",
      "uuid": "e73efd9f-ab04-4d12-8372-ef6e6bddb6df",
      "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": "b186493e-5e56-4f87-ae55-c842d1e79f7a",
      "uuid": "e9511dbc-5cf9-411a-abea-528c184be601",
      "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": "a272b907-6931-4675-a4d8-2e4fdfa3cb49",
      "uuid": "db6f07bc-a4a9-463c-9c93-c8a0d531d1bb",
      "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": "b6f5281c-6e58-4cd3-899d-c51980e42420",
      "uuid": "ca061e1c-dc79-452c-bd15-948eba3e95d3",
      "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