LM-Light: A New E-Learning Standard
About LM-Light Courses Learning Management Systems More Info

Introduction

The LM-Light Standard
 - Course Structure
 - LM-Light Tags
 - Starting a Course
 - On Each Page
 - Exiting a Course
 - Starting a Test
 - Saving a Test Score
 - Course Completion
 - Configuration File

Course Development
 - Development Environment
 - Using a Text Editor
 - Including Tests
 - Using PowerPoint
    - Option 1 - PDF
    - Option 2 - GIF/JPG
    - Option 3 - HTML
 - Using Lectora
 - Download Tools
 - Diagnosing Problems

Home Page

LM-Light Standard : Creating Courses : Starting a Test

When you start a test, you should tell the LMS so that it can update its record of test attempts. The LMS may also want to check whether the student has exceeded a specified maximum number of test attempts. This is very easily done by embedding the following LM-Light statement somewhere in the course - usually on the same page as the first question:

<?php LMregisterTestAttempt(); ?>

Note: Some developers prefer to register the test attempt after all the questions have been answered but just before the test is graded. There is nothing in the LM-Light standard to prevent this - simply include the LMregisterTestAttempt tag on the page where the test is graded.

Example

Here is a simple example:

<?php require "LM-Light.php"; ?>
<?php LMregisterTestAttempt(); ?>
<html>
<head>
  <title>Question 1</title>
</head>
<body bgcolor="#ffffff">

<p>This is the first question.

</body>
</html>

Note that the page is not bookmarked. Although this is not a requirement of the LM-Light standard, this is generally the case for mastery test questions to prevent the student 'jumping' back into a course part way through.

 

Copyright & Licensing Information
Unless otherwise stated, material in this website is Copyright, Addison Robson LLC. Use of the website content for commercial and non-commercial purposes is permitted under Creative Commons licenses. For more information, please consult [this page] or use [this form] to contact us.
Creative Commons License