No, it will be given to you in the question.
If it is not given in the question, I would personally assume it because that is how every question in the text has been that I’ve come across.
The generalformula is:
duration of swap = 0.5/(#pmts per year) - k*(maturity)
here, k=0.75