Which lifecycle phase is typically used to gather user input via prompts?

Study for the Yeoman (YN) Test. Enhance your knowledge with multiple-choice questions, hints, and explanations. Prepare effectively for your exam!

Multiple Choice

Which lifecycle phase is typically used to gather user input via prompts?

Explanation:
Gathering user input happens during the prompting stage. This stage is where you define questions and collect the user’s responses, typically using a prompting library like Inquirer. The answers obtained here drive how the generator will create files later. For example, you might ask for a project name or preferred features, and then the writing phase uses those answers to fill templates and generate the project files. The other stages happen after you have the input: installing runs dependencies, writing creates the files from the collected data, and end handles finalization. So prompting is the phase designed specifically to gather input.

Gathering user input happens during the prompting stage. This stage is where you define questions and collect the user’s responses, typically using a prompting library like Inquirer. The answers obtained here drive how the generator will create files later. For example, you might ask for a project name or preferred features, and then the writing phase uses those answers to fill templates and generate the project files. The other stages happen after you have the input: installing runs dependencies, writing creates the files from the collected data, and end handles finalization. So prompting is the phase designed specifically to gather input.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy