Skip to main content
New Participant
April 2, 2025
Question

Creating true or false quiz where there is no right or wrong answer

  • April 2, 2025
  • 1 reply
  • 430 views

Hello

 

I am trying to create a 'true' or 'false' quiz which isn't based on a right or wrong answer.  I want the particpants to answer true or false to a set of statements which then shows the results after. ie out of 10 statements, 6 were answered as true, 4 false. I will then have a text box that states ' if you answered true to 6 or more questions, this indicates a theme. Doesn't mean they are wrong, but raises awareness of where they are at.

 

I think I have to do this as an interactive component as opposed to the true or false quiz template in order to avoid it being a right or wrong answer scenario.  Is that correct?

 

Also, I have watched. a few tutotirals and can't find anythign specific about how i would set this up and how I could show the user what their score was after completing the quiz/assessment.  

 

Any advice will be uch appreciated! 🙂

 

Thank you

    1 reply

    Participating Frequently
    April 2, 2025

    @brilliant_Gemstone6082 ,

     

    You are correct that you'd want to use a Radio Button component, rather than a Quiz Slide. Even if you set the Quiz Slide to a Knowledge Check - you still have to specify a "correct answer".

     

    You have multiple ways to summarize the number of questions where "true" was answered (and "false" was answered):

    1. Create separate variables for each "question" and update the question variable when a user selects a specific answer
    2. Create two variables to store "true" and "false" answer scores. Update those variables when a user selectes a specific answer

     

    I think the benefit of creating separate variables for each quesiton is that you can easily handle the scenario where a user goes back and answers/changes their answer to a question multiple times.  I'll give you a quick summary of how to accomplish this:

     

    Create a variable for each question

    - In the lower-right corner of Captivate, select Project Properties

    - Select the + icon next to Variables in the project properties panel

    - Type something like q1Results for the variable Name

    - Click Create

    - Click + to repeat for each question you will ask

     

    On a slide, add Radio Group component

    - Type your Label as the question text

    - Edit the radio button text to [probably] True / False

     

    Set the variable based on their response (assuming you only have true/false questions)

    - Click the Radio button group

    - Select the Interactions panel from the upper-right corner of Captivate

    - Click the "Selection of" tab at the top of the radio button

    - Click the TRUE option and select ...More and ultimately select Assign Variable as the action

    - Select q1Results as the variable

    - Select A value

    - Type 1 as the value

    - Click Done

    - Click the FALSE option and select ...More and ultimately select Assign Variable as the action

    - Select q1Results as the variable

    - Select A value

    - Type 0 as the value

    - Click Done

     

    This will set the variable to 1 when the user selects the TRUE option; or 0 when the user selects the FALSE option

     

    To determine the number of TRUE answers selected you will create a variable that adds up the sum of all of the question variables, where a total of 2 means two questions were answered TRUE. If you had 5 questions it also means that 3 questions were answered false (or potentially not answered).

     

    I would probably use the Javascript option to sum up the questions. Something like this:

    window.cpAPIInterface.setVariableValue ("totalResults", window.cpAPIInterface. getVariableValue ("q1Results") + window.cpAPIInterface. getVariableValue ("q2Results"));

     

     

    -Andrew

     

    New Participant
    April 2, 2025

    Hi Andrew

     

    Thank you so much for your response, it has been so helpful and I appreciate your clear insructions, and time!

     

    I hope you don't mind me asking one other question.  In terms of providing a summary of results to the user once they have completed the questions, would you create a blank slide after the questions and how would you disply the summary which has the javascript code?  

     

    Thanks again, I'm feeling a bit lacking on the tech side using this software!!!

     

    Sarah

     

     

    Participating Frequently
    April 2, 2025

    Sarah,

     

    You can create a custom 'results' slide. Select that slide and add a Slide Enter interaction that creates/sets variable using that JavaaScript. Then display the variable by typing $$VARIABLE_NAME$$ (where VARIABLE_NAME represents your actual variable). When you start typing $$, the variables will appear for you to select from.

     

    Rename the attached file as .cpt as an example you can review.

     

    -Andrew