Created
January 15, 2012 18:45
-
-
Save BillFoster/1616736 to your computer and use it in GitHub Desktop.
list as an answer in a jme gapfill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ notes: "" | |
name: MAS3214 20122013 CBA1_4 | |
percentPass: 50 | |
shuffleQuestions: false | |
rulesets:{ | |
std:[all,fractionNumbers, !collectNumbers,!noLeadingMinus] | |
} | |
navigation: { | |
allowregen: true | |
showfrontpage: false | |
reverse: true | |
browse: true | |
} | |
feedback: { | |
showtotalmark: true | |
} | |
questions: [ | |
{ | |
name: MAS3214 20122013 CBA1_4 | |
variables: { | |
n: "p*q" | |
p: "random(5,7,11)" | |
q: "switch(p=7,random(2,3,5),random(2,3))" | |
a: "random(2..n-1)" | |
m: "random(1..3)" | |
b: "if(a+p-m*q>=0,mod(a+p-m*q,n),n+mod(a+p-m*q,n))" | |
a1: "mod(a+p,n)" | |
b1: "if(a-m*q>=0,mod(a-m*q,n),n+mod(a-m*q,n))" | |
c: "mod(a+b,n)" | |
d: "mod(a*b,n)" | |
ans: "sort([b,a1,b1])" | |
} | |
parts: [ | |
{ | |
type: gapfill | |
prompt: """ | |
Show that $x=\var{a}$ is a solution of the quadratic equation in $\mathbb{Z}_{\var{n}}$ : | |
\[\simplify[std]{x^2 -{c}x+{d} = 0}\] | |
There are four solutions in $\mathbb{Z}_{\var{n}}$ of this quadratic equation. | |
Enter the other 3 roots apart from $x=\var{a}$ in a list below as elements in $\mathbb{Z}_{\var{n}}$ i.e. in the form $[a,b,c]$ with $0\le a \lt b \lt c \le \var{n-1}$ | |
Other three roots are: [[0]] | |
""" | |
gaps: [ | |
{type: jme, answer: "{ans}", marks: 4} | |
] | |
} | |
] | |
advice: """ | |
""" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment