Summary

This application allows for quick and easy generation of Moodle quiz questions. Once the instructor creates the questions in the spreadsheet, the application enables them to export these questions to an XML document, which they can then import into Moodle. It also allows for the reverse - taking XML documents generated from Moodle and importing them into a spreadsheet for easier viewing, editing, and moving.

To use this application, first enter your categories in the categories tab (this minimizes errors due to a mistype). You then have 2 choices for how to create questions:

  1. Within the menu, select "Add-ons > (QB)² - Question Bank Quick Builder > Add Questions (guided)" to open an interface to guide you through adding questions one at a time.

  2. Within the spreadsheet, use the pull downs to choose the category, question type, and value for each question.

(QB)2 supports the following question types :

Setup

You can install (QB)2 from the G-Suite Marketplace. You can also install directly from the Google Sheet by going to Add-Ons > Get add-ons.

Set up (QB)2 spreadsheet

You can set up the spreadsheet with the blank template automatically by going to "Add-ons > (QB)² - Question Bank Quick Builder > Set up (QB)² spreadsheet". This will create all sheets necessary for (QB)². (QuestionTypes is a hidden sheet that does not need to be edited by the user.) This will also open up an interface to guide you through creating questions in a sidebar to the right of your spreadsheet.

This does not delete any pre-existing sheets except for those with the same names, so please exercise caution and make sure there are no existing sheets called “Question Bank”, “Categories”, or “QuestionTypes”. Set up is not intended to replace your existing questions and categories, but you may lose some content if originally formatted incorrectly.

Another alternative is to save a copy of one of the files below in your Google Drive. To make a copy, open the file and choose: File > Make a copy. Both links can be accessed from "Add-ons > (QB)² - Question Bank Quick Builder > Documentation & Template".

(QB)² Spreadsheet Template - Samples (Recommended for first time users)

(QB)2 Spreadsheet Template - Blank

Finally, it is possible to make use of our Microsoft Excel template and add questions offline. Instructions are available at (QB)² - Writing Questions in Excel.

Your spreadsheet and (QB)2 are now ready to be used.

How to Use

Question Bank is the sheet that will hold all of your questions.

The Categories sheet can be edited to include your categories. This will then populate the categories drop down on the “Question Bank” sheet.

Add Questions (guided)

The easiest way to create questions is to select select "Add-ons > (QB)² - Question Bank Quick Builder > Add Questions (guided)" from the menu. This will display an interface on the right-hand side of the screen for adding questions.

  1. Choose the desired question type from the dropdown menu at the top. The interface will adjust itself based on your choice.

  2. Next select a category from the new dropdown menu.

    1. If you have changed your categories since opening the interface, you will need to click Refresh first.

  3. Then, add your question.

  4. Depending on the question type, you may be prompted for answer choices and scores.

  5. You may also indicate here that a question will need media added within Moodle. This will add the text "[MEDIA]" to the title of the question, letting you see at a glance which questions need editing in Moodle.

You may change question types using the dropdown menu at the top of the interface at any time. Doing so will preserve your category selection and question text but will not preserve your answers, if any.

When you are done, click the Add button to insert your question into the spreadsheet. This will show the row your question was added to, in case you wish to edit it later. The interface will prepare for adding a new question.

Clicking the Reset button will revert the interface to its initial state, erasing any category, question, and answer choices currently displaying in it. Questions already added to your spreadsheet will remain unchanged.

Fields

Below is a brief description of each column on the sheet

Questions can be sorted by any of these fields alphabetically by rightclicking the top of the column (for Questions/Description, column C) and clicking either Sort sheet A → Z or Sort sheet Z → A (pictured below).

Question Types

Feedback

(QB)² supports adding answer-level feedback for truefalse, multichoice, and shortanswer type questions to the XML file. This allows students to get feedback based on which answer they chose.

To add feedback for an answer, you incorporate it into the answer column after the answer text by adding [FEEDBACK] followed by the feedback text.

Example: “San Francisco is the capital of California [FEEDBACK] Please review chapter 5”

Feedback is automatically exported if it is present, so there is no need to do anything further.

Export to XML

