In reply to dave_59:
Actually this question was asked to me in Interview. And I went through callback chapter in SYSTEMVERILOG FOR VERIFICATION A Guide to Learning the Testbench Language Features Page no 236 they mentioned of post and pre callback mechanism I could not understand where to use them…