GET /api/questions/114938/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"url": "https://numbas.mathcentre.ac.uk/api/questions/114938/?format=api",
"name": "Exploration activity: Define a class, add methods to it, then use it",
"published": true,
"project": "https://numbas.mathcentre.ac.uk/api/projects/698/?format=api",
"author": {
"url": "https://numbas.mathcentre.ac.uk/api/users/7/?format=api",
"profile": "https://numbas.mathcentre.ac.uk/accounts/profile/7/?format=api",
"full_name": "Christian Lawson-Perfect",
"pk": 7,
"avatar": {
"20x20": "https://numbas.mathcentre.ac.uk/media/avatars/clp-2023_OVPD4En.20x20.jpg",
"40x40": "https://numbas.mathcentre.ac.uk/media/avatars/clp-2023_OVPD4En.40x40.jpg",
"150x150": "https://numbas.mathcentre.ac.uk/media/avatars/clp-2023_OVPD4En.150x150.jpg"
}
},
"edit": "https://numbas.mathcentre.ac.uk/question/114938/exploration-activity-define-a-class-add-methods-to/?format=api",
"preview": "https://numbas.mathcentre.ac.uk/question/114938/exploration-activity-define-a-class-add-methods-to/preview/?format=api",
"download": "https://numbas.mathcentre.ac.uk/question/114938/exploration-activity-define-a-class-add-methods-to.zip?format=api",
"source": "https://numbas.mathcentre.ac.uk/question/114938/exploration-activity-define-a-class-add-methods-to.exam?format=api",
"metadata": {
"description": "<p>In four parts, the student builds up the definition of a class representing a rectangle. First they write the constructor, then add methods to compute area and perimeter.</p>\n<p>In the final part, they must use the methods to write a function which determines if a rectangle's area is larger than its perimeter.</p>",
"licence": "Creative Commons Attribution 4.0 International"
},
"status": null,
"resources": []
}