Whitespaces in output

1 view
Skip to first unread message

Tom Hill

unread,
Mar 25, 2010, 11:37:29 AM3/25/10
to Sunner Moodle Plugins
When checking student output, do you separate the output stream into
tokens, then compare expected result/student token pairs?

So if expected result is:
The answer is 12.

And student produces:
The answer is12.

The answer is marked incorrect, not a presentation error?

Zhigang Sun

unread,
Mar 25, 2010, 11:50:00 AM3/25/10
to sunner-moodle-plugins
Yes, I do use tokens to judge. But the separators I use are white space, \n, \r and \t. You can see the detail in diff() from assignment.class.php.

The student you mentioned can't get a PE but a WA since the token in his output is "is12" and "is" and "12" are expected. 

--
孙志岗(Sun Zhigang)
http://sunner.cn



--
You received this message because you are subscribed to the Google Groups "Sunner Moodle Plugins" group.
To post to this group, send email to sunner-moo...@googlegroups.com.
To unsubscribe from this group, send email to sunner-moodle-pl...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sunner-moodle-plugins?hl=en.


Tom Murphy

unread,
Mar 25, 2010, 11:54:46 AM3/25/10
to sunner-moo...@googlegroups.com
For my $.05, I really like students being responsible for white space. White space is significant in every computer language they are likely to use. (Ancient Fortran ignored it)

   ... Tom
 
tmu...@contracosta.edu
 
