Skip to main content
Known Participant
October 21, 2016
Question

Is it possible to set calculation quiz items in Captivate?

  • October 21, 2016
  • 2 replies
  • 229 views

I'm very new to AC and am exploring the quiz capabilities of the software. I want to add numeracy based questions to a quiz but don't want to use MCQs for this. Is there a way of adding relatively simple calculations, the simplest being input a number into a box and compare it with the correct answer? I'm happy to go to javascript eventually but want to walk before I try to run. Any help would be gratefully received.

George

    This topic has been closed for replies.

    2 replies

    Lilybiri
    Legend
    October 21, 2016

    With Advanced or Shared actions, using the Expression command, you can have simple calculationss: sum, subtraction, multiplication and division are possible with the Captivate functionality. For more complicated calculations you should need to embed JavaScript which has a much wider toolset for calculations in the Math class.

    Since a while I had planned to write a blog post about creating custom math questions. Maybe you could give some more details: do you want to use random numbers?  Are the 4 main math operators I mentioned above sufficient? Do you want to report the result of the quiz? Do you want to offer multiple attempts on individual question slides, on the quiz? Which kind of audience do you expecy: children (which age) or others?

    For simple math operations you'll need at least these components:

    1. user variables to store the values of both the two numbers and the result
    2. either a text entry box or a scrolling text interaction to allow the user to enter the result
    3. a submit button to confirm the entry or a shortcut key
    4. an advanced or shared conditional action to calculate the result and compare it to the given answer
    5. feedback messages or objects that will be shown based on the result of the conditional action

    If you want random numbers, you'll need more advanced/shared actions and events to trigger those actions. Those actions could be triggered by the On Enter event of the slide.

    You understand that it is possible, even without JS for simple calculations, and when you don't want random numbers. If you could answer my questions above, maybe this will stimulate me to finally write that post.

    Known Participant
    October 29, 2016

    Hi Lilybiri,

    This is very much along the lines of what I would like to do. This is for students as a learning tool for pharmaceutical calculations. In the simplest case it would be fixed numbers as variables and for the system to compare their calculated result to a correct answer, e.g. a dose of a drug is 2mg per kg of bodyweight. How much would a 70kg person need? The drug is available in 10ml vials as a 10mg/ml solution. How much of this solution would your patient need? (they need to do the first calculation, establish they need 140mg of drug, therefore need 14ml of solution). It would be great to have random numbers involved so when they load the question the body weight changes on each attempt - so using a formula along the line of 50 + random.40 to give a body weight anywhere between 50kg and 90kg (assuming the random number is anything between 0 and 1). 

    I'll be delighted to be able to do the simpler option first (walk before I can run) and to work up to the more complex approach later.

    Many thanks,

    George

    AnitaHorsley
    Inspiring
    October 21, 2016

    George, it sounds like you will need to create a custom quiz question. You may need to dive into advanced actions. Or you could  you try using a text entry box with a validate user input?