337 Commits

Author SHA1 Message Date
kaipe
1754624916 Fixed bug that was pointed out by Tom Cat:
The reuse of old quiz_answers records for question type multianswer/embedded did not work properly.
2003-08-10 12:09:49 +00:00
selliott
52dd8d7dbf selliott - Fixed mixup in feedback for true/false questions 2003-08-08 18:06:41 +00:00
moodler
9e1942c056 Fixed a typo on the multianswer table definition 2003-08-05 05:11:43 +00:00
stronk7
03877c6c61 Changed "eachattemptbuildsonthelast" column name to
"attemptonlast". Seems to work.
2003-08-04 18:39:25 +00:00
stronk7
22ad18b972 ATTEMPTONLAST are included in backup/restore too !! 2003-08-04 10:38:51 +00:00
stronk7
d6478d4f82 Changed "eachattemptbuildsonthelast" column name to
"attemptonlast". Seems to work.
2003-08-04 10:31:12 +00:00
kaipe
586b2c82ed New quiz option - "Each attempt builds on the last"
This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt.
It seems to work fine with one little twisted exception:
Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO.
Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

As always, I can not commit lang/en/quiz.php.
---
As I was using the function quiz_get_attempt_responses I had it refactored removing the obsolete argument $quiz. I also changed the call from review.php
2003-08-03 23:00:45 +00:00
kaipe
0f36ecb9ea New quiz option - "Each attempt builds on the last"
This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt.
It seems to work fine with one little twisted exception:
Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO.
Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

As always, I can not commit lang/en/quiz.php.
2003-08-03 22:54:02 +00:00
kaipe
5a24a01868 Resolving bug #576.
This solution shows the message "Recently added question!" and the question text for each question that has been added since the reviewed attempt.
The advantage with the chosen solution is that it will work fine for the (soon to come) "Each attempt builds on the last" quiz option.

As I don't have the karma needed for updating in lang/en/, the message does not yet look quite as I described it above.
2003-08-03 21:39:32 +00:00
kaipe
bdb63d64f2 Debugged question types NUMERICAL and MULTIANSWER (known as embedded answers) as these did not do things right whenever a student had not given any response (was treated as zero etc).
For numerical there was also a need to allow typical shortanswer responses whenever there could be answers like n/a, inf, -inf, nan etc.
Further more about numerical, there can be more than one answer alternative defined (just like for shortanswer). This is not supported by numerical.html but everywhere else. MULTIANSWER included, it is up to any taker to update numerical.html. This is more than likely to lead to overlappings between numerical ranges if more than one is defined. Think of the case where the highest grade answer ranges between 0 and 2 and the half grade answer ranges between 2 and 4. How should we grade 2? We should pick the highest grade!
2003-08-03 20:02:43 +00:00
stronk7
e5fc599647 Forget delete some debug, sorry. :-) 2003-08-03 16:41:31 +00:00
stronk7
13d0fb4bbf Now, when a category exists, if we are restoring to a different course,
set utomatically the publish field to 1.
If a question exists in DB (by category, questiontext and qtype) it isn't
duplicated.
This produce some problems restoring answes, but avoid duplicates.
2003-08-03 16:36:29 +00:00
moodler
8883c4a885 Less fiddly looking icon 2003-08-02 05:05:09 +00:00
moodler
567b01bceb Quick icon for multiple answers 2003-08-02 05:01:02 +00:00
kaipe
2e3e1ac76b Added the choice of 16.666% for multichoice fraction 2003-08-01 13:24:05 +00:00
kaipe
8b439f8c16 New question type - multianswer 2003-08-01 08:37:11 +00:00
kaipe
44fc346f45 Refactoring only, no new features -
Modified methods are quiz_get_answers and quiz_grade_attempt_results.
For quiz_grade_attempt_results, the switch statement has been separated out into method quiz_grade_attempt_question_result.
2003-07-29 09:11:06 +00:00
moodler
48705c8d40 Latest fixes from Thomas Robb - thanks Thomas! 2003-07-29 04:18:01 +00:00
stronk7
902142c079 Added language support 2003-07-28 19:32:51 +00:00
stronk7
a8c0abbfb1 Added language suport 2003-07-28 19:24:09 +00:00
moodler
250e71d967 When a quiz is closing within the next 24 hours, a small countdown
is shown in the titlebar (drawn with javascript).

An alert is shown at ten minutes, and zero minutes.

