Do airlines or immigration officers verify the validity of visas(forged or real one) electronically when we are travelling from an african country to Schengen area, Canada or USA?
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
The US, Canada and several Schengen countries require passenger information be sent prior to departure so the answer is, yes, they can verify your Passport and Visa.
Whether they do is entirely up to them.
Seems Emirates has the most current list of countries that require this. It's generally called APIS (Advance Passenger Information System).