A Boot sector virus infects the hard disk or the Master Boot Record of your computer system and executes itself…