Generate question object.