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-04 23:51:01 (CDT)
Duration:
0s
Show/Hide answer
{
  "sql-query": [
    {
      "tag": "e6632468-3b9e-4330-a1f0-d20a1baca673",
      "uuid": "abbb1dfb-86ee-4225-8572-23dd5c997617",
      "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": "a0d1dc91-77a2-40ff-8e61-962b86ea3623",
      "uuid": "ffa7ed6e-7eac-49db-b3a4-8405e933843e",
      "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": "d66548cb-c787-4a11-aba0-1ef11ce5290a",
      "uuid": "c8320458-bdfa-46d7-bc3b-ffd290d463a6",
      "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": "c4dcd444-74d5-47e2-b24b-e24dd77d7dcf",
      "uuid": "ca030034-e516-44b2-908f-2a35c2083eb4",
      "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": "d6ab38d7-99b3-458d-9cd0-057e97f369d6",
      "uuid": "f0d4c311-4fa2-45ca-8a98-e8c0e0289b9b",
      "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": "b394b6ab-64d4-4dce-8900-a05bcea5d80e",
      "uuid": "a8416743-296a-499d-bfec-a0f00ac7728b",
      "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": "a5136850-9c6e-4f8f-a30b-2304b452cd4f",
      "uuid": "f8f7f066-7df4-4f2d-aa33-89f60a89ea76",
      "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": "c6c9d917-bf5c-447b-9a7c-fafe90c13a85",
      "uuid": "a4a4a2f9-b09a-44bb-a48c-ebf0bb780ab2",
      "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