In JavaSCript you use the plus symbole (+) to concatenate strings. So if you want to use JavaScript I would create Q6 as a free format hidden variable on the same page as Q1 through Q5 with value = "". Then, in custom JavaScript verification (so that it runs on page submit) you can put in something like
SSI_GetFormObject("Q6").value = SSI_GetValue("Q1") + SSI_GetValue("Q2") + SSI_GetValue("Q3") + SSI_GetValue("Q4") + SSI_GetValue("Q5");
the SSI_Get... functions were introduced in SSI Web 7 so if you are on an older version you can use
document.getElementById("questionName").value
to get and set form object values instead.