Access student ID etc. as preset variable in formula quiz questions

Idea created by Tim Wilson on Apr 18, 2018
    Open for Voting
    Score3
    • Tim Wilson
    • Kelley L. Meeusen
    • Luke Konkol

    I suggest that student-specific information such as student ID or canvas ID should be accessible when creating formula questions, preferably with the ability to modify these numbers with basic math functions.

     

    The goal is to have specific answers that can be associated with a particular student, simplifying the identification of students sharing answers.

     

    Example:

    A ball is launched from a cannon at <[student ID] mod 90> degrees at a velocity of <[student ID] mod 200> m/s. a) For how long will the ball be airborne, b) what will be it's maximum height, and c) how far will it have travelled when it lands?

     

    In the above example, the students' ID number would be used inside the <> to generate reasonable numbers for the problem. I figure the easiest way to do this is to do a pass on the text included inside the <> to replace keywords like [student ID] with the relevant value, then pass the resulting string into something like Python's "literal_eval" in order to get a number out.