And if any field can be empty, you need to use coalesce(${SelectOneVariable}, '0'). See https://getodk.github.io/xforms-spec/#fn:coalesce. This function works with strings. An empty field will then count with 0 for your average. If you want to only calculate an average of the sum of non-empty fields, you would need another approach/formula.
So, you might finally best use (number(coalesce(${SelectOneVariable}, '0')) + ...) div 11.
For testing your calculations, you could temporarily change the type to decimal. (Or show them in a note.)
Thank you for the detailed explanation. I will try your recommendation.
Yes the online validator is what I usually use to finalize the document and translate everything to XML but wanted not to make ten million mistakes before getting to that phases on this rather long document.
Good catch on the empty field issue. I am requiring an answer, so no field will be empty, but I am curious to see how the coalesce command works. I have read about it but avoided it because it sort of bends my mind when trying to work out its logic.
Sorry, brackets number is unbalanced. The online validator and Central test feature will notice this and show an error. You can remove the one ( before number(..), everywhere.