I think there is an error in Q13, that is definitely not the graph of y = tan(3x) and even if we ignored the graph, the required integral is divergent, so just ignore this question.
And for Q12, I don't know if I'm hallucinating or there's actually no k in the whole question.