Is it necessary to ask whether someone is a Muslim or not or can you assume they are Muslim by looking at signs that point to them being Muslim? For example they might have a Muslim Name, be from a Muslim country and speak a language from a Muslim country, etc.

If there are indications that they are Muslim, like having a Muslim name or coming from a Muslim-majority country, then yes you may consider them Muslim.