Which of the following pseudocodes can be used to handle program exceptions?
A.
If program detects another instance of itself, then kill program instance.
B.
If user enters invalid input, then restart program.
C.
If program module crashes, then restart program module.
D.
If user’s input exceeds buffer length, then truncate the input.