Answer
See explanation below.
Work Step by Step
a) In this reaction, CN- acts as a nucleophile and adds to the carbonyl compound. This is an example of nucleophilic addition.
b) This reaction is an example of nucleophilic substitution, where one nucleophile replaces the other.