I’m not quite sure what you’re asking, but in any case I couldn’t answer without some context.
I have a list of questions and one of the task …
Is this something you’re trying to build? study? homework?
one of the task is to store them separate into a JSON file
what is “them”?
what do you mean by “store” (are you talking about saving user input)?
Some general reasons for storing something in a separate file are organization, security, reusability (and by extension, flexibility)… hard to say without knowing what you’re trying to do.