The first question on the quiz seems wrong. Attributes just means properties, as mentioned in the course chapter introduction to classes and objects. Why would it have two parts?
There is nothing wrong with the question nor with answer. The question is that we have data and functions so what are the 2 types of them in class definition. In the introduction chapter you have read that the data will come in the category of properties and the functions will come in methods. So, it is asking about the 2 types for class definition not for attributes/properties.