Test work
In this test the most important skill is choosing the object that suits the task: a CheckBox if several options may be ticked, a RadioGroup for exactly one option, a ComboBox for a compact list, a ListBox for a long list, a SpinEdit for a whole number, a Memo for a multi-line result. Then use the properties (Items, ItemIndex, Checked, Value, Lines) and the methods (Add, Delete, Clear, Count) correctly. In code analysis calculate the number of lines or the sum step by step. When building an application first calculate the expected result with test data, then compare with F9: if there is a difference, first check that indexes start at 0 and check the loop limits.
| Task | Object |
|---|---|
| mark several | CheckBox |
| choose exactly one | RadioGroup |
| compact list | ComboBox |
| long list | ListBox |
| a whole number | SpinEdit |
| multi-line result | Memo |
On a paper survey a small circle is drawn for a “only one answer” question and a square box for a “tick all that apply” question. In this way the form maker explains the rule without writing it out. A well-chosen shape prevents mistakes.
Survey writers, form designers and interface creators choose the control that suits the task.
Make a 3-question mini survey on paper: one with only one answer, one with several answers, one asking for a short number; draw the right circle, square or line for each.
“Find the object”: a group writes 10 tasks (for example choice, list, number, text); another group finds the matching object for each and writes the reason in one sentence.