def generate_args(num):
    """ Returns questionmarks separated by commas as a string to be used by the insert command. """
    args_str = ''
    for i in range(0, num):
        if i == num - 1:
            args_str += '?'
        else:
            args_str += '?,'
    return args_str