{"id":5263,"date":"2023-02-10T14:22:27","date_gmt":"2023-02-10T05:22:27","guid":{"rendered":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/?p=5263"},"modified":"2023-02-22T15:42:42","modified_gmt":"2023-02-22T06:42:42","slug":"10-01-12-add-calculated-question","status":"publish","type":"post","link":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/2023\/02\/10\/10-01-12-add-calculated-question\/","title":{"rendered":"10-01-12.Add Calculated question"},"content":{"rendered":"<h4>For Calculated questions, you can use wildcards (eg. {x} , {y}) when taking the quiz to create numeric questions that are replaced with randomly generated numbers.<br \/>\nFor example, if you want to create a question with many \u201crectangular calculation areas,\u201d create a question with two wildcards (eg. {base}, {height}) and so can enter {base}*{height} in the input field of \u201cCorrect formula=.\u201d<\/h4>\n<p><span lang=\"EN-US\" style=\"font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #333333;\">A sample collection of this question type can be downloaded below.<\/span><\/p>\n<dl class=\"reference\">\n<dt><b><span lang=\"EN-US\" style=\"font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #5e7d7d;\">Refer to:<\/span><\/b><\/dt>\n<dd>\u21d2<a href=\"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/2023\/02\/10\/10-01-20-how-to-use-quiz-sample-questions-in-your-course\/\" target=\"_blank\" rel=\"noopener\">10-01-20.How to use quiz sample questions in your course<br \/>\n<\/a><\/dd>\n<\/dl>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2151\" src=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2019\/11\/\u7121\u984c-11.png\" alt=\"\" width=\"597\" height=\"259\" \/><\/p>\n<p><span lang=\"EN-US\" style=\"font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #333333;\">If no need to generate random numbers, use \u201cNumerical question.\u201d<\/span><\/p>\n<dl class=\"reference\">\n<dt><b><span lang=\"EN-US\" style=\"font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #5e7d7d;\">Refer to:<\/span><\/b><\/dt>\n<dd>\u21d2<a href=\"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/2023\/02\/10\/10-01-15-add-numerical-question\/\" target=\"_blank\" rel=\"noopener\">10-01-15.Add Numerical question<\/a><\/dd>\n<\/dl>\n<p>&nbsp;<\/p>\n<ol>\n<li>Choose [Calculated] and click [Add].<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2153\" src=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2019\/11\/\u7121\u984c-12.png\" alt=\"\" width=\"535\" height=\"157\" \/><\/li>\n<li>Select \u201cCategory.\u201d A list of all shared wildcards in this category will be displayed.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2156\" src=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2019\/11\/\u7121\u984c-13.png\" alt=\"\" width=\"703\" height=\"377\" \/><\/li>\n<li>Enter \u201cQuestion name\u201d and \u201cQuestion text.\u201d Enter \u201cDefault mark.\u201d<br \/>\n\u201cQuestion text\u201d must contain all the information for students to calculate and answer. Therefore, it must contain a single wildcard enclosed in curly brackets.<br \/>\nIn the example, since we are trying to find the answer for the area of the triangle, the question text is: ({x} and {y} are random variables).<br \/>\n\u201cFind the area of the triangle with base = {x} and height = {y}.\u201d<br \/>\n<a href=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2023\/01\/100112_01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7097 size-full\" src=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2023\/01\/100112_01.png\" alt=\"\" width=\"1106\" height=\"544\" \/><\/a><\/li>\n<li>In \u201cAnswer X formula,\u201d enter the correct formula.\n<dl class=\"reference\">\n<dt><b><span lang=\"EN-US\" style=\"font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #5e7d7d;\">Refer to:<\/span><\/b><\/dt>\n<dd>\u21d2<a href=\"https:\/\/docs.moodle.org\/37\/en\/Calculated_question_type#Correct_answer_formula_syntax\" target=\"_blank\" rel=\"noopener\">Moodle Docs\u201cCorrect answer formula syntax\u201d<\/a><\/dd>\n<\/dl>\n<p>For \u201cGrade,\u201d select the grade to be given to students when answering this question. This grade is a percentage of the total points available. For example, you can give 100% to correct answer and 50% to almost correct. One of the answers must be 100%.<br \/>\nIn \u201cTolerance,\u201d specify the error tolerance. The tolerance and the tolerance type, both settings can determine the range of grades to accept. For example, if tolerance = t, correct = x, and the difference between user and correct = dx, the tolerance type is :<br \/>\n\u30fbNominal scale &#8211; if dx &lt;= t, it is considered to be correct.<br \/>\n\u30fbRelative frequency \u2013 if dx \/ x &lt;= t, it is considered to be correct.<br \/>\n\u30fbGeometric mean &#8211; dx\u00b2 \/ x\u00b2 &lt;= t\u00b2, the answer is considered to be correct.<br \/>\nIn \u201cAnswer display\u201d and \u201cFormat\u201d will determine the accuracy of the answer. Use these settings to select decimal point and significant digits.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2162\" src=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2019\/11\/\u7121\u984c-16.png\" alt=\"\" width=\"947\" height=\"485\" \/><\/li>\n<li>Also you can specify \u201cUnit.\u201d<br \/>\nPlease see below for details.<\/p>\n<dl class=\"reference\">\n<dt><b><span lang=\"EN-US\" style=\"font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #5e7d7d;\">Refer to:<\/span><\/b><\/dt>\n<dd>\u21d2<a href=\"https:\/\/docs.moodle.org\/37\/en\/Calculated_question_type\" target=\"_blank\" rel=\"noopener\">Moodle Docs\u201cCalculated question type\u201d<\/a><\/dd>\n<\/dl>\n<\/li>\n<li>Click [Save changes].<\/li>\n<li>Wildcard<br \/>\nFor the wildcards specified in the answer formula, you need to create a series of values. These values are called \u201cDataset.\u201d<br \/>\nDataset used by each wildcard is as follows:<br \/>\n\u30fbPrivate Example) used only in this quiz<br \/>\n\u30fbShared Example) shared with calculated questions in the same categoryClick [Next page] after specified.<br \/>\n<a href=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2023\/01\/100112_02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7099 size-full\" src=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2023\/01\/100112_02.png\" alt=\"\" width=\"866\" height=\"508\" \/><\/a><\/li>\n<li>Set the range of wild card value.<br \/>\nIn this example, it is used with following range: &lt;= {x} &lt;= 10\u30015 &lt;= {y} &lt;= 15<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2168\" src=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2019\/11\/\u7121\u984c-19.png\" alt=\"\" width=\"883\" height=\"643\" \/><\/li>\n<li>After completing settings of wildcards value, click \u201cAdd item.\u201d<br \/>\nA set of wildcards will be displayed at the bottom of the page. If there is no problem, click [Save changes].<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2169\" src=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2019\/11\/\u7121\u984c-20.png\" alt=\"\" width=\"973\" height=\"585\" \/><\/li>\n<li>The question will be added.<br \/>\n<a href=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2023\/01\/100112_03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7100 size-full\" src=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2023\/01\/100112_03.png\" alt=\"\" width=\"774\" height=\"112\" \/><\/a><\/li>\n<li>Check the question on the preview display.<br \/>\n<a href=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2023\/01\/100112_04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7101 size-full\" src=\"https:\/\/wnpspt.waseda.jp\/teacher\/wsdmoodle\/wp-content\/uploads\/sites\/12\/2023\/01\/100112_04.png\" alt=\"\" width=\"739\" height=\"144\" \/><\/a><\/li>\n<\/ol>\n<!-- Anyway Feedback Container \/\/-->\n<div class=\"afb_container\" id=\"afb-container-post-5263\"><div style=\"margin:0 auto;background-color:linen;width:80%;padding:20px;border:1px solid #ccc;border-radius: 10px;\">\r\n<center>\r\n<span class=\"message\"><B>Did it help you?<\/B><\/span>\r\n<br><br><a class=\"good\" href=\"#afb-post-5263\"><i class=\"fa fa-thumbs-o-up\" aria-hidden=\"true\"><\/i>Good<\/a>\u3000\u3000<a class=\"bad\" href=\"#afb-post-5263\"><i class=\"fa fa-thumbs-o-down\" aria-hidden=\"true\"><\/i>No good<\/a>\r\n<br><br><span class=\"status\">0 out of 0 people said that this help was helpful.<\/span>\r\n<\/center>\r\n<\/div><input type=\"hidden\" name=\"post_type\" value=\"post\" \/>\n<input type=\"hidden\" name=\"object_id\" value=\"5263\" \/>\n<\/div>\n<!-- \/\/Anyway Feedback Container -->","protected":false},"excerpt":{"rendered":"<p>For Calculated questions, you can use wildcards (eg. {x} , {y}) when taking the quiz to create numeric questio [&hellip;]<\/p>\n","protected":false},"author":50,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[15],"tags":[],"class_list":["post-5263","post","type-post","status-publish","format-standard","hentry","category-chapter10"],"modified_by":"enakamura","_links":{"self":[{"href":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/wp-json\/wp\/v2\/posts\/5263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/wp-json\/wp\/v2\/comments?post=5263"}],"version-history":[{"count":3,"href":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/wp-json\/wp\/v2\/posts\/5263\/revisions"}],"predecessor-version":[{"id":5713,"href":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/wp-json\/wp\/v2\/posts\/5263\/revisions\/5713"}],"wp:attachment":[{"href":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/wp-json\/wp\/v2\/media?parent=5263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/wp-json\/wp\/v2\/categories?post=5263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wnpspt.waseda.jp\/teacher_en\/wsdmoodle\/wp-json\/wp\/v2\/tags?post=5263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}