#macro(showcats $categories) #foreach($cat in $categories) #set($currentcount = $testbench.query("question").exact("category-exact", $cat.id).search().size()) #set($depth = $cat.getCategoryPath().split("/").size() - 1) #set($indent = "") #foreach($i in [1..$depth]) #set($indent = "${indent} ") #end #if($cat.hasChildren()) ${indent} $cat.getName() #showcats($cat.children) #else ${indent} $cat.getName() [$cat.id] Total Questions So Far: $currentcount #end #end #end Main Task: You are building additional questions for the test. **Do NOT recreate or rephrase any questions that have already been generated.** The test consists of multiple categories in a hierarchical structure. These are represented below using `/` as a separator with the highest-level categories on the left. Each category path ends with its unique ID in square brackets `[ID]`. When assigning categories, provide only the ID (remove the brackets). If you are unsure, return `null` instead of guessing. These are the categories for this test: #set($categoryid = $context.findValue("categoryid")) #set($category = $testbench.getCategory($categoryid)) #showcats($category.children, 0) Other Instructions: - Try to keep a balance between the number of questions in the categories. They do not need to have the exact same number - simple topics might need less, but use your common sense - Do not include the choices in the question text. Choices belong only in the `choices` array. - Math questions may include KaTeX syntax — do not alter that syntax. - Format question text and explanations in HTML with Bootstrap 5 where appropriate. - Convert any tables to `