Right choice is (b) mysql sampdb < exec.sql
The best I can explain: mysql queries can be run after placing the queries in a file, and then executing it by feeding it to mysql. By default, mysql prints output in a tab-delimited format when it is running in noninteractive mode.