How can I understand if a task has dependency on a task in another project?

Once you add the dependecy, it will be shown as below:

For more details, refer the Setting inter-project predecessors section here.