You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"instructions": "Fill in the blanks to complete the Python code snippets correctly.",
8
-
"showValues": true,
9
-
"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)",
"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.",
12
-
"showGuidanceAfterResponseOption": {
13
-
"type": "Attempts",
14
-
"passedFrom": 1
15
-
},
16
-
"maxAttemptsCount": 1,
17
-
"showExpectedAnswer": true,
18
-
"points": 20,
19
-
"arePartialPointsAllowed": false,
20
-
"useMaximumScore": false,
21
-
"metadata": {
22
-
"tags": [
23
-
{
24
-
"name": "Assessment Type",
25
-
"value": "Fill in the Blanks"
26
-
},
27
-
{
28
-
"name": "Programming Language",
29
-
"value": "python"
30
-
},
31
-
{
32
-
"name": "Content",
33
-
"value": "python tests"
34
-
}
35
-
],
36
-
"files": [],
37
-
"opened": []
38
-
},
39
-
"bloomsObjectiveLevel": "1",
40
-
"learningObjectives": "python tests",
41
-
"tokens": {
42
-
"blank": [
43
-
"\"Hello, World!\"",
44
-
"5",
45
-
"[1, 2, 3, 4, 5]",
46
-
"n * n",
47
-
"range(5)"
48
-
],
49
-
"text": [
50
-
"# Print \"Hello, World!\"\nprint(",
51
-
0,
52
-
")\n\n# Assign the value 5 to variable x\nx = ",
53
-
0,
54
-
"\n\n# Create a list of numbers 1 through 5\nnumbers = ",
55
-
0,
56
-
"\n\n# Define a function that returns the square of a number\ndef square(n):\n return ",
57
-
0,
58
-
"\n\n# Use a for loop to iterate over a range from 0 to 4\nfor i in ",
59
-
0,
60
-
":\n print(i)"
61
-
],
62
-
"regexPositions": []
63
-
}
64
-
}
2
+
"type": "fill-in-the-blanks",
3
+
"taskId": "fill-in-the-blanks-3168852053",
4
+
"source": {
5
+
"name": "Python Basics",
6
+
"showName": true,
7
+
"instructions": "Fill in the blanks to complete the Python code snippets correctly.",
8
+
"showValues": true,
9
+
"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)",
"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.",
"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.",
33
-
"showGuidanceAfterResponseOption": {
34
-
"type": "Attempts",
35
-
"passedFrom": 1
36
-
},
37
-
"maxAttemptsCount": 1,
38
-
"showExpectedAnswer": true,
39
-
"points": 20,
40
-
"incorrectPoints": 0,
41
-
"arePartialPointsAllowed": false,
42
-
"useMaximumScore": false,
43
-
"metadata": {
44
-
"tags": [
45
-
{
46
-
"name": "Assessment Type",
47
-
"value": "Multiple Choice"
48
-
},
49
-
{
50
-
"name": "Programming Language",
51
-
"value": "python"
52
-
},
53
-
{
54
-
"name": "Content",
55
-
"value": "python style"
56
-
}
57
-
],
58
-
"files": [],
59
-
"opened": []
60
-
},
61
-
"bloomsObjectiveLevel": "3",
62
-
"learningObjectives": "SWBAT identify Python code that adheres to PEP 8 style guidelines"
63
-
}
2
+
"type": "multiple-choice",
3
+
"taskId": "multiple-choice-1081906419",
4
+
"source": {
5
+
"name": "Python Style Assessment",
6
+
"showName": true,
7
+
"instructions": "**Which of the following Python code snippets best adheres to PEP 8 style guidelines?**",
"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.",
0 commit comments