Docs home

Get Exercise Details

Returns an exercise ready to be attempted: its settings, parts and questions. Put the exercise ID in the URL. A student app calls this to show the test, then submits answers with "Push Attempted Exercise Payload".

GET/exercises/{ResourceId}/attempt
Get Exercise Details
curl --request GET \
  --url 'https://<your-api-host>/nuSource/api/v1/exercises/{ResourceId}/attempt?class_id=<ClassId>'
{
    "code": 200,
    "message": "Success",
    "exercise": {
        "exercise_id": 4199,
        "parent_type": "exercise",
        "test_id": 7847,
        "section_id": 5688,
        "exercise_name": "EXE",
        "test_name": "EXE",
        "parent_instruction": "<p><br></p>\n",
        "instructions": null,
        "creator_id": 3846680,
        "test_parts": [
            {
                "test_part_id": 10422,
                "test_part_name": "Part A",
                "instructions": "",
                "display_index": null,
                "sound_asset": "",
                "sound_play_times": -1,
                "video_asset": "0",
                "text_image_asset": "",
                "randomize": 1,
                "randomize_options": 0,
                "sound_url": null,
                "questions": [
                    {
                        "question_id": 1047064,
                        "question_list_id": 7336,
                        "question_JSON": "[\"\\n\"]",
                        "input_JSON": "[{\"input_type\":0,\"question_string\":\"<p>Two circles are placed in an equilateral triangle as shown in the figure. What is the ratio of the area of the smaller circle to that of the equilateral triangle?<br><img src=\\\"https:\\/\\/dme2wmiz2suov.cloudfront.net\\/User(3846680)\\/question\\/image\\/2004221-QB-7336_Q1047064-ques?Expires=1721068722&amp;Signature=zEXCiFGbDY1~raT9Qr34MWR10-KrOCbTodItN21eJhdgsxVEy0hiRoWYuUNv3t5OLgv8n0n~9R6nC~IknoPOD3LbFLeGwmAf-yHZ-GhEdS2ROp6lg3CG4GnVZRhN3OzSOkhW9EaPG22BJBKZJjXsWpuFHg3HfGLzODGVZR6LMIX-Sv6cab5CNgtNqkJ9MheBijblegyj~2tFUoQr~ArJ77EHtAHbHfZmshwRJzU3zh1npHftcUj~PubvENI32xrhAUE0i0AAxrXA0byLQFs4DQV54ysnl7KCLsoi1e31n7KzrLih6QNbUc8kVNzBCcwDW9lTfPXD00Lxo0JQWdasXw__&amp;Key-Pair-Id=APKAIIFZDCEANAVU2VTA\\\" name=\\\"Picture 1\\\" width=\\\"183\\\" height=\\\"181\\\"><\\/p>\\n\",\"options\":[{\"index\":0,\"option_string\":\"<sub> <\\/sub><img src=\\\"https:\\/\\/dme2wmiz2suov.cloudfront.net\\/User(3846680)\\/question\\/image\\/2004222-QB-7336_Q1047064-opt_0?Expires=1721068722&amp;Signature=fCne5yNRJc8-Bo2QgRZYJteHiePpjNzi2~YFJQZbA7Y~vQiU2WACxnyIHai1UVojnaAgumIa8PkLRSTMQC61zHC9yiTbcTJS6JunDwuX195JKWqFNHPcK1JGAkRodgV3SeXN~8kTrx6uOiUmhWW2m90vLOjD-pwSp1ODs4DheIlidkuUqC9bK5Hr0gGmg1l~fU5R683OdjOs6K3v4dBoG3cBmStxlNi~ON1g5nafWP6xkuCZZpu~2JcBlzSp3k3Py4lCDJ8Op9PgGTFA~pghcV-M9wqCyrFVU1Ujh~Tv8OWmqkGuS3vzuXnLeF7LYzCjfmWysSiF4SjDJA3aZ5AxSA__&amp;Key-Pair-Id=APKAIIFZDCEANAVU2VTA\\\">\\n\"},{\"index\":1,\"option_string\":\"<sub> <\\/sub><img src=\\\"https:\\/\\/dme2wmiz2suov.cloudfront.net\\/User(3846680)\\/question\\/image\\/2004223-QB-7336_Q1047064-opt_1?Expires=1721068722&amp;Signature=DdJOLQOUcwHFtvj2npg~FbG5WMcm3evhPIpfAKwQTH7bZBQWp4rWfiyaQwyxb2VLm3d2wLoTcr6CSlDgIl689VJMkuC6sZcu56P~7PnvdrdbMYjaJNhvBNZJfztdtUi~otOPzXytirClp6hdKAazuirM8aIa76S37o0EkJMaCI3wMgQaO0Ds7lopr2Plma1Fzgk0bi1QVMr0q2gWwHD2yDI0htXSOowQG8MLZXKIYva8bm2KY0nAqZ~2r~i2EYhkg4GyWz82SQ5KNg~SYlfeQQPmEKOBZJvcrrS7DGJYpmqVo-jz0O8I9XxY-kSodUZ4RItrrW6~bLw3xvKtJ8T0ug__&amp;Key-Pair-Id=APKAIIFZDCEANAVU2VTA\\\">\\n\"},{\"index\":2,\"option_string\":\"<sub> <\\/sub><img src=\\\"https:\\/\\/dme2wmiz2suov.cloudfront.net\\/User(3846680)\\/question\\/image\\/2004224-QB-7336_Q1047064-opt_2?Expires=1721068722&amp;Signature=PcjNuM2yNeRQGBCuHknRfI3w2Vi35281qetvBoqwqI6U6uPet-uYa6kLUoZiXmhTdW2hjG3orh8uzOV1VU-1T1rEC60mvzBENTI6YHmE8Za-FEaEY2KlOHOXx9GT7~33U-Qvy9yprbO992PJctJcI1VVXoZazvWNMQenVmoyAu2sMFrqdIda617CLVo6hr51TcSf9EHHkalSefV53vsd-Bkx~AxjARd3Le3NK7DtzAGRjGq8zWTAE8JLv~~B7hCGmGzJGqK8sZt1YuHKUwnSYEZn6mOnji8lPJZDXZwaKtdgoRqQEvRf8gW8f4Pws3rEw5p-9pkalLLXqrlp1nB27Q__&amp;Key-Pair-Id=APKAIIFZDCEANAVU2VTA\\\">\\n\"},{\"index\":3,\"option_string\":\"<sub> <\\/sub><img src=\\\"https:\\/\\/dme2wmiz2suov.cloudfront.net\\/User(3846680)\\/question\\/image\\/2004225-QB-7336_Q1047064-opt_3?Expires=1721068722&amp;Signature=kQHo4u4cdJZlyTfBSsw-AzTxwmTc0mKTI2C2IjIjG3e8wxeZj0OfoYsobKg1n07MKU2J7e8gYG6tsqi1DvcCimGCEzgFSnOxNRwGSekrp9s2egUtv0gk5V-KGr0b5Q3-VvMCmGjJwA5Oxw209Xu6G17TzROu-A5VXBV0b5B1oO4byixRRdpwIECin01629nFhSOq1l7MXxgH8oZcyL2Q9h6YnF4tI~QaKv-XreJBr~PsIxRTOk5VvHMYzgTMc4saAkE98MzdvDo2FRk4Ehx-sNE3jPpAlfEzTfPZbU5uKCgH-wrUplkItHbQRJO2VWTdEtQdjoej4r08BtiPxQ~6tA__&amp;Key-Pair-Id=APKAIIFZDCEANAVU2VTA\\\">\\n\"}],\"marks\":3,\"neg_mark\":-1}]",
                        "question_number": -1,
                        "sound_asset": null,
                        "sound_play_times": -1,
                        "video_asset": null,
                        "text_image_asset": null,
                        "question_index": 1
                    },
                    {
                        "question_id": 1461491,
                        "question_list_id": 7336,
                        "question_JSON": "[\"\\n\"]",
                        "input_JSON": "[{\"input_type\":6,\"question_string\":\"<p>true\\/false<\\/p>\\n\",\"options\":[{\"index\":2,\"option_string\":\"<p>true<\\/p>\\n\"},{\"index\":3,\"option_string\":\"<p>false<\\/p>\\n\",\"is_correct\":false}],\"marks\":1,\"neg_mark\":0,\"hint\":\"\",\"opposite_marking\":0}]",
                        "question_number": -1,
                        "sound_asset": null,
                        "sound_play_times": -1,
                        "video_asset": null,
                        "text_image_asset": null,
                        "question_index": 2
                    },
                    {
                        "question_id": 179153,
                        "question_list_id": 7336,
                        "question_JSON": "[\"\\n\"]",
                        "input_JSON": "[{\"input_type\":2,\"question_string\":\"<p>When $a \\\\ne 0$, there are two solutions to \\\\(ax^2 + bx + c = 0\\\\) and they are<\\/p><p>$$x = {-b \\\\pm \\\\sqrt{b^2-4ac} \\\\over 2a}.$$<\\/p>\\n\",\"options\":[[]],\"marks\":2,\"neg_mark\":0,\"hint\":\"\",\"opposite_marking\":0,\"difficulty\":2,\"engage_topic_tag_id\":1816}]",
                        "question_number": -1,
                        "sound_asset": null,
                        "sound_play_times": -1,
                        "video_asset": null,
                        "text_image_asset": null,
                        "question_index": 3
                    },
                    {
                        "question_id": 1461488,
                        "question_list_id": 7336,
                        "question_JSON": "[\"\\n\"]",
                        "input_JSON": "[{\"input_type\":2,\"question_string\":\"<p>fill in the blanks<\\/p>\\n\",\"options\":[[]],\"marks\":1,\"neg_mark\":0,\"hint\":\"\",\"opposite_marking\":0}]",
                        "question_number": -1,
                        "sound_asset": null,
                        "sound_play_times": -1,
                        "video_asset": null,
                        "text_image_asset": null,
                        "question_index": 4
                    },
                    {
                        "question_id": 1443328,
                        "question_list_id": 7336,
                        "question_JSON": "[\"\\n\"]",
                        "input_JSON": "[{\"input_type\":0,\"question_string\":\"<p>If the points (0, 1, 2), (2, &ndash;1, 3) and (1, &ndash;3, 1) are the vertices of a triangle, then the triangle is<\\/p>\\n\",\"options\":[{\"index\":0,\"option_string\":\"<p>Right angled<\\/p>\\n\"},{\"index\":1,\"option_string\":\"<p>Isosceles right angled<\\/p>\\n\"},{\"index\":2,\"option_string\":\"<p>Equilateral<\\/p>\\n\"},{\"index\":3,\"option_string\":\"<p>None of these<\\/p>\\n\"}],\"marks\":1,\"neg_mark\":-1,\"hint\":\"<p>This is hint<\\/p>\\n\"}]",
                        "question_number": -1,
                        "sound_asset": null,
                        "sound_play_times": -1,
                        "video_asset": null,
                        "text_image_asset": null,
                        "question_index": 5
                    },
                    {
                        "question_id": 1047058,
                        "question_list_id": 7336,
                        "question_JSON": "[\"\\n\"]",
                        "input_JSON": "[{\"input_type\":0,\"question_string\":\"<p>Two circles are placed in an equilateral triangle as shown in the figure. What is the ratio of the area of the smaller circle to that of the equilateral triangle?<br><img src=\\\"https:\\/\\/dme2wmiz2suov.cloudfront.net\\/User(3846680)\\/question\\/image\\/2004139-QB-7336_Q1047058-ques?Expires=1721068722&amp;Signature=F5ZKJLF74rhPMBPdc9gkdH4w1ZGtvBqGIjU5WzYj0tnFGudBRbQG563rcGsnwI6qLcCxOdmfu4nnY8~BtvYyA3patRp06Xf3F6WvFMpaFKFRyqnFnF4rdr~vi1uh5szm6QB8aYHxNH4OdDHG1XelK5TNM0JwZkKHAj2Xudg26k6w3ykPFmcwfivKUa1jiFF~V823~Vt7hM4S1vqNyyMp8lHa86WZ6Y3kZfwRxcPkjFAZmuRJWAlarYoQ4L4YJzW2Ji4s9YkOp3fx-h2B2wfgp2j5TyynDyGztCX~qBSfcqgE6wMCOBbKpYkm80EywK8rek18dxgV~xQsXXlCXN5fuA__&amp;Key-Pair-Id=APKAIIFZDCEANAVU2VTA\\\" name=\\\"Picture 1\\\" width=\\\"183\\\" height=\\\"181\\\"><\\/p>\\n\",\"options\":[{\"index\":0,\"option_string\":\"<sub> <\\/sub><img src=\\\"https:\\/\\/dme2wmiz2suov.cloudfront.net\\/User(3846680)\\/question\\/image\\/2004140-QB-7336_Q1047058-opt_0?Expires=1721068722&amp;Signature=ow0HcHiNByRlCZyMN120nf~zetZbwzM65dFQqk0p3X3aCZq3xU2-HIAbw9aCRNn8V-esJdJriDtA~JpwpVCu6BuNyuZrgl2XFZ1ViZLBjii2sGBlOUQBpZ30dxyIBoXUrWERiHqBiEf0Gc1XvwfD0dEXwc0JOzdSy-b6n6uxBMAdbRij7vPi2rC8rP26qYNxESj~LlEtX4lB06eG6E3dQOMB3-foGp0eMjj1KaXb3BYgUoEHVQUF5UvRIEPqzYoU2eR9JjYpDRptnqvD7lg8QUv2KXLYZUaEh473Y1HxsaV1tGO03S8i2oEwo0Cuuwvk6WLNJemSuyvX7lje4R5OqA__&amp;Key-Pair-Id=APKAIIFZDCEANAVU2VTA\\\">\\n\"},{\"index\":1,\"option_string\":\"<sub> <\\/sub><img src=\\\"https:\\/\\/dme2wmiz2suov.cloudfront.net\\/User(3846680)\\/question\\/image\\/2004141-QB-7336_Q1047058-opt_1?Expires=1721068722&amp;Signature=iSo4pL845kjmZjCjI7RqL~gkLe-IWaGrU0uEW0OSSJVMNJoeEBSGvr6CxHXxsb5s9xmtFRqrLbAsoAKAxOzayFItq8N9V1OekWoeNvMG7NZGv23s9GKQ9YHQ1GsBZ2-SvBf1I~~H4SmNsISJgjCGg9SknMiKFIh89rPrbbR04OorZNRkAiKw7Xfjf5V4tiPs2TJp-Fz1ci1QsvHw0e9XAN85PX9g81eqGRd6jY~xHbBgHuFOjS3oHJb0LEcghw48OO~PPZHgzTfzsOZH05dj6wO2CsZBrh4fab1QKDQnZKDSHGNM3ZcuBqiK8p6wIKLXWEOjidDoH71uMYXTmzNjsA__&amp;Key-Pair-Id=APKAIIFZDCEANAVU2VTA\\\">\\n\"},{\"index\":2,\"option_string\":\"<sub> <\\/sub><img src=\\\"https:\\/\\/dme2wmiz2suov.cloudfront.net\\/User(3846680)\\/question\\/image\\/2004142-QB-7336_Q1047058-opt_2?Expires=1721068722&amp;Signature=bcZ9gkCfufi8MnmFPcHS-tiECEXrODsgXZinn-fyiZJUbFN-urwetLLq4-dGm9YUBJ9i~S771a3JGzC-E9oABogevLmimjSLJ8qn1KphXaLoTzejNtOX419tJlRlgVIIVMzNAJ4EXnvZgb2I-iIIm9tv1CKxInTmvOBdxM3F9Yt9egY2QmOVjuG4r-C3Lo9MnwbKzp5qyPiPEOxYJ4cCC5dYxnisu9JVnDf5hjTdsB-BTWFBxaex3Qiqsl~nPNiliAKdQ3wyBMipFwaMup~OWgujU62lef8XWg5m37g~Y8FkY8Kjrh6~lu1t44EX0jo2RyPwQgj6fvJRZTpHu3z15g__&amp;Key-Pair-Id=APKAIIFZDCEANAVU2VTA\\\">\\n\"},{\"index\":3,\"option_string\":\"<sub> <\\/sub><img src=\\\"https:\\/\\/dme2wmiz2suov.cloudfront.net\\/User(3846680)\\/question\\/image\\/2004143-QB-7336_Q1047058-opt_3?Expires=1721068722&amp;Signature=oBTDt8-YINHOHTggGZX--~A-pgvRH2WGrcY9nPBzmBwKmMvof4j9N0PnQDi~h3RyXsewsgzgi8-Vehfh6W9FIctIZqPJIQbrkjUNsZwu~us9-hSpzrlgWTeFVMAybzenA3CoQPC-Rg-J4AFySVQgGLQkPgVhelg4xZgxQ9OF9M4T9PaSlFIvSuV6T3X3y631gMuGCwwmRYk9Jc72GRmSbMzj6Pn7aXn82f4rid7gOl0gFQ57Pc47i3uu4SaAjzm5Uzp-NTXgq7tnJVIAej0y-3WRduJNRPNLfAmHViI1XFu-VfllLJ0aRYSeJZj1xOSgEkvsh3hDUO4pWyZ4DuCQjA__&amp;Key-Pair-Id=APKAIIFZDCEANAVU2VTA\\\">\\n\"}],\"marks\":3,\"neg_mark\":-1}]",
                        "question_number": -1,
                        "sound_asset": null,
                        "sound_play_times": -1,
                        "video_asset": null,
                        "text_image_asset": null,
                        "question_index": 6
                    },
                    {
                        "question_id": 586759,
                        "question_list_id": 7336,
                        "question_JSON": "[\"\\n\"]",
                        "input_JSON": "[{\"input_type\":5,\"question_string\":\"<p>REQNNMFAE,MSD,NMA<\\/p>\\n\",\"options\":[[]],\"marks\":1,\"neg_mark\":0,\"hint\":\"\",\"opposite_marking\":0}]",
                        "question_number": -1,
                        "sound_asset": null,
                        "sound_play_times": -1,
                        "video_asset": null,
                        "text_image_asset": null,
                        "question_index": 7
                    },
                    {
                        "question_id": 1656750,
                        "question_list_id": 7336,
                        "question_JSON": "[\"\\n\"]",
                        "input_JSON": "[{\"input_type\":0,\"question_string\":\"<p class=\\\"p1\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\";'>$$<\\/p><p class=\\\"p1\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\";'>\\\\frac{1}{2} \\\\log _{2}(x-1)=\\\\log _{2}(x-3)<\\/p><p class=\\\"p1\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\";'>$$<\\/p><p class=\\\"p2\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\"; min-height: 12px;'><br><\\/p><p class=\\\"p1\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\";'>$x-1=(x-3)^{2}$<\\/p><p class=\\\"p2\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\"; min-height: 12px;'><br><\\/p><p class=\\\"p1\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\";'>$x^{2}-6 x+9=x-1$<\\/p><p class=\\\"p2\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\"; min-height: 12px;'><br><\\/p><p class=\\\"p1\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\";'>$x^{2}-7 x+10=0$<\\/p><p class=\\\"p2\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\"; min-height: 12px;'><br><\\/p><p class=\\\"p1\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\";'>$x=2,5$<\\/p><p class=\\\"p2\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\"; min-height: 12px;'><br><\\/p><p class=\\\"p1\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\";'>$\\\\mathrm{X}=2$<\\/p><p class=\\\"p2\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\"; min-height: 12px;'><br><\\/p><p class=\\\"p1\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\";'>Not possible as $\\\\log _{2}(\\\\mathrm{x}-3)$ is not defined<\\/p><p class=\\\"p2\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\"; min-height: 12px;'><br><\\/p><p class=\\\"p1\\\" style='margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-stretch: normal; font-size: 10px; line-height: normal; font-family: \\\"Helvetica Neue\\\";'>$\\\\Rightarrow$ No. of solution $=1$<\\/p>\\n\",\"options\":[{\"index\":4,\"option_string\":\"<p>d<\\/p>\\n\"},{\"index\":5,\"option_string\":\"<p>d<\\/p>\\n\"}],\"marks\":1,\"neg_mark\":0,\"hint\":\"\",\"opposite_marking\":0,\"difficulty\":2,\"engage_topic_tag_id\":1816}]",
                        "question_number": -1,
                        "sound_asset": null,
                        "sound_play_times": -1,
            

Access: Admins; tutors who contribute to the exercise's course; students who have access to the exercise.

Path parameters
exercise_idintegerrequired
The exercise.
Query parameters
class_idinteger
The class (subject batch) the student is attempting it in. Used for attempt limits and eligibility checks.
attempt_idinteger
An attempt already started but not submitted; returns the same question set for it.
1 includes each question's answer (answer_JSON). Always on when practice mode is enabled for the exercise.

Response: exercise with exercise_id, test_id, section_id, exercise_name/test_name, instructions, parent_instruction, test_time, passing_mark, badge settings (perfectionist, hardworker, speedrun, speedrun_time_sec), force_finish, user_attempts, user_highest_mark, user_best_time, is_parts_locked, is_parts_timed, show_calculator, skip_declaration, is_practice_mode_enabled, reference-sheet fields, and test_parts. Each part has test_part_id, test_part_name, instructions, randomize, and questions, each with question_id, question_list_id, question_JSON, input_JSON (question text and options, as a JSON string) and media assets. Questions may be shuffled.

Notes: Errors: "Max test attempts over" when the attempt limit is reached; "This resource is not yet published by the tutor" for students on unpublished exercises; "No questions added in test" for an empty test; a practice-mode error if the student isn't on the new learner dashboard. Rate limit: 30 requests per minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI