When your blazor page will render first time, it will not yet have awaited your async operation, it will re-render once that operation is done.
Meaning on first render your testquestion
will be empty – that’s why you have Index Out Of Range, so you need to handle it, say for example “if testquestion is empty – display loading”
CLICK HERE to find out more related problems solutions.