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: inline horizontal arrangement

This question illustrates the inline="true" attribute of pl-order-blocks, which creates a horizontal arrangement of blocks.


Create a SQL command that selects all students who are enrolled in computer science.

This example uses inline="true" to arrange blocks horizontally rather than vertically.

Note: This model of block arrangement, particularly for the context of computer science, is attributed to "Regex Parsons: Using Horizontal Parsons Problems to Scaffold Learning Regex"

Drag from here:
  • 1
    "computer science"
    
  • 1
    =
    
  • 1
    FROM
    
  • 1
    SELECT
    
  • 1
    WHERE
    
  • 1
    enrollments
    
  • 1
    major
    
  • 1
    students
    
Construct your solution here:

Correct answer

Correct answer (in the specified order):
  • 1
    SELECT
    
  • 1
    students
    
  • 1
    FROM
    
  • 1
    enrollments
    
  • 1
    WHERE
    
  • 1
    major
    
  • 1
    =
    
  • 1
    "computer science"
    

Student view placeholder

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

Staff information

Question

Title:
Element pl-order-blocks: inline horizontal arrangement

Variant

Started at:
2026-08-05 00:46:02 (CDT)
Duration:
0s
Show/Hide answer
{
  "sql-query": [
    {
      "tag": "e1de69dc-2390-4e7f-8d74-e8e3da4a8c15",
      "uuid": "d7c607fe-0925-49f8-a7f3-baa884e39672",
      "final": false,
      "index": 0,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">SELECT</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "fcbb3e72-d497-4908-9d26-0777a2bc38f2",
      "uuid": "fa49d590-c20c-4d56-8870-c79168920162",
      "final": false,
      "index": 1,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">students</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "de0e1893-30b2-4292-acda-dd6d7fbdaab4",
      "uuid": "af26826a-4e10-425a-b279-2df596e71bbe",
      "final": false,
      "index": 2,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">FROM</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "e5fd7566-da54-4012-8add-0dab45e5c601",
      "uuid": "a33d5cac-af3a-4fbe-aabb-9ab980ff6678",
      "final": false,
      "index": 3,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">enrollments</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "b784ba90-a241-4ac6-8241-08fe2ccaf052",
      "uuid": "a5b07efd-5447-40fd-bf0f-79451edf5005",
      "final": false,
      "index": 4,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">WHERE</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "fda0a0a8-15ed-4ed4-9a66-4b85506f94d3",
      "uuid": "bb15b4a8-bc1a-4cbf-968c-796c8817e8a8",
      "final": false,
      "index": 5,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">major</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "b12ade3b-8263-4ce3-bb2e-d79e240c7f50",
      "uuid": "d3c7f9ed-4624-4c0d-bdda-a286f23a1c23",
      "final": false,
      "index": 6,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">=</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "c8da7f72-6607-4892-8ccb-1daaeb338bcb",
      "uuid": "fea0a335-b497-4fbb-b1da-2221f122adec",
      "final": false,
      "index": 7,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">&quot;computer science&quot;</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    }
  ]
}
History
dec frac
rad deg