Let f(x) be the minimal polynomial of the 4x4 matrix A equal to
0 0 0 1
1 0 0 0
0 1 0 0
0 0 1 0
Then rank of the 4x4 matrix f(A) is

Let f(x) be the minimal polynomial of the 4x4 matrix A equal to
0 0 0 1
1 0 0 0
0 1 0 0
0 0 1 0
Then rank of the 4x4 matrix f(A) is

From definition of minimal polynomial, we have
$$f(A)=0$$.
Are you able to compute its rank?