Add this code to your exercise:
[% Begin Unverified Perl
my @headers = (
my $qname = QUESTIONNAME();
my ($qnum) = $qname =~ m/_Random([0-9]+)$/;
return $headers[$qnum - 1];
End Unverified %]
You can update line 3-5 to change the texts that appear in the first three tasks. Of course, this can be updated with the number of tasks in your exercise.
This code assumes your exercise has only random tasks. If you are using random tasks, it will need to be adjusted.