J
John
I am designing an computer aided test system in Java.
For multiple choice question, I have a field of userResponses of ArrayList.
How do I calculate how many occurence of each type of user response?
I ask because each time a user finishes a multiple choice question, his
response is logged into the userResponses ArrayList.
Or in another word, how do I know the number of occurence of each element in
the ArrayList?
For example, this is a multiple choice question:
1. The memory strategy derived from Miller (1956) involving organizing
disparate pieces of information into one related, meaningful group is
referred to as
(a) organization
(b) the Cornell method
(c) elaborative rehearsal
(d) chunking
(e) SQ3R
one user might give his response as (a,b), another one (a,c), another one
(b,c),.....
Say finally the userResponses is composed of {(a,b), (b,c), (a,b), (b,c),
(c,d,e), (a,d,e), (c,d,e), (c,d,e)} after 8 users took this question.
How can I have the result as:
(a,b): 2
(b,c), 2
(c,d,e):3
(a,d,e):1
For multiple choice question, I have a field of userResponses of ArrayList.
How do I calculate how many occurence of each type of user response?
I ask because each time a user finishes a multiple choice question, his
response is logged into the userResponses ArrayList.
Or in another word, how do I know the number of occurence of each element in
the ArrayList?
For example, this is a multiple choice question:
1. The memory strategy derived from Miller (1956) involving organizing
disparate pieces of information into one related, meaningful group is
referred to as
(a) organization
(b) the Cornell method
(c) elaborative rehearsal
(d) chunking
(e) SQ3R
one user might give his response as (a,b), another one (a,c), another one
(b,c),.....
Say finally the userResponses is composed of {(a,b), (b,c), (a,b), (b,c),
(c,d,e), (a,d,e), (c,d,e), (c,d,e)} after 8 users took this question.
How can I have the result as:
(a,b): 2
(b,c), 2
(c,d,e):3
(a,d,e):1