-

Note: You are currently viewing documentation for Moodle 3.10. Up-to-date documentation for the latest stable version of Moodle may be available here: Random assignment.

Random assignment: Difference between revisions

From MoodleDocs
m (cat edit)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__


'''Random assignment''' is an attempt to handle larger classes of students. For this purpose, we generate a series of html or pdf files with the
'''Random assignment''' is an attempt to handle larger classes of students. For this purpose, we generate a series of html (txt, pdf, ...) files with the
same structure but different numbers. In addition, we generate corresponding files with hints to solutions for teachers.  
same structure but different numbers. In addition, we generate corresponding files with hints to solutions for teachers.  
[[Random_assignment19 | Random assignment for Moodle 1.9 or 1.8]]


== Basic functionality of the module ==
== Basic functionality of the module ==
Line 8: Line 10:
=== Students ===
=== Students ===


* Each student gets one file from a given directory randomly.
* Each student gets one file randomly.
* If the file has extension htm or html, it will be shown directly at the assignment page. Otherwise, only a link to file will be shown.
* If the file has extension htm, html, or txt, it will be shown directly at the assignment page. Otherwise, only a link to file will be shown.


=== Teachers ===
=== Teachers ===


* Teacher specifies a directory containing one or more files for assignments and (optionally) a directory with solutions
* Teacher specifies one or more files for assignments and (optionally) solution files with the same names
* In the assignment feedback page, teacher sees the assignment file and optionally the solution file as well. However, assignments are assigned to students (and teacher sees links to them) only after they see them for the first time.
* In the assignment feedback page, teacher sees the assignment file and optionally the solution file as well. However, assignments are assigned to students (and teacher sees links to them) only after they see them for the first time.
=== Directory structure ===
The following structure of directories must be created in the course area
  /moddata/random
  /moddata/random/assignment
  /moddata/random/solution
The assignments and solutions are then stored in subdirectories of these directories with numerical names (that need not be the same), for example
  /moddata/random/assignment/10
  /moddata/random/solution/20
We can for example have
  /moddata/random/assignment/10/file1.html
  /moddata/random/assignment/10/otherfile.html
  /moddata/random/assignment/10/file2.pdf
  /moddata/random/assignment/10/file-without-solution.doc
and (if needed)
  /moddata/random/solution/20/file1.html
  /moddata/random/solution/20/otherfile.html
  /moddata/random/solution/20/file2.pdf 


==Installation==
==Installation==


* Copy directory random/ to moodle/mod/assignment/type/
* Copy directory random/ to moodle/mod/assignment/type/.
* Add the content of the language file lang/en_utf8/random_assignment.php to moodle/lang/en_utf8/assignment.php
* If needed, add your language. Language files are located in moodle/mod/assignment/type/random/lang
* Optionally, for better security, add the content in file.php (file.part.php) regarding random assignment to the corresponding place in moodle/file.php (otherwise, students can guess the solution directory name and then they can read the solution directly from server). Only if there are solutions.  
* If upgrade from Moodle 1.9 will be performed, replace the file assignment/db/upgrade.php by the provided one.


==Preparation for assignments==
==Creation of an assignment==


* In the files area check whether directory 'moddata' exists. If not, create it.
* Create activity: Assignment: random assignment and specify files for assignments and solutions.
* In the directory moddata, create directory 'random'.
* In the directory random, create two directories: 'assignment' and 'solution'.  


==Creation of an assignment==
* Create a directory with numerical name in directory 'assignment'. Numerical name can be for example 1, 2, 10, 300, ...
* Copy files with assignments to this directory.
* Optionally, create a directory in directory 'solution' with numerical name and copy the files with the same names as before. These contain solutions or hints to solutions for teachers.
* Create activity: random assignment and specify directories for assignments and solutions.
==Credits==
==Credits==


Line 67: Line 34:
* Lubos Cirka - Slovak Technical University in Bratislava > development
* Lubos Cirka - Slovak Technical University in Bratislava > development
* Miroslav Fikar - Slovak Technical University in Bratislava > design concept
* Miroslav Fikar - Slovak Technical University in Bratislava > design concept
==Links==
* [http://www.kirp.chtf.stuba.sk/moodle/file.php/1/random_assignment.zip Download]


==Issues==
==Issues==


* Course restore without user data does not restore assignment and solution files.  
* Not known at the moment.


[[Category:Contributed code]]
[[Category:Contributed code]]

Latest revision as of 16:09, 20 April 2011


Random assignment is an attempt to handle larger classes of students. For this purpose, we generate a series of html (txt, pdf, ...) files with the same structure but different numbers. In addition, we generate corresponding files with hints to solutions for teachers.

Random assignment for Moodle 1.9 or 1.8

Basic functionality of the module

Students

  • Each student gets one file randomly.
  • If the file has extension htm, html, or txt, it will be shown directly at the assignment page. Otherwise, only a link to file will be shown.

Teachers

  • Teacher specifies one or more files for assignments and (optionally) solution files with the same names
  • In the assignment feedback page, teacher sees the assignment file and optionally the solution file as well. However, assignments are assigned to students (and teacher sees links to them) only after they see them for the first time.

Installation

  • Copy directory random/ to moodle/mod/assignment/type/.
  • If needed, add your language. Language files are located in moodle/mod/assignment/type/random/lang
  • If upgrade from Moodle 1.9 will be performed, replace the file assignment/db/upgrade.php by the provided one.

Creation of an assignment

  • Create activity: Assignment: random assignment and specify files for assignments and solutions.

Credits

The activity has been designed and built with the contributions of the following people:

  • Lubos Cirka - Slovak Technical University in Bratislava > development
  • Miroslav Fikar - Slovak Technical University in Bratislava > design concept

Issues

  • Not known at the moment.