Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

CorrectWriting Auto-feedback question implementation: Difference between revisions

From MoodleDocs
m (Created page with "{{Work in progress}} ==Goal== This question type goal was to simplify report of student mistakes in a shortanswer question, when student is learning programming language or in ...")
 
No edit summary
Line 6: Line 6:


==Examples==
==Examples==
Please, consider the following tasks.
'''Function header in C language'''
Student must write simple function header for function, that is described naturally: void function(int abc, char def), with following descriptions of parts:
; void : type of returned value
; function : function name
; ( : bracket (or opening bracket for function arguments)
; int : first argument type
; abc : first argument name
; , : argument list separator
; char : second argument type
; def : second argument name
; ) : bracket (or closing bracket for function arguments)
'''English language sentence''': 
Student must write simple sentence, while learning foreign language: The cat ate the mouse, with following descriptions of parts
; The : definite article
; cat : subject
; ate : verb
; the : definite article
; mouse : complement
; . : sentence ending point

Revision as of 17:53, 28 November 2012

Note: This page is a work-in-progress. Feedback and suggested improvements are welcome. Please join the discussion on moodle.org or use the page comments.


Goal

This question type goal was to simplify report of student mistakes in a shortanswer question, when student is learning programming language or in simple cases of natural language learning, when student must write correct expression, and we should give him information about skipping some words or placing words in incorrect order. This also could be useful, when we don't give actual information about what words (or some kinds of symbols) was moved or absent in answer, but their meaning, thus forcing student to know what does this part of symbol means.

Examples

Please, consider the following tasks.

Function header in C language

Student must write simple function header for function, that is described naturally: void function(int abc, char def), with following descriptions of parts:

void
type of returned value
function
function name
(
bracket (or opening bracket for function arguments)
int
first argument type
abc
first argument name
,
argument list separator
char
second argument type
def
second argument name
)
bracket (or closing bracket for function arguments)

English language sentence:

Student must write simple sentence, while learning foreign language: The cat ate the mouse, with following descriptions of parts

The
definite article
cat
subject
ate
verb
the
definite article
mouse
complement
.
sentence ending point