Does the sentence "In the 20th century, Serbo-Croatian served as the official language of the Kingdom of Yugoslavia (when it was called "Serbo-Croato-Slovenian"), and later as one of the official languages of the Socialist Federal Republic of Yugoslavia." answer the question "What was Serbo-Croatian the official language for in the 20th century?"
yes