how does kernel know what functions to run when a trap occurs? group of answer choices none of these options. the kernel does not really keep track of traps generated by users. the kernel has an implementation of a trap table that maps trap numbers to system call handlers. the programmer is responsible for writing exception-handling code for the kernel.