{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"mmlu","formal_name":"MMLU","introduction":"MMLU asks four-way multiple-choice questions across 57 subjects, from elementary material to professional-level examinations. Since 2020 it has been the most widely cited single reference point for general capability.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://github.com/hendrycks/test","indexing_mode":"index","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[],"history":"","construction":"","limitations":"","saturation":"","scores":[]}},"task_id":"e7480fab-0159-51a3-8741-4d8481aaa39f","task_key":"all--test--e7480fab-0159-51a3-8741-4d8481aaa39f","task_revision_id":"1","upstream_id":"","short_description":"The following procedure is intended to return the number of times the value val…","config":"all","split":"test","body":"{\"choices\":\"['Changing line 6 to IF(item = count)', 'Changing line 6 to IF(myList[item] = val)', 'Moving the statement in line 5 so that it appears between lines 2 and 3', 'Moving the statement in line 11 so that it appears between lines 9 and 10']\",\"question\":\"The following procedure is intended to return the number of times the value val appears in the list myList. The procedure does not work as intended.\\n Line 1: PROCEDURE countNumOccurences(myList, val)\\n Line 2: {\\n Line 3: FOR EACH item IN myList\\n Line 4: {\\n Line 5: count 0\\n Line 6: IF(item = val)\\n Line 7: {\\n Line 8: count count + 1\\n Line 9: }\\n Line 10: }\\n Line 11: RETURN(count)\\n Line 12:}\\n Which of the following changes can be made so that the procedure will work as intended?\",\"subject\":\"high_school_computer_science\"}","display_format":"text","language":"","answer_status":"published","assets":[],"source_url":"https://github.com/hendrycks/test","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}