Practice Free PCPP-32-101 Exam Online Questions
Question #21
What is true about type in the object-oriented programming sense?
- A . It is the bottommost type that any object can inherit from.
- B . It is a built-in method that allows enumeration of composite objects
- C . It is the topmost type that any class can inherit from.
- D . It is an object used to instantiate a class.
Correct Answer: C
Question #22

Analyze the following snippet and decide whether the code is correct and/or which method should be distinguished as a class method.
- A . There is only one initializer, so there is no need for a class method
- B . The getNumberOfCrosswords() method Should be decorated with @classmethod
- C . The code is erroneous
- D . The getNumberOfCrosswords() and isSolved methods should be decorated with @classmethod
Correct Answer: B
Question #23
If purple can be obtained from mixing red and blue, which color codes represent the two ingredients? (Choose two.)
- A . #FFFFFF
- B . #0000FF
- C . #FF0000
- D . #000000
Correct Answer: BC
Question #24

Analyze the code and choose the best statement that describes it.
- A . __ne__() is not a built-in special method.
- B . The code is erroneous
- C . The code is responsible for the support of the negation operator, e.g. a = – a
- D . The code is responsible for the support of the inequality operator, i.e. !=
Correct Answer: D
