Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Object-Oriented Python Dice Roller Review: Object-Oriented Python

I feel like some topics on this quiz weren't covered in this course

Is it just me or did we not learn all of this

Chris Freeman
Chris Freeman
Treehouse Moderator 68,423 Points

Can you provide an example of a quiz question that was not covered?

2 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,423 Points

Hi Aizah Sadiq, Let's go over each question. Some of the quiz questions were covered in earlier sections of course. Given that you might have spread the content across a longer period, it can be difficult to remember all of the lessons. That is ok. The quizzes give you opportunity to check your knowledge and review material as needed.

The first question relating to classmethod and factory design pattern was covered in the constructicons unit. In a quick review, I did not see where the phrase "factory design pattern" was explicitly used. This makes the question a bit harder to synthesize the correct answer.

In examining the class of an instance, one clue to the correct answer is the functions beginning with "is" usually return a Boolean response and not a string. The type function was covered in family-tree.

The methods used to modify a class property is covered in special-methods. Here the answer would be <property_name>.setter and <property_name>

Post back if you need more help. Good luck!!

I felt like the following questions weren't fully covered, or covered very well.

The factory design pattern is mostly associated with which method type in Python? I thought it was classmethod but I don't remember learning that.

Which function will give me the class of an instance? I guessed isinstance() and it was wrong. I also do not remember any of the other answer options mentioned.

Please fill in the correct answer in each blank provided below.

@property
def volume(self):
    return self._volume

@.
def (self, num):
    self._volume = num

for this question, I feel like it may have been mentioned but I don't know what the answer is. Thanks for your help:)