Gets the size of the response space for a given question. For example, if the question is exclusive (i.e., a
radio button question), this will return the number of possible options. If the question is not exclusive (i.e.,
a checkbox question), this will return 2^|number of options|.
q - The question whose sample space we wish to know.
An integer corresponding to the size of the sample space.
Generates a string for freetext questions. If the input question's freetextPattern field is not null, it will
generate a random regular expression. If the freetextPattern field is null, but the freetextDefault field is not,
it will return the default string. Otherwise, it will return the string "DEFAULT".
q - The question whose string response we wish to generate.