# Get curly brackets as text in a Fill in the Blank

XMLWordPrintable

#### Details

• Type: Bug
• Status: In Progress
• Priority: Major
• Resolution: Unresolved
• Affects Version/s: 10.2, 11.0, 19.4, 20.0, 21.0 [Tentative]
• Fix Version/s: None
• Component/s:
• Labels:
• 11 status:
• 10 status:
• Previous Issue Keys:
SAM-2419
• Test Plan:
Hide

Note: Multiple types of FITB question with different scoring options should be tested with custom delimiters - including multiple correct answers to the same blank, mutually exclusive multiple blanks, case sensitive, ignore spaces. You can also import and edit this attached quiz: FITB-customdelimitersandcurlybraces.zip, which includes questions with a variety of settings, for testing the student takes (starting at step 12); however, it is important to create at least one new quiz with the parameters described below to confirm that authoring works as expected.

1. IMPORTANT: BEFORE the code is put in place, as instructor, go to your site with Tests & Quizzes and at least one student. This is to confirm that no regression (NPE) is introduced in old assessments that lack the metadata necessary to specify answer markers.
2. Create an assessment with a fill in the blank question. In the Settings, enable Feedback on submission, select all the feedback options, and Save Settings and Publish.
3. AFTER the code is put in place, log in as a student and make sure you can successfully take and submit the assessment that was created before this code was implemented, and the scoring is accurate.
4. As instructor, in a site with at least one student and Tests & Quizzes, go to Site Info > Edit Site Information and enable LaTeX, then go to Manage Tools and select to enable LaTeX for Tests & Quizzes.
5. Create a quiz and add a fill in the blank question that will include at least two answer blanks.
6. On the authoring page, confirm that the instructions make sense and the labels are in the correct places (i.e., Question Text is over the CKEditor box, not the instructions, and there is a proper label on the form field to insert Custom Markers for the Fill in the Blank Field Markers).
7. Specify new delimiters, e.g., (), but author your question using default (curly bracket) delimiters. Confirm that on attempting to save, you get a meaningful error message that allows you to fix the mistake.
8. Specify disallowed characters as delimiters, e.g., .", and include them in the appropriate places in your question text to specify the answers. Confirm that on attempting to save, you get a meaningful error message that allows you to fix the mistake.
9. Specify the same character for each delimiter, e.g., ((, and include it in the appropriate places in your question text to specify answers. Confirm that on attempting to save, you get a meaningful error message that allows you to fix the mistake.
10. Specify custom delimiters and use them correctly. Confirm that:
• After moving focus out of the field where you typed the markers, the instructions update correctly to indicate which markers should be used.
• The question saves, and you are returned to the Questions screen with the question displayed correctly (i.e., there should be ___ instead of the delimiters within the question text, and the answer key should show the appropriate answers).
11. Add another question where you specify a custom delimiter that will not be included in a LaTeX expression you use, and make the answer text a LaTeX expression, e.g., the following:
$$x=\frac{1+y}{1+2z^2}$$


On save, make sure the question displays correctly (with ___ in place of the delimiters in the question text, and answer key with the LaTeX expression).

12. Add another question with default curly bracket delimiters.
13. Preview the quiz and confirm that each question looks correct in the preview (i.e., text fields within the question text in place of the answer delimiters).
14. Go to Settings. Make it unlimited submissions (for ease of testing), then open Grading and Feedback. Enable Feedback on Submission and select all the options (so you can check that feedback display is correct, as well as display on Statistics screen from the student perspective), then Save Settings and Publish.
15. Take the quiz as a student. Make sure that each question looks correct (i.e., text fields are in the appropriate places within the question text) and answer each question correctly.
16. Take the quiz again, answering questions with some blanks correct, some incorrect.
17. Check Feedback and make sure everything looks correct. Check Statistics and make sure everything looks correct.
18. Take the quiz as another student, answer questions with some blanks correct, some incorrect.
19. Check Feedback and Statistics and make sure everything is correct.
20. Log in as instructor and go to Published Copies > Scores > select student name for each student. Confirm that everything looks correct.
21. Export the quiz and save it as both XML and ZIP.
22. Import the exported files in Tests & Quizzes in another site, edit each copy of the quiz, then edit each question and confirm that all the delimiters (custom and standard) are still working in the imported copies and everything looks correct.
23. Import and publish the following quiz: FITB-customdelimitersandcurlybraces.zip.
24. Take the quiz as two students, answering the questions with a variety of correct/incrorrect answer combinations.
25. Check that the feedback, statistics, and scores for all questions are correct for all submissions (as both instructor and students).
Show
Note: Multiple types of FITB question with different scoring options should be tested with custom delimiters - including multiple correct answers to the same blank, mutually exclusive multiple blanks, case sensitive, ignore spaces. You can also import and edit this attached quiz: FITB-customdelimitersandcurlybraces.zip , which includes questions with a variety of settings, for testing the student takes (starting at step 12); however, it is important to create at least one new quiz with the parameters described below to confirm that authoring works as expected. IMPORTANT: BEFORE the code is put in place, as instructor, go to your site with Tests & Quizzes and at least one student. This is to confirm that no regression (NPE) is introduced in old assessments that lack the metadata necessary to specify answer markers. Create an assessment with a fill in the blank question. In the Settings , enable Feedback on submission , select all the feedback options, and Save Settings and Publish . AFTER the code is put in place, log in as a student and make sure you can successfully take and submit the assessment that was created before this code was implemented, and the scoring is accurate. As instructor, in a site with at least one student and Tests & Quizzes , go to Site Info > Edit Site Information and enable LaTeX, then go to Manage Tools and select to enable LaTeX for Tests & Quizzes . Create a quiz and add a fill in the blank question that will include at least two answer blanks . On the authoring page, confirm that the instructions make sense and the labels are in the correct places (i.e., Question Text is over the CKEditor box, not the instructions, and there is a proper label on the form field to insert Custom Markers for the Fill in the Blank Field Markers ). Specify new delimiters, e.g., (), but author your question using default (curly bracket) delimiters. Confirm that on attempting to save, you get a meaningful error message that allows you to fix the mistake. Specify disallowed characters as delimiters, e.g., .", and include them in the appropriate places in your question text to specify the answers. Confirm that on attempting to save, you get a meaningful error message that allows you to fix the mistake. Specify the same character for each delimiter, e.g., ((, and include it in the appropriate places in your question text to specify answers. Confirm that on attempting to save, you get a meaningful error message that allows you to fix the mistake. Specify custom delimiters and use them correctly. Confirm that: After moving focus out of the field where you typed the markers, the instructions update correctly to indicate which markers should be used. The question saves, and you are returned to the Questions screen with the question displayed correctly (i.e., there should be ___ instead of the delimiters within the question text, and the answer key should show the appropriate answers). Add another question where you specify a custom delimiter that will not be included in a LaTeX expression you use, and make the answer text a LaTeX expression, e.g., the following: $$x=\frac{1+y}{1+2z^2}$$ On save, make sure the question displays correctly (with ___ in place of the delimiters in the question text, and answer key with the LaTeX expression). Add another question with default curly bracket delimiters. Preview the quiz and confirm that each question looks correct in the preview (i.e., text fields within the question text in place of the answer delimiters). Go to Settings . Make it unlimited submissions (for ease of testing), then open Grading and Feedback . Enable Feedback on Submission and select all the options (so you can check that feedback display is correct, as well as display on Statistics screen from the student perspective), then Save Settings and Publish . Take the quiz as a student. Make sure that each question looks correct (i.e., text fields are in the appropriate places within the question text) and answer each question correctly. Take the quiz again, answering questions with some blanks correct, some incorrect. Check Feedback and make sure everything looks correct. Check Statistics and make sure everything looks correct. Take the quiz as another student, answer questions with some blanks correct, some incorrect. Check Feedback and Statistics and make sure everything is correct. Log in as instructor and go to Published Copies > Scores > select student name for each student. Confirm that everything looks correct. Export the quiz and save it as both XML and ZIP. Import the exported files in Tests & Quizzes in another site, edit each copy of the quiz, then edit each question and confirm that all the delimiters (custom and standard) are still working in the imported copies and everything looks correct. Import and publish the following quiz: FITB-customdelimitersandcurlybraces.zip . Take the quiz as two students, answering the questions with a variety of correct/incrorrect answer combinations. Check that the feedback, statistics, and scores for all questions are correct for all submissions (as both instructor and students).

#### Description

The instructor wants to create a "Fill in the Blank" question in Samigo.

His question text has "curly brackets" ({ }) but he wants that the text inside curly brackets is not used by samigo as the answer key.

His question text has a java iteration like:

"
while(true)

{ .... }

"

So what he needs is that the text between curly brackets is not used as the answer key.

There was a workaround for the bug when using the FCKEditor, you could provide the HTML code for the brackets in the source code. The brackets were displayed, but Samigo didn't create blanks for them.

This workaround is no longer viable in CKEditor and the instructors are not able to reuse the assessments that had used the workaround.

A good idea that came from sakai mail lists is to use double left/right brackets for creating FIBs answer keys, so that single brackets could be used in text.

#### Attachments

1. default_editor.png
49 kB
2. doubleBracket.jpg
154 kB
3. FITB-customdelimitersandcurlybraces.zip
4 kB
54 kB
5. rich_text_with_entity_codes_fib
39 kB
6. rich_text_with_entity_codes_fib.png
39 kB
7. Screenshot-20170915111215-748x339.png
38 kB
8. UVA_custom_markers.patch
92 kB

#### People

Assignee:
Daniel Merino Echeverría
Reporter:
Raúl Sánchez Vegas