Create a short-text question and an array question with only one answer. Insert the following script in the source of one of them. Replace "11" (line 5) with the ID of the short-text and "22" (line 6) with the ID of the array you want inline.

Note that the styles inserted here only apply to the default template and you my need to adjust the padding in line 40 if any of your array labels wrap.