Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:create:points [26.01.2015 08:38] – [Multiple Choice Response Pattern] alexander.ritteren:create:points [26.01.2015 09:56] – [Correct and Incorrect Answers] alexander.ritter
Line 18: Line 18:
 The simplest way of keeping score is for a quiz or a knowledge test. These have a range of selection questions and one of the options is correct for each one.  The simplest way of keeping score is for a quiz or a knowledge test. These have a range of selection questions and one of the options is correct for each one. 
  
-The following PHP code initially defines which questions will be analyzed and what the correct response is. An [[:en:create:array|associative array]] is used accordingly: the variable ID (for selection questions this is the question ID) is used as the key for each entry in the array. Each answer code that will be counted as "correct" is assigned as the value.   +The following PHP code initially defines which questions will be evaluated and what the correct response is. An [[:en:create:array|associative array]] is used accordingly: the variable ID (for selection questions this is the question ID) is used as the key for each entry in the array. Each answer code that will be counted as "correct" is assigned as the value.   
  
  
-Following this, all questions are checked in a FOR loop -- it is significantly more compact than having a dozen IF constructions.+Following this, all questions are checked in a FOR loop -- this is significantly more compact than having a dozen IF constructions.
  
  
en/create/points.txt · Last modified: 30.03.2022 15:28 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki