Practical lesson
In the practical lesson two applications are created. 1) “Mini-test”: three RadioGroups, in each of which one of four answer options is correct. When the button is pressed s := 0; if RadioGroup1.ItemIndex = 1 then s := s + 1; … and at the end Label1.Caption := 'Ball: ' + IntToStr(s) + ' / 3'; appears. Invent the questions yourself and write the number of the correct answer in your notebook before checking it in the program. 2) “Payment type”: the RadioGroup has Cash (0), Card (1), Transfer (2); a 5% discount is given for cash: if the price is 200000, s := 200000 * 95 div 100 (integer division). In shopping and payment applications do not ask for or save real card numbers or passwords: this is only a learning model.
A teacher created a self-check test: the pupil chooses one of four options, the program compares the chosen number with the stored correct number and shows the score. The pupil can try again.
Teachers, developers of online learning and creators of exam systems check answers automatically.
On paper write 2 invented questions with four options, put the correct answer numbers on a separate folded slip, let a friend answer and mark the answers yourself.
| Question | Options | Correct ItemIndex |
|---|---|---|
| 2+3*4 | 20, 14, 24, 12 | 1 |
| 15 mod 4 | 0, 1, 2, 3 | 3 |
| Length('Delphi') | 5, 6, 7, 8 | 1 |
“Test makers”: each pair writes 3 invented questions; another pair tests them in the application and checks the score for two sets of answers calculated in advance.