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-06 01:13:41 (CDT)
Duration:
0s
Show/Hide answer
{
  "sql-query": [
    {
      "tag": "ceda6b7c-05ea-451c-93f1-dfdf66bb9762",
      "uuid": "e448fcf3-a5ab-4827-8070-727aaba93139",
      "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": "fe8c8eb5-7289-44ed-bb29-24769ab3976c",
      "uuid": "a55ad6d5-970a-4a6c-a333-851fe1d0f819",
      "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": "d78e899f-7990-44df-88bb-a8f5561561a1",
      "uuid": "f02d414b-a714-4239-a532-a98e947e6536",
      "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": "f4aec10c-f6c3-4590-9dec-c36af6952678",
      "uuid": "aa57d71d-c21a-4951-b48b-ca8ab5ff1ab3",
      "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": "cd87c25a-e330-453e-b3bf-7a7c135fd026",
      "uuid": "fb887899-f224-442d-bf35-8e5e97afc216",
      "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": "e74b14af-18ac-4960-bb12-cc49937cb5d8",
      "uuid": "e3cac600-f4ed-4205-9908-5a692d05ddf1",
      "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": "badb746e-e467-4ecc-b861-423eda1f2d69",
      "uuid": "d4931fca-9688-4369-a51e-ac0f5779c9a1",
      "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": "a3f52d59-0249-41d7-8bc7-a8eb4264ab88",
      "uuid": "c92b9e69-76be-4373-bbd9-eb4bee9b610b",
      "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