Breakdown of Você veio para a visita ao museu?
você
you
o museu
the museum
ao
to the, at the (a + o)
para
to, for
Questions & Answers about Você veio para a visita ao museu?
What verb does veio come from, and how do I avoid mixing it up with viu?
Veio is the simple past (pretérito perfeito) of vir (to come) for você, ele, ela, and a gente. Learners often mix up vir (to come) and ver (to see) in the past because both start with v-: vir becomes eu vim / você veio (I came / you came), while ver becomes eu vi / você viu (I saw / you saw). A helpful trick is that veio is longer and has an ei sound in the middle, whereas all the past forms of ver (vi, viu, vimos, viram) keep a single i right after the v.
How would I answer Você veio para a visita ao museu? with "Yes, I did"?
In Brazilian Portuguese, the most natural way to say "Yes, I did" is to answer with the main verb in the eu form: Vim! or Sim, eu vim. Because vir is irregular in the past, veio (for você) changes to vim (for eu). If you came with other people, you can answer Viemos! (with nós) or A gente veio! (with a gente).
Why does the sentence use para before a visita, but ao before museu?