LearnDash Advanced Quizzes - Overview


    Installation:

    The Advanced Quiz option will appear under the LearnDash LMS menu on the WordPress Dashboard.

    LearnDash Advanced Quiz Settings:

    General Settings:

    To configure the add-on’s settings select Advanced Quizzes from the LearnDash menu on the WordPress dashboard.  You can find all setting options under the General Settings tab.


    Note: The plugin also supports multi-languages

    License:

    Go to LearnDash > Advanced Quiz and select the License tab. Then, enter the License Key in the corresponding field.


    Negative Markings For Quiz Questions:

    The Negative Markings feature allows you to deduct points from students’ quiz scores when they answer a question incorrectly. To enable this feature, you must check the “Allow Negative Marking?” option box located on the General Settings tab. Finally, click on the Update Settings button.

     

    To set the number of points to deduct for each question, go to the question edit page. Negative points can be set from the Advance Quiz meta box located on the right.


    Time limit For Each Question:

    To enable time limits for quiz questions, you must check the  “Different time limits for each question” option box from the General Settings tab. Finally, click on the Update Settings button.

    You can set time limits for each question on the Time Limit field located on the Advance Quiz meta box, on the right of each question’s edit page.

    Save/Resume Quiz:

    The Save/Resume feature allows your students to save their quiz answers before finishing a quiz. Students are able to resume the quiz without losing previous progress. Upon resuming the quiz, students are taken to the question where they left off. 


    To enable this feature check the  “Allow Save/Resume Quiz” option box in the General Settings tab. Finally, click on the Update Settings button to save changes.


    Resume limit:

    If you want to limit the number of times your students can resume work on a quiz, you can also set a ”resume quiz limit”  from the Advance Quiz meta box on the right side of the quiz edit page.

    Next Button as Save Button:

    To make your quizzes “Next” button act simultaneously as a “Save” button, check the “Next Button as Save Button?” option box on the General Settings tab.

    When enabled, the Next button will be labelled as “Save & Next.” When users click on this button, their questions will be saved, and they will be shown the next question.


    Disable Question Time Limit for Shared Quiz Questions:

    If you are using questions across multiple quizzes,enabling the “Shared Quiz Questions” option allows you to disable the question time limit on any specific quiz. 

    • From the LearnDash menu select Quizzes, and then go to Settings. 
    • Enable the Quiz Builder and then enable Shared Quiz Questions.
    • Navigate to the LearnDash > Quizzes and then select the desired quiz to access its edit page.
    • Scroll down to the Advanced Quiz meta-box, located on the right sidebar.
    • Check the “Disable Question Time Limit” option box.
    • Update/publish the quiz.


    New Question Types:

 The Learndash Advanced Quiz add-on allows you to include three new question types in your quizzes.

    Jumbled Sentence:

 Jumbled Sentence questions require students to complete a sentence by selecting words or phrases from a drop-   down list.

    From Backend:

    Do not Award Points for Each Usage:

If you don’t want to award points when a specific variable is used, check the “do not award points for each usage” option.

This is how Jumbled Sentence questions are displayed on the frontend:

    Swipe Question:

This new question type requires students to swipe right if the displayed option is correct or swipe left if the displayed option is incorrect.  The options used can be in text or image format.

This is how a Swipe question is displayed on the frontend:

Note: You can also restart the swiping question after resuming the quiz by merely clicking on the restart button that shows on the swipe question on the frontend.

    Calculation Formula:

Calculation Formula questions require the students to solve for a variable by completing a formula. The instructor can set a limit for the variables used. 

 Some Example Questions:

Example # 1

If a small soda glass contains [x] ounces of soda, and a large soda glass contains [y] ounces of soda, what is the total number of ounces in 4 large and 3 small glasses of soda? Now, if the admin selects a range 1 - 5 for the variables, the random numbers will be displayed on frontend against the variable from that range.

This is how this question will be displayed on the frontend:

Addition Questions:

To create a simple addition question into your LearnDash quiz, follow these steps:

  • Navigate to Questions under the LearnDash menu.
  • Click the Add New button.
  • Enter the question title and description.
  • Select the answer type as Calculated Formula from the Answer Type meta-box.
  • Scroll to the Answer(required) section. 
  • Click on the Add new answer button.
  • Enter the Question i.e 10 + 2 = _______
  • Enter the Formula i.e [x] + [y]
  • Click at Add Variable.
  • Enter x and enter 10 for Min and Max.
  • Click at Add Variable.
  • Enter y and enter 2 for Min and Max.

This is how the question will be displayed on the frontend:

Subtraction Questions:

To create a simple subtraction question into your LearnDash quiz, follow these steps:

  • Navigate to the Questions under the LearnDash menu.
  • Click the Add New button.
  • Enter the question title and description.
  • Select the answer type Calculated Formula from the Answer Type meta-box.
  • Scroll to the Answer(required) section. 
  • Click at the Add new answer button.
  • Enter the Question i.e 20 - 10 = _______
  • Enter the Formula i.e [x] - [y]
  • Click at Add Variable.
  • Enter x and enter 20 for Min and Max.
  • Click at Add Variable.
  • Enter y and enter 10 for Min and Max.

 This is how the question will be displayed on the frontend:

