Is it acceptable to publish student names with the label 'stupid question', on a publicly-visible website?
No. This is completely unacceptable. Sometimes faculty rant on social media and email lists where they do not think students will see the comments. Even this is frowned upon if the student could realize it is them being made fun of. It is completely inappropriate to make fun of students on a public website with students names.