The Panama question is tricky, given that many geographers consider Panama to be a trans-continental nation (like Turkey or Egypt). The boundary between North and South America is either the Panama Canal or the Darien Gap, leaving a small portion of Panama in South America, so really the answer should be "both".