How do I make a Physics Quiz question uses the same variables in two different answer blanks

Courtney.D.492
Courtney.D.492 Posts: 2 🔍
edited October 2023 in Higher Ed / Postsecondary
I’m trying to make a quiz that uses the same variables in two different questions, or ideally, have two different answer blanks in the same question.

E.g.:
If a vector A has components Ax = [rand1] and Ay = [rand2],

Calculate the magnitude of the vector A
Calculate the angle the vector A points at
I’m running into the issue where I have to make it two different instantiations of the same question, and it’s re-rolling the values each time, making what should be the same situation two fundamentally different vectors.

I’m also running into the need for “if logic” in the code for the angle, since ArcTrig functions have a limited domain, and depending on which quadrant the vector lands in, the math shakes out just a little bit differently. I could restrict to a particular quadrant using the givens as a last-resort, but I’d like for them to have to reckon with the randomization/span of possibilities we actually encounter in physics.

While I’m asking, are there any other creative options for formatting vectors & other math symbols? All four of the existing tools are maddeningly frustrating to use.
Tagged:

Answers

  • Stefanie.B.518
    Stefanie.B.518 Posts: 542 admin

    Hi @Courtney.D.492
    I apologize for the delay in response here
    I connected with a colleague who is more knowledgeable than myself in both the quiz tool and physics.

    They've come back with the following which I wanted to share here

    "I tried to create questions using the example given in the post : If a vector A has components Ax = [rand1] and Ay = [rand2]
    a) I had to create one question for the first question: Calculate the magnitude of the vector A
    b) I had to create a second question for the second question: Calculate the angle the vector A points at
    c) I don't see a way to re-use the same random numbers in both questions
    d) I don't see a way to use one question to answer both inquiries since there is only one formula"

    Based on their testing, I think it may not be possible to set up the question in the way you had originally imagined it.
    I have connected this feedback with our product team for their awareness of what you're trying to achieve and what is possible based on our testing.