Multiplication Questions:

To create a simple multiplication question into your LearnDash quiz, follow these steps:

  • Navigate to the Questions under the LearnDash menu.
  • Click the Add New button.
  • Enter the question title and description.
  • Select the answer type Calculated Formula from the Answer Type meta-box.
  • Scroll to the Answer(required) section. 
  • Click at the Add new answer button.
  • Enter the Question i.e 2 * 2 = _______
  • Enter the Formula i.e [x] * [y]
  • Click at Add Variable.
  • Enter x and enter 2 for Min and Max.
  • Click at Add Variable.
  • Enter y and enter 2 for Min and Max.

This is how the question will be displayed on the frontend:

Division Questions:

To create a simple division question into your LearnDash quiz, follow these steps:

  • Navigate to the Questions under the LearnDash menu.
  • Click the Add New button.
  • Enter the question title and description.
  • Select the answer type Calculated Formula from the Answer Type meta-box.
  • Scroll to the Answer(required) section. 
  • Click at the Add new answer button.
  • Enter the Question i.e 14 / 2 = _______
  • Enter the Formula i.e [x] / [y]
  • Click at Add Variable.
  • Enter x and enter 14 for Min and Max.
  • Click at Add Variable.
  • Enter y and enter 2 for Min and Max.

This is how the question will be displayed on the front-end:

Using Maths Functions:

All the functions mentioned below are supported in the calculated formula question type. Functions should be used in the following format “function(   [a]  ) where “a” is the variable that contains a value.

  • cos( [a] )
  • sin( [a] )
  • tan( [a] )
  • abs( [a] )
  • exp( [a] )
  • log( [a] )
  • sqrt( [a] )
  • int( [a] )
  • round( [a] )
  • ceil( [a] )
  • floor( [a] )
  • fmod( [a] )
  • acos( [a] )
  • acosh( [a] )
  • asin( [a] )
  • asinh( [a] )
  • atan2( [a] )
  • atan( [a] )
  • atanh( [a] )
  • bindec( [a] )
  • cosh( [a] )
  • decbin( [a] )
  • dechex( [a] )
  • decoct( [a] )
  • deg2rad( [a] )
  • hexdec( [a] )
  • log10( [a] )
  • max( [a] )
  • min( [a] )
  • octdec( [a] )
  • pi( [a] )
  • rad2deg( [a] )
  • rand( [a] )
  • sinh( [a] )
  • rand( [a] )
  • srand( [a] )
  • tanh( [a] )

Using Decimal Points:

You can also decimal points in “calculated formula” questions, so that answers will be calculated according to the specified decimal points.

You can set the number of decimal points from the meta box that is shown on the right side of the calculated formula question edit page.

From Frontend:

Trigonometry Questions:

To add a trigonometry question into your LearnDash quiz, follow these steps:

  • Navigate to the Questions under the LearnDash menu.
  • Click the Add New button.
  • Enter the question title and description.
  • Select the answer type Calculated Formula from the Answer Type meta-box.
  • Scroll to the Answer(required) section. 
  • Click at the Add new answer button.
  • Enter the Question i.e sin( [a] ) = _______
  • Enter the Formula i.e sin( [a] )
  • Click at Add Variable.
  • Enter a and enter 8 for Min and Max.

This is how the question will appear on the front-end:

Numerical Expression Question:

To add a numerical expression question into your LearnDash quiz, follow these steps:

  • Navigate to the Questions under the LearnDash menu.
  • Click the Add New button.
  • Enter the question title and description.
  • Select the answer type Calculated Formula from the Answer Type meta-box.
  • Scroll to the Answer(required) section. 
  • Click at the Add new answer button.
  • Enter the Question i.e {2*2}+2 = _______
  • Enter the Formula i.e ([a]*[b])+[c]
  • Click at Add Variable.
  • Enter a and enter 2 for Min and Max.
  • Enter b and enter 2 for Min and Max.
  • Enter c and enter 2 for Min and Max.

This is how the question will be displayed on the front-end:


    Developer’s Doc:

    Action and Filter Hooks:


    wn_ld_advanced_quizzes_save_button_label

    Purpose: Modifies the “Save” button text.

    Parameters: 

    • $button_text (string)
    • $quiz_post_id (integer)

    wn_ld_advanced_quizzes_resume_button_label

    Purpose: Modifies the “Resume” button text.

    Parameters:

    • $button_text (string)
    • $quiz_post_id (integer)

    wn_ld_advanced_quizzes_next_button_label

    Purpose: Modifies the “Next” button text.

    Parameters:

    • $button_text (string)
    • $quiz_post_id (integer)
    • $is_save_and_resume_enabled (boolean)