When I was taking CS Engineering UG course(IN~2008), there was an elective subject(have to be chosen by entire class) called 'Engineering Ethics'. It was a preferred elective as there was no course work and I think there were no tests as well.
I remember the professor starting the class as,
>"If a Structural/Civil Engineer builds a bridge and it goes down, he/she will go to jail; lucky for you guys there are no ethics for computer science".
Last time when I said this, I was told there's no way a Structural/Civil Engineer goes to jail if a bridge goes down. May be its more common in India, could be very well be the norm because every time a bridge goes down a related Engineer gets arrested the very same day or soon under 'Causing death by negligence'; perhaps a practice from colonial era still being practiced to pacify public.
Read:
Another BMC engineer arrested in Mumbai bridge collapse(2019)[1]
Bhubaneswar flyover collapse: Engineer, director of construction firm arrested(2017)[2]
4 Engineers Arrested In Kolkata Flyover Collapse Case(2016)[3]
IIT Roorkee: Two professors arrested in bridge collapse case(2015)[4]
SMC engineer held in bridge collapse case suspended(2014)[5]
Gammon, Hyundai officials arrested, probe ordered(2009)[6]
I'm sure you can pull up such cases going back at least 200 years.
[1]https://www.deccanchronicle.com/nation/current-affairs/02041...
[2]https://www.hindustantimes.com/india-news/bhubaneswar-flyove...
[3]https://www.ndtv.com/kolkata-news/4-engineers-arrested-in-ko...
[4]https://www.indiatoday.in/india/story/iit-roorkee-two-profes...
[5]http://timesofindia.indiatimes.com/articleshow/38044181.cms
[6]https://www.ndtv.com/india-news/kota-bridge-collapse-30-dead...