A slot is a narrow opening or gap. It is used to hold a part…