This doesn't prevent students from doing anything, but it serves
as a reminder and just looks cool.  ;-)
2003-07-28 08:58:47 +00:00
moodler
3a04632eb7 Fixes for file names 2003-07-28 03:26:32 +00:00
moodler
8b0ef9b0cb Improvements to simplestat (more info in HTML display plus downloads XLS an TXT) 2003-07-28 02:04:58 +00:00
moodler
f9919efd87 Better averages when students are missing 2003-07-24 16:59:11 +00:00
moodler
40b1a22162 Further changes to tidy up reports 2003-07-24 16:48:10 +00:00
moodler
c90f563e39 New simplestat report module.
This is very simple so far just to do some tests on larger datasets.

Soon it will have XLS and text download, as well as more question
information.
2003-07-24 16:43:24 +00:00
moodler
779e79f438 Better string for teacher reports 2003-07-24 06:21:21 +00:00
moodler
29d5d0b40c New modular plugin structure for quiz reports.
The code for reviewing an existing attempt is now separate
in review.php and now has a log entry of it's own.

The overview and regrade reports are now in separate subdirectories
under the "report" directory.  Each has a primary "report.php" file
which implements the report as a class.

These existing reports are very simple, but now more complex ones
can easily be written.  (I am about to do one).
2003-07-24 05:18:00 +00:00
moodler
cee5ff1d04 Better layout of gathering quiz results, which mkes it easier for developers
at the cost of perhaps a little efficiency ... some more testing on this i
should be done.   Thanks to Henrick Kaipe for this.
2003-07-24 02:04:22 +00:00
stronk7
3960a44b62 Reviewing an attempt now works fine with NUMERICAL and SHORTANSWERS
containing the "," character. Bug #561 closed.
2003-07-21 17:25:59 +00:00
stronk7
e2bad68d23 Now numerical questions are included in backup and restore too !! 2003-07-19 18:01:11 +00:00
stronk7
5bcd2fa872 Modified a bit the form to avoid bug 556.
Seems to work fine now (render-html bug)
2003-07-17 22:11:08 +00:00
moodler
263cff8b75 Print images correctly on questions included from categories in
other courses.
2003-07-12 16:24:29 +00:00
moodler
cccb016ae4 When displaying index lists of a particular module's activities,
ensure that the order they are displayed in is always the same as the
order they have been defined in.   See bug 553.

This involved API changes to the function get_all_instances_in_course()
2003-07-12 05:19:18 +00:00
moodler
9c02661096 Added a question field to numerical table for completeness 2003-07-10 14:09:43 +00:00
moodler
361f649d7a New question type: Numerical questions.
Mostly coded by Henrik Kaipe - I changed a few things on the way in.
2003-07-10 13:25:07 +00:00
moodler
d7c93ec8fa Moving the backup libraries for each module into their new homes.
There's some beer and pies in the fridge, guys, settle in.
2003-07-09 04:40:35 +00:00
moodler
5da9e4a5ac Small bugfix to allow question categories to be changed 2003-07-07 15:08:03 +00:00
moodler
bca64a122b Don't allow grades to ever be set for description questions 2003-07-06 04:19:11 +00:00
moodler
f65ed9726a Don't shuffle quiz questions by default (confusing to newcomers) 2003-07-06 04:08:46 +00:00
moodler
575de48fc3 Description questions should not be selected randomly 2003-07-06 04:08:11 +00:00
moodler
401c8de6c5 New question type called "Description". All it does is print some
text and/or an image, without requiring an answer.  Can be used
to provide text for a following group of questions, or to insert
a joke in the quiz etc ...

This code is based on code sent in by Ursula Raab.  Thanks!

See: http://moodle.org/mod/forum/discuss.php?d=508
2003-07-06 04:00:05 +00:00
stronk7
7bfa4fade3 Excluded form quiz_choose_random_questions the quiz
questions to avoid duplicates in quiz. Bug #544. Closed.
2003-07-02 17:30:42 +00:00
moodler
717f40c6d8 Some fixes to avoid pointless uses of $ME 2003-06-16 14:40:51 +00:00
moodler
0880e50d53 Wider question textareas 2003-06-13 16:16:16 +00:00
moodler
a6e5c89237 Changes to includes to make it more robust on different versions of PHP
while remaining secure
2003-06-12 12:00:15 +00:00
moodler
8c8a042559 Rmoved dot 2003-06-12 03:42:55 +00:00
moodler
34c84a186c Extensions for grades and comments from Thomas Robb. 2003-06-12 03:01:56 +00:00
moodler
21b1125f63 Make form destinations relative (to course/mod.php) to avoid
some form problems on mis-configured servers (wwwroot not quite right)
2003-06-10 05:33:58 +00:00
moodler
a5f25c0165 No need to shuffle the answers of multi-choice questions 2003-06-09 14:05:37 +00:00