GET /api/questions/114931/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"url": "https://numbas.mathcentre.ac.uk/api/questions/114931/?format=api",
"name": "Get the first item in a list",
"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/114931/get-the-first-item-in-a-list/?format=api",
"preview": "https://numbas.mathcentre.ac.uk/question/114931/get-the-first-item-in-a-list/preview/?format=api",
"download": "https://numbas.mathcentre.ac.uk/question/114931/get-the-first-item-in-a-list.zip?format=api",
"source": "https://numbas.mathcentre.ac.uk/question/114931/get-the-first-item-in-a-list.exam?format=api",
"metadata": {
"description": "<p>Given a randomly-generated list, the student must write code to return its first value.</p>\n<p>There's an alternative to check if they get the second item, which they might do if they don't realise Python lists are zero-indexed.</p>",
"licence": "Creative Commons Attribution 4.0 International"
},
"status": "ok",
"resources": []
}