PLEASE HELP ASAP!! I WILL MARK YOU BRAINEST. This question is about World War 1.

What roles did militarism, alliances, imperialism, and nationalism play in the outbreak of war in Europe?