Is it possible to know whether the given line bundle over compact complex manifold or projective variety is trivial or not from its sheaf cohomology data?

I found this question when I trying to solve the exercise problem in voisin's book Hodge theory and complex algebraic geometry 1

(I haven't solve that problem yet)