Synopsys Interview Question

Difference between latch and flip flop and verilog codes for them.