To export questions from (QB)² in an XML format ready for uploading to Moodle:

  1. Go to "Add-ons > (QB)² - Question Bank Quick Builder > Export to XML" to open the sidebar.

  2. Make sure the Question Bank sheet is the sheet you are viewing.

  3. If desired, click “Advanced Options.”

    1. Here, you can disable the default setting of shuffling the order of answer choices within Moodle.

  4. Once the spreadsheet is set up correctly based on documentation and all questions are ready, click “Export" to download a copy of the XML file, and import into Moodle!

When you export, an XML file is saved to the same folder the spreadsheet is in. If you do not have permissions to this same folder, it will save the XML file to the root of your Google Drive. This may happen if someone shares their spreadsheet with you, and you attempt to export. To avoid confusion, it is recommended to get permissions to the same folder.

Import from XML

Go to "Add-ons > (QB)² - Question Bank Quick Builder > Import from XML" to open the sidebar. Make sure the Question Bank sheet is the sheet you are viewing. If desired, click "Advanced Options". The following options are available:

When you are ready, click the Import button. A file picker will appear.

Select the desired file or folder to import.
Note: to chose a folder, click on it once and then choose Select. Do not double click it.

The questions will import into your active sheet, and new categories will be added to the Categories sheet. This may take awhile depending on the size of your files. When done, (QB)² will alert you to any error in a pop-up, as well as in a newly created Import Errors sheet.

Import Restrictions

There are a number of restrictions that may prevent certain questions or sheets from successfully importing. In all cases, (QB)² will alert you to any errors.

Sheet-level restrictions:

Question-level restrictions:

Other restrictions:

Moodle Import

Import Steps

The following are steps on how to import the XML file to Moodle.

  1. Navigate to an existing course

  2. Go to Course Administration (this may also be called Admin Panel)

  3. Under Question Bank, click Import

  4. For file format, select Moodle XML format

  5. Upload the XML file and Import

  6. Navigate to the Categories tab, and you will see the newly generated categories with the number of questions belonging to each category

  7. Navigate to the Questions tab to view/preview the individual questions.

Caveats

If you import without changing any settings under General on the import page, the questions will be automatically imported under the question categories for the course.

If you want the questions imported under question categories for a specific category, on the import page under General, unselect Get context from file.

If you want the questions imported to an already existing category, this category must be specified in the spreadsheet before import. Do not count on Import category option under General to do this for you.

For example, if you want your questions to be imported under Question categories for ‘Category: Humanities’ in the Default for Humanities category, make sure on the spreadsheet before exporting to XML file, to specify category “Default for Humanities” or “Default for Humanities / subcategory name”, and on the import page to unselect Get context from file before import.

Moodle Backup Import

If you decide to backup a course, you can get a quick summary of the course in Google Documents through our backup import. To get the backup, go to the admin panel and click “backup” under Settings & backup.

