If you have been living in another country for more than a year, even if on a tourist visa, you should answer 'yes' to 'Have you ever resided in another country?' Then attach an explanation that it was on a tourist visa, etc. If it has only been a few months on a tourist visa, then answer 'no.' If it has been a few months at a time, then you went home, then returned for a few months visit, and so on, all on a tourist visa, then 'no', but make sure you explain the circumstances.
In either case, make sure you note all times you have stayed with your wife. Even two weeks together in a hotel should be noted somewhere.