Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute PCAP-31-03 Exam - Topic 2 Question 107 Discussion

A class constructor (Select two answers)
B) cannot be invoked directly from inside the class and C) can be invoked directly from any of the subclasses
A) can return a value
D) can be invoked directly from any of the superclasses

Python Institute PCAP-31-03 Exam - Topic 2 Question 107 Discussion

Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 107
Topic #: 2
[All PCAP-31-03 Questions]

A class constructor (Select two answers)

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

0/2000 characters
Gracia
37 minutes ago
Right, D is misleading. Constructors are for creating instances.
upvoted 0 times
...
Teri
5 days ago
D seems off too. Superclasses don’t invoke constructors directly.
upvoted 0 times
...
Rory
10 days ago
Yes, C makes sense. It’s how inheritance works.
upvoted 0 times
...
Gussie
16 days ago
I believe C is correct. Subclasses can call the constructor.
upvoted 0 times
...
Rozella
21 days ago
Agreed, A is definitely incorrect.
upvoted 0 times
...
Brandon
26 days ago
I think A is wrong. Constructors don’t return values.
upvoted 0 times
...
Ernest
1 month ago
Yeah, it's all about the initialization, no return values!
upvoted 0 times
...
Doug
1 month ago
I thought constructors could be called from superclasses too?
upvoted 0 times
...
Malcolm
1 month ago
Wait, can it really be invoked from subclasses? That seems off.
upvoted 0 times
...
Tricia
2 months ago
Totally agree, it’s just for initializing objects!
upvoted 0 times
...
Micaela
2 months ago
A constructor can't return a value, right?
upvoted 0 times
...
Ivette
2 months ago
I’m confused about whether a constructor can be invoked from a superclass. I need to review that part again.
upvoted 0 times
...
Erick
2 months ago
I feel like we practiced a question similar to this, and I think constructors can only be invoked in certain ways.
upvoted 0 times
...
Eden
2 months ago
I remember something about constructors being called in subclasses, so maybe option C is correct?
upvoted 0 times
...
Nickolas
2 months ago
I think a constructor can't return a value, but I'm not sure about the invocation rules.
upvoted 0 times
...

Save Cancel