First puzzle
That's main moral of the puzzle. If somebody gives you queen for free - FIRST CHECK ALL THE VARIANTS!!!! And then take knight with pawn.
That would have been a better choice for black than getting checkmated immediately. White then regains his piece by Qxg4 leaving white up a pawn. So Nxd5 is the correct move for white to start the puzzle.