The second of those would be OK; the past tense refers back to a time when you were told the name. The first would be impolite, unless the person you were speaking to had told you before - in which case you'd say something like 'How old did you say you were?
I'm not sure what your last question means. If it means 'if you are uncertain', the same applies.
Student or Learner