simwhi:
here's a short example(capx) with arrays in the source-code of the index.html. To call the functions from within C2 I've used the Call Javascript-Plugin. Afaik calling javascript-functions isn't possible without a custom plugin.
If you really want to insert data directly in the non minified version of the file c2runtime.js - I would recommand write an own plugin. When exporting a project, C2 inserts 'some' sourcecode of all the in the project used plugins in this file.
Just to mention: I personally would never implement it both possibilites shown above, because
1) a non minified version brings you no advantages - only the possibility to write messy javascript-code.
2) a plugin written only for one project isn't very useful for the next projects.
3) If I would need something like the example above I would write the scripts in an external file - eg "myScriptfile.js"
4) I've created some quizzes too and I personally prefer loading JSON-datas(per javascript) or anyway with ajax - just to seperate the datas completely from the runtime. That way I win the possibility to reuse the quizzes. The plugin load JSON is a small sideprodukt of a quizz I've made.. <img src="smileys/smiley2.gif" border="0" align="middle">