Fullscreen
[Show/Hide Right Column]

Create an exercise for a user to complete and grade

PluginExercise

New to Tiki9

Creates exercises within a wiki page for students to test their new skills. Use this plugin to define inline questions and give optional answers to be selected from. A score is given for multiple exercises within a page.

The plugin can be used to create questions with suggested answers or with a text input. Here is a sample exercise:

Choose the correct homonym between where/were/we're
This week-end {exercise answer=we're} going to go {exercise answer=where} 
we {exercise answer=were} best served.

{exercise}


The above example will display the sentence with 3 text boxes where the exercise plugins are included inline. The plugin that does not expect an answer will be used to display the controls to check the score. There can be multiple exercise blocks within a single page.

The same example could be made by providing suggestions instead:



Choose the correct homonym between where/were/we're
This week-end {exercise answer=we're} going to go {exercise answer=where} 
we {exercise answer=were} best served.

{EXERCISE()}
--- Comments can be written after the triple-dash.
where
were
---
were
we're
---
where: Not a location
we're: Cannot be replaced by 'we are'
{EXERCISE}


Instead of displaying text boxes, drop-down will be displayed. The last section indicates the other options to display additionally to the right answer specified in-line. The order will be randomized.

The last question also specifies justifications that will be provided after the correction is made.

Alternatively, the options can be provided in-line instead of in the end block. This may be helpful to keep the information in-context, but sacrifices some readability in the text.

Choose the correct homonym between where/were/we're
This week-end {exercise answer=we're incorrect="where + were"} going to 
go {exercise answer=where incorrect="were + we're"} we {exercise 
answer=were incorrect="where (Not a location) + we're (Cannot be 
replaced by 'we are')"} best served.

{exercise}


Here's a screenshot of what the above code would produce:
Image

This version will present the same drop-downs and justification as the prior example.

In-line and block level can be mixed as well. However, it is recommended to use comments when doing so.

Required parameters are in bold
Parameters
no parameters




This is for Tiki9. If you need in Tiki6, please see: Backporting Tiki9 code into Tiki6


Contributors to this page: Marc Laporte9146 points  , lindon137 điểm  , Louis-Philippe Huberdeau1046 points  and xavi67984 points  .
Page last modified on Monday 16 April, 2012 03:56:12 UTC by Marc Laporte9146 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki

Show php error messages
 
PHP (5.3.5-1ubuntu7.8) ERROR (E_WARNING):
File: lib/wiki-plugins/wikiplugin_pluginmanager.php
Line: 382
Type: include_once(lib/wiki-plugins/wikiplugin_exercise.php) [function.include-once]: failed to open stream: No such file or directory
PHP (5.3.5-1ubuntu7.8) ERROR (E_WARNING):
File: lib/wiki-plugins/wikiplugin_pluginmanager.php
Line: 382
Type: include_once() [function.include]: Failed opening 'lib/wiki-plugins/wikiplugin_exercise.php' for inclusion (include_path='/var/local/doc.tiki.org/www/lib/pear:.:/usr/share/php:/usr/share/pear:/var/local/doc.tiki.org/www/lib/core:/var/local/doc.tiki.org/www/')