You mentioned "quiz settings". Was that a mistype, or are you actually talking about the quiz activity? If so, please go to the quiz forum and ask your question there.
If you are asking about adding branching questions to the questionnaire, please start here - https://docs.moodle.org/32/en/Adding/editing_a_questionnaire#Allow_branching_questions.
mike