Computer Science program chair (http://contracosta.edu/cs/)
Director of Center for High Performance Computing (http://contracosta.edu/hpc/)
West County robotics coach (http://contracosta.edu/robotics/)
 
2600 Mission Bell Drive
San Pablo, Ca 94806
(510) 235-7800 X4348




On 3/25/10 8:50 AM, "Zhigang Sun" <sun...@gmail.com> wrote:

Yes, I do use tokens to judge. But the separators I use are white space, \n, \r and \t. You can see the detail in diff() from assignment.class.php.

The student you mentioned can't get a PE but a WA since the token in his output is "is12" and "is" and "12" are expected.

--
孙志岗(Sun Zhigang)
http://sunner.cn


On Thu, Mar 25, 2010 at 23:37, Tom Hill <tomh...@gmail.com> wrote:
When checking student output, do you separate the output stream into
tokens, then compare expected result/student token pairs?

So if expected result is:
The answer is 12.

And student produces:
The answer is12.

The answer is marked incorrect, not a presentation error?

--
You received this message because you are subscribed to the Google Groups "Sunner Moodle Plugins" group.
To post to this group, send email to sunner-moo...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/sunner-moodle-plugins?hl=en.






**************************************************************
CONFIDENTIALITY NOTICE: This email message is for the sole use
of the intended recipient(s) and may contain privileged and
confidential information. Any unauthorized review, use,
disclosure or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by reply email
and destroy all copies of the original message.


Tom Hill

unread,
Mar 25, 2010, 2:43:52 PM3/25/10
to Sunner Moodle Plugins
The drawback is an assignment getting a 0 grade for a single typo in a
description label.
And it is tedious finding such errors.

On Mar 25, 10:54 am, Tom Murphy <tmur...@contracosta.edu> wrote:
> For my $.05, I really like students being responsible for white space. White
> space is significant in every computer language they are likely to use.
> (Ancient Fortran ignored it)
>
> ... Tom
>

> tmur...@contracosta.edu


>
> Computer Science program chair (http://contracosta.edu/cs/)
> Director of Center for High Performance Computing
> (http://contracosta.edu/hpc/)
> West County robotics coach (http://contracosta.edu/robotics/)
>
> 2600 Mission Bell Drive

> San Pablo, Ca 94806(510) 235-7800begin_of_the_skype_highlighting (510) 235-7800 end_of_the_skype_highlightingX4348


>
> On 3/25/10 8:50 AM, "Zhigang Sun" <sun...@gmail.com> wrote:
>
>
>
> > Yes, I do use tokens to judge. But the separators I use are white space, \n,
> > \r and \t. You can see the detail in diff() from assignment.class.php.
>
> > The student you mentioned can't get a PE but a WA since the token in his
> > output is "is12" and "is" and "12" are expected.
>
> > --
> > 孙志岗(Sun Zhigang)
> >http://sunner.cn
>

Tom Murphy

unread,
Mar 25, 2010, 5:32:59 PM3/25/10
to sunner-moo...@googlegroups.com
Today is my first day installing it, so I have no experience trying to
tailor this automatic evaluation tool to my needs.

But I agree, I too will need the ability to assign an appropriate almost
right grade to an almost right answer.

I also will be slanting my use towards student resubmittal, since that is an
often encountered learning opportunity.

... Tom

Tom Hill

unread,
Mar 25, 2010, 5:45:37 PM3/25/10
to Sunner Moodle Plugins
I have used it most of this semester and found it to be great tool.
It gives students immediate feedback and lightens my load.

But the only feedback they get is correct/incorrect, so they can have
trouble knowing what to correct.

I have been putting a sample run in the description and making my
first test case the sample run.

----------------------------------------------------------------------

On Mar 25, 4:32 pm, Tom Murphy <tmur...@contracosta.edu> wrote:
> Today is my first day installing it, so I have no experience trying to
> tailor this automatic evaluation tool to my needs.
>
> But I agree, I too will need the ability to assign an appropriate almost
> right grade to an almost right answer.
>
> I also will be slanting my use towards student resubmittal, since that is an
> often encountered learning opportunity.
>
> ... Tom
>

Tom Murphy

unread,
Mar 25, 2010, 6:00:59 PM3/25/10
to sunner-moo...@googlegroups.com
This is along the lines of what I plan. I usually have two public test
cases, and then I want a battery of special test cases, which students
cannot discover and thus tailor their code for.

... Tom

Zhigang Sun

unread,
Mar 25, 2010, 8:22:47 PM3/25/10
to sunner-moodle-plugins
On Fri, Mar 26, 2010 at 05:45, Tom Hill <tomh...@gmail.com> wrote:

But the only feedback they get is correct/incorrect, so they can have
trouble knowing what to correct.

Have you ever tried the feedback field of each test case? When the students get WA on that case, the corresponding feedback will be shown to them. So it can be used as an auto hint tool.

For example.  
To unsubscribe from this group, send email to sunner-moodle-pl...@googlegroups.com.

Tom Hill

unread,
Mar 26, 2010, 11:01:41 AM3/26/10
to Sunner Moodle Plugins
Sun-
I cannot find the feedback field to which your refer.


On Mar 25, 7:22 pm, Zhigang Sun <sun...@gmail.com> wrote:

> > > >>>> sunner-moodle-pl...@googlegroups.com<sunner-moodle-plugins%2B­unsub...@googlegroups.com>
> > > >>>> <mailto:sunner-moodle-plugins%2Bunsu...@googlegroups.com<sunner-moodle-­plugins%252Buns...@googlegroups.com>>


> > .
> > > >>>> For more options, visit this group at
> > > >>>>http://groups.google.com/group/sunner-moodle-plugins?hl=en.
>
> > > >> **************************************************************
> > > >> CONFIDENTIALITY NOTICE: This email message is for the sole use
> > > >> of the intended recipient(s) and may contain privileged and
> > > >> confidential information. Any unauthorized review, use,
> > > >> disclosure or distribution is prohibited.  If you are not the
> > > >> intended recipient, please contact the sender by reply email
> > > >> and destroy all copies of the original message.
>
> > > **************************************************************
> > > CONFIDENTIALITY NOTICE: This email message is for the sole use
> > > of the intended recipient(s) and may contain privileged and
> > > confidential information. Any unauthorized review, use,
> > > disclosure or distribution is prohibited.  If you are not the
> > > intended recipient, please contact the sender by reply email
> > > and destroy all copies of the original message.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Sunner Moodle Plugins" group.
> > To post to this group, send email to
> > sunner-moo...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > sunner-moodle-pl...@googlegroups.com<sunner-moodle-plugins%2B­unsub...@googlegroups.com>


> > .
> > For more options, visit this group at

> >http://groups.google.com/group/sunner-moodle-plugins?hl=en.- Hide quoted text -
>
> - Show quoted text -

Zhigang Sun

unread,
Mar 26, 2010, 11:14:51 AM3/26/10
to sunner-moo...@googlegroups.com

In the testcase setting page, the feedback fields are under every case's output field

--
孙志岗 (Sun Zhigang)
http://sunner.cn

On Mar 26, 2010 11:01 PM, "Tom Hill" <tomh...@gmail.com> wrote:

Sun-
I cannot find the feedback field to which your refer.




On Mar 25, 7:22 pm, Zhigang Sun <sun...@gmail.com> wrote:

> On Fri, Mar 26, 2010 at 05:45, Tom Hill <tomhi...@gmail.com> wrote:
>

> > But the only feedback th...

> > .
> > > >>>> For more options, visit this group at

> > > >>>>http://groups.google.com/group/sunn...

> > sunner-moodle-pl...@googlegroups.com<sunner-moodle-plugins%2B­unsub...@googlegroups.com>

> > .
> > For more options, visit this group at

> >http://groups.google.com/group/sunner-moodle-plugins?hl=en.- Hide quoted text -
>
> - Show quoted text -


--

You received this message because you are subscribed to the Google Groups "Sunner Moodle Plugins" gr...

Reply all
Reply to author
Forward
0 new messages