Answer: B 
K25.1 is the appropriate code because it is used for acute gastric ulcer with perforation which is the diagnosis in Mr. Donald. 
Option A is not correct because K25.3 is used to code for acute gastric ulcer without hemorrhage or perforation which is not the diagnosis in this case. 
Option B is not correct because K25.7 codes for chronic gastric ulcer without hemorrhage or perforation. 
Option D is not correct because K25.2 codes for acute gastric ulcer with both hemorrhage and perforation. Here, hemorrhage is not seen.