which is an example of judicial review? is the answer A judge compares a law to constitution and declares a law unconstitutional and of no effect?

Yes, that is correct. Judicial review is the power of the courts to review laws and actions of the government to determine if they are constitutional. If a judge finds that a law or action is unconstitutional, they can declare it null and void.