1. Do you ask what it was?

2. Do you tell what it was?
3. Do you remember what it was?

4. What do you suppose it was?
5. What do you imagine it was?
6. What do you believe it was?
----------------------------------------
Are they all grammatical?

All are grammatically correct, but 1 and 2 are very awkward and not used. The rest are fine.