What does ‘dingbat’ mean?

( n ) A stupid or foolish person. Archie Bunker always called his wife a ding- bat.