Proceed with the backup as instructed, choosing whatever sections you want to keep in the backup. The final result will be a file with approximately the format of backup-moodle2-coursename.mbz. In order to reach the XML backup file, you will need to unzip the .mbz file. 7Zip is a free tool that can do this relatively easily (read more here: https://moodle.org/mod/forum/discuss.php?d=350148). Once unzipped, you’ll find a file named “moodle_backup.xml”, which we will use for the import.

For the import tool, access (QB)2 and select Import from… > Moodle Backup XML [BETA]. Then import the file as you would a normal import.

The end result should be a document somewhat like this!

Caveats

Canvas (QTI XML) Export

Exporting from Sheets to Canvas XML works the same way as exporting from Sheets to Moodle XML.

  1. Go to "Add-ons > (QB)² - Question Bank Quick Builder > Export To… > QTI XML (Canvas) [BETA]" to open the sidebar.

  2. Make sure the Question Bank sheet is the sheet you are viewing.

  3. If desired, click “Advanced Options.”

    1. Here, you can disable the default setting of shuffling the order of answer choices within Canvas.

  4. Once the spreadsheet is set up correctly based on documentation and all questions are ready, click “Export" to download a zip file with the necessary XML files, and import into Canvas!

There are two important caveats.

  1. The Dragdrop and Cloze questiontypes are not supported.

    1. Pooddlrecording is replaced with the essay type, as there is no equivalent in Canvas.

  2. Feedback is not supported.

Unsupported features are automatically removed from the quiz during export (with notification to the user).

Importing QTI XML to Canvas

The following instructions are to import a QTI .zip file from the Question Bank Quick Builder (QB^2) into Bruin Learn.

  1. Navigate to the existing course where you with to import the question bank.

  2. Under Home, select to Import Existing Content, located on the right side of the screen.

3. Under content type, select QTI .zip for the file type. Then choose the QTI XML (Canvas) BETA file you
exported from the Question Bank Quick Builder.

4. Start Import

5. Next, navigate to the Quizzes section in the left-hand navigation menu.

6. Create a new Classic Quiz.

7. Select the Questions tab in the newly created quiz and then select “Find Questions”. This will open up a
separate window where you can scroll through your existing Question Banks.

8. Click on “View Course Question Banks” in the upper right corner of the new window. This will navigate
you to the full list of your courses question banks.

9. Scroll until you find a Question Banks titled “No Name”. This is the newly imported question bank. For
reasons we are not sure of, it will import as “No Name” even if you try to import to a newly created or
already existing question bank.

10. Now you can rename the question bank accordingly.

NOTE: An alternative way to get to your Questions Banks in Bruin Learn Classic Quizzes it to navigate to the Quizzes section in the left-hand navigation menu. Then click on the three vertical dots to the right of the “+ Quiz” button and from the drop-down menu, select “Manage Question Banks”. This will bring you to your question banks list.

Below is for New Quizzes, DO NOT USE THIS!

  1. Navigate to an existing course

  2. Go to Quizzes

  3. Create a quiz (make sure to select “New Quiz” as the quiz type), and once created, click the menu on the top right and then Import Content.

  4. Upload the ZIP file that you downloaded on export

  5. The quiz questions are now imported!

You can also import the questions into a question bank, then select the questions you want to import into the quiz that way. More info on that here: https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-import-questions-from-a-QTI-package-into-an-item-bank/ta-p/966

Offline Spreadsheet

Google Sheets is great, but the main disadvantage it presents for writing question banks is that you will need an internet connection to use it. If you would like to write your questions offline, visit (QB)² - Writing Questions in Excel

Blocked App? Accessing a Local Copy

We are currently working with Google Support in order to resolve the Blocked App issue many if you may be experiencing. In the meantime you can use a version of the tool by going to this sheet:

https://docs.google.com/spreadsheets/d/1P3zofXn0Fs71Hqa22uAVdHY0fTxYyREFy_W2G6TFiNM/edit#gid=678896719

File > Make a copy, and save a copy of it in your google drive.

A local copy of the tool will be copied over as well.

It may take a moment to load the tool, but once its loaded, you can go to Add Ons > (QB)² - Question Bank Quick Builder [LOCAL VERSION] and use the app like usual

You may have to authorize the app when trying to navigate the tool

You may also get this message:

Do not be alarmed by this message. This version of the tool only lives on the spreadsheet you copied. It is not the live tool. Click on Advanced, then click on Go to (QB)² - Question Bank Quick Builder [LOCAL VERSION]

Support

For any questions, bug reports, or suggestions for improvements please email us at support@humnet.ucla.edu

Git Repo: https://bitbucket.org/uclacdh/qb-2-question-bank-quick-builder

Credits

Developed By:

Lillian Hawasli, Instructional Programmer

Thomas Garbelotti, UCLA Humanities Instructional Technology Coordinator

Benjamin Niedzielski, Research & Instructional Technology Consultant

Amy Zhao, Student Programmer

Jakin Wang, Student Programmer

Rockford Mankini, Student Programmer

Logo/Art By:

Robert Farley, Research & Instructional Technology Consultant

Testing/Support:

Instructional Technology Group at Humanities Technology (HumTech), UCLA

Current Version

Release: Version 5.1.1

Released on: 05/14/2021

Change Log

Release Notes

Copyright © 2021 The Regents of the University of California.