Function Repository Resource:

LinearFunctionQuiz

Source Notebook

Generate a quiz to assess understanding of linear functions

Contributed by: Jordan Hasler, Wolfram|Alpha Math Team

ResourceFunction["LinearFunctionQuiz"][]

returns an interactive assessment on plotting linear functions based on input/output pairs.

Details and Options

ResourceFunction["LinearFunctionQuiz"] picks a linear function used to transform user inputs to outputs, which are then recorded in a table. The user is then required to plot the corresponding points by moving the locators. After five points have been adjusted, the user selects the corresponding linear function from the drop-down menu.
The interface returned by ResourceFunction["LinearFunctionQuiz"] includes the following buttons:
Check answerautomatically grades input with feedback
Reset problemresets the problem by clearing the accumulated data table and moving locators back to their starting positions
Next problemrandomly generates a new problem and internally saves the previous problem history
Print reportprints a description of the problems that have been attempted so far, all guesses made and whether the last guess on each problem was correct
Styling and interface controls may be found under the "Display options" opener.

Examples

Basic Examples (1) 

Generate a quiz on plotting a linear function by moving points on a graph:

In[1]:=
ResourceFunction["LinearFunctionQuiz"][]
Out[1]=

Scope (3) 

When Check answer is clicked, attempts are marked as correct based on whether or not the chosen points lie along the line in question. Correct answers receive a green check mark:

In[2]:=
ResourceFunction["LinearFunctionQuiz"][]
Out[2]=

If an attempt does not meet the specified criteria, it is marked as incorrect with a red x:

In[3]:=
ResourceFunction["LinearFunctionQuiz"][]
Out[3]=

Clicking the Print report button returns a description of the problem, all guesses made and if the most recent was correct:

In[4]:=
ResourceFunction["LinearFunctionQuiz"][]
Out[4]=

Publisher

Wolfram|Alpha Math Team

Version History

  • 2.0.0 – 23 March 2023
  • 1.0.0 – 09 March 2021

Related Resources

Author Notes

To view the full source code for LinearFunctionQuiz, evaluate the following:

In[1]:=
SystemOpen[
 FileNameJoin[{DirectoryName[FindFile["ResourceFunctionHelpers`"]], "FunctionQuiz.wl"}]]

License Information