The official Moroccan language spoken in houses and in the street is Moroccan Arabic « Darija », as well as « Tamazight ». Those two languages are not used in writing.
Moroccans also learn standard Arabic as a language. He is not spoken at home or on the street. Standard Arabic is frequently used in administrative offices, mosques and schools in Morocco.
Classical Arabic is still used only in literary and cultural aspects, formal traditional discourses and discussions of religion.
Nevertheless, thanks to its varied historical influences, part of the population also speaks French. Those working in the tourism industry also know English and Spanish. In addition, English quickly replaces French as the second language of the country.
You will find that most people you meet during your stay speak English, if you do not speak French; therefore, you should not worry about being understood in Morocco.