How to determine of some website was "deindexed" / penalized by Google?

What are ways to discover it?

I found this instruction. Go to Google and search for: site:"yourdomain.tld"

If Google find some of your sub pages, it does NOT mean your site is OK. It can still mean it is somehow penalized by Google.