Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,65 +1,75 @@
{
"type": "fill-in-the-blanks",
"taskId": "fill-in-the-blanks-3168852053",
"source": {
"name": "Python Basics",
"showName": true,
"instructions": "Fill in the blanks to complete the Python code snippets correctly.",
"showValues": true,
"text": "# Print \"Hello, World!\"\nprint(<<<\"Hello, World!\">>>)\n\n# Assign the value 5 to variable x\nx = <<<5>>>\n\n# Create a list of numbers 1 through 5\nnumbers = <<<[1, 2, 3, 4, 5]>>>\n\n# Define a function that returns the square of a number\ndef square(n):\n return <<<n * n>>>\n\n# Use a for loop to iterate over a range from 0 to 4\nfor i in <<<range(5)>>>:\n print(i)",
"distractors": "\"Hello World\"\n\"Hello world!\"\n4\n6\n(1, 2, 3, 4, 5)\n{1, 2, 3, 4, 5}\nn ** 2\nn + n\nrange(4)\nrange(1, 5)",
"guidance": "1. The correct string for printing \"Hello, World!\" includes proper capitalization and punctuation.\n2. To assign 5 to x, we simply use '5'.\n3. A list in Python is created using square brackets [].\n4. The square of a number is calculated by multiplying it by itself (n * n).\n5. range(5) generates numbers from 0 to 4, which is what we want for a loop that iterates 5 times starting from 0.",
"showGuidanceAfterResponseOption": {
"type": "Attempts",
"passedFrom": 1
},
"maxAttemptsCount": 1,
"showExpectedAnswer": true,
"points": 20,
"arePartialPointsAllowed": false,
"useMaximumScore": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Fill in the Blanks"
},
{
"name": "Programming Language",
"value": "python"
},
{
"name": "Content",
"value": "python tests"
}
],
"files": [],
"opened": []
},
"bloomsObjectiveLevel": "1",
"learningObjectives": "python tests",
"tokens": {
"blank": [
"\"Hello, World!\"",
"5",
"[1, 2, 3, 4, 5]",
"n * n",
"range(5)"
],
"text": [
"# Print \"Hello, World!\"\nprint(",
0,
")\n\n# Assign the value 5 to variable x\nx = ",
0,
"\n\n# Create a list of numbers 1 through 5\nnumbers = ",
0,
"\n\n# Define a function that returns the square of a number\ndef square(n):\n return ",
0,
"\n\n# Use a for loop to iterate over a range from 0 to 4\nfor i in ",
0,
":\n print(i)"
],
"regexPositions": []
}
}
"type": "fill-in-the-blanks",
"taskId": "fill-in-the-blanks-3168852053",
"source": {
"name": "Python Basics",
"showName": true,
"instructions": "Fill in the blanks to complete the Python code snippets correctly.",
"showValues": true,
"text": "# Print \"Hello, World!\"\nprint(<<<\"Hello, World!\">>>)\n\n# Assign the value 5 to variable x\nx = <<<5>>>\n\n# Create a list of numbers 1 through 5\nnumbers = <<<[1, 2, 3, 4, 5]>>>\n\n# Define a function that returns the square of a number\ndef square(n):\n return <<<n * n>>>\n\n# Use a for loop to iterate over a range from 0 to 4\nfor i in <<<range(5)>>>:\n print(i)",
"distractors": "\"Hello World\"\n\"Hello world!\"\n4\n6\n(1, 2, 3, 4, 5)\n{1, 2, 3, 4, 5}\nn ** 2\nn + n\nrange(4)\nrange(1, 5)",
"guidance": "1. The correct string for printing \"Hello, World!\" includes proper capitalization and punctuation.\n2. To assign 5 to x, we simply use '5'.\n3. A list in Python is created using square brackets [].\n4. The square of a number is calculated by multiplying it by itself (n * n).\n5. range(5) generates numbers from 0 to 4, which is what we want for a loop that iterates 5 times starting from 0.",
"showGuidanceAfterResponseOption": {
"type": "Attempts",
"passedFrom": 1
},
"maxAttemptsCount": 1,
"showExpectedAnswerOption": {
"type": "WhenGradesReleased"
},
"points": 20,
"arePartialPointsAllowed": false,
"useMaximumScore": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Fill in the Blanks"
},
{
"name": "Programming Language",
"value": "python"
},
{
"name": "Content",
"value": "python tests"
},
{
"name": "CODIO_API_ID",
"value": "29b05e2f-0304-4914-bff7-a936c9a09f95"
},
{
"name": "CODIO_API_HASH",
"value": "da670dc1476a0035505505477c1ff34483d892e4"
}
],
"files": [],
"opened": []
},
"bloomsObjectiveLevel": "1",
"learningObjectives": "python tests",
"tokens": {
"blank": [
"\"Hello, World!\"",
"5",
"[1, 2, 3, 4, 5]",
"n * n",
"range(5)"
],
"text": [
"# Print \"Hello, World!\"\nprint(",
0,
")\n\n# Assign the value 5 to variable x\nx = ",
0,
"\n\n# Create a list of numbers 1 through 5\nnumbers = ",
0,
"\n\n# Define a function that returns the square of a number\ndef square(n):\n return ",
0,
"\n\n# Use a for loop to iterate over a range from 0 to 4\nfor i in ",
0,
":\n print(i)"
],
"regexPositions": []
}
}
}
134 changes: 72 additions & 62 deletions examples/project/.guides/assessments/multiple-choice-1081906419.json
Original file line number Diff line number Diff line change
@@ -1,64 +1,74 @@
{
"type": "multiple-choice",
"taskId": "multiple-choice-1081906419",
"source": {
"name": "Python Style Assessment",
"showName": true,
"instructions": "**Which of the following Python code snippets best adheres to PEP 8 style guidelines?**",
"multipleResponse": false,
"isRandomized": false,
"answers": [
{
"_id": "ae469b56-e6b0-fc46-64ea-dce960846d2c",
"correct": false,
"answer": "```python-hide-clipboard\ndef calculate_area(length,width):\n return length*width\n```"
},
{
"_id": "02bdb411-682d-ed2d-7aae-3e78d0769c56",
"correct": true,
"answer": "```python-hide-clipboard\ndef calculate_area(length, width):\n return length * width\n```"
},
{
"_id": "8101b5a1-2666-e4c5-0c89-1d3b8a0a7810",
"correct": false,
"answer": "```python-hide-clipboard\ndef calculateArea(length, width):\n return length * width\n```"
},
{
"_id": "a1c995a0-cf66-4fc1-e01c-e0223f185c28",
"correct": false,
"answer": "```python-hide-clipboard\ndef Calculate_Area(Length, Width):\n return Length * Width\n```"
}
],
"guidance": "The correct option follows PEP 8 guidelines:\n1. Use lowercase letters and underscores for function names (snake_case)\n2. Include spaces after commas in function parameters\n3. Use spaces around operators\n4. No spaces immediately inside parentheses\nThe other options violate one or more of these guidelines.",
"showGuidanceAfterResponseOption": {
"type": "Attempts",
"passedFrom": 1
},
"maxAttemptsCount": 1,
"showExpectedAnswer": true,
"points": 20,
"incorrectPoints": 0,
"arePartialPointsAllowed": false,
"useMaximumScore": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Multiple Choice"
},
{
"name": "Programming Language",
"value": "python"
},
{
"name": "Content",
"value": "python style"
}
],
"files": [],
"opened": []
},
"bloomsObjectiveLevel": "3",
"learningObjectives": "SWBAT identify Python code that adheres to PEP 8 style guidelines"
}
"type": "multiple-choice",
"taskId": "multiple-choice-1081906419",
"source": {
"name": "Python Style Assessment",
"showName": true,
"instructions": "**Which of the following Python code snippets best adheres to PEP 8 style guidelines?**",
"multipleResponse": false,
"isRandomized": false,
"answers": [
{
"_id": "ae469b56-e6b0-fc46-64ea-dce960846d2c",
"correct": false,
"answer": "```python-hide-clipboard\ndef calculate_area(length,width):\n return length*width\n```"
},
{
"_id": "02bdb411-682d-ed2d-7aae-3e78d0769c56",
"correct": true,
"answer": "```python-hide-clipboard\ndef calculate_area(length, width):\n return length * width\n```"
},
{
"_id": "8101b5a1-2666-e4c5-0c89-1d3b8a0a7810",
"correct": false,
"answer": "```python-hide-clipboard\ndef calculateArea(length, width):\n return length * width\n```"
},
{
"_id": "a1c995a0-cf66-4fc1-e01c-e0223f185c28",
"correct": false,
"answer": "```python-hide-clipboard\ndef Calculate_Area(Length, Width):\n return Length * Width\n```"
}
],
"guidance": "The correct option follows PEP 8 guidelines:\n1. Use lowercase letters and underscores for function names (snake_case)\n2. Include spaces after commas in function parameters\n3. Use spaces around operators\n4. No spaces immediately inside parentheses\nThe other options violate one or more of these guidelines.",
"showGuidanceAfterResponseOption": {
"type": "Attempts",
"passedFrom": 1
},
"maxAttemptsCount": 1,
"showExpectedAnswerOption": {
"type": "WhenGradesReleased"
},
"points": 20,
"incorrectPoints": 0,
"arePartialPointsAllowed": false,
"useMaximumScore": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Multiple Choice"
},
{
"name": "Programming Language",
"value": "python"
},
{
"name": "Content",
"value": "python style"
},
{
"name": "CODIO_API_ID",
"value": "488294eb-e2a8-487b-a055-17017e9e3f2f"
},
{
"name": "CODIO_API_HASH",
"value": "f22f511fa0ab1964b64314203d0806f79fea487e"
}
],
"files": [],
"opened": []
},
"bloomsObjectiveLevel": "3",
"learningObjectives": "SWBAT identify Python code that adheres to PEP 8 style guidelines"
}
}
Loading