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

Blockchain CBDE Exam - Topic 5 Question 125 Discussion

Using selfdestruct(beneficiary) with the beneficiary being a contract without a payable fallback function:
B) it's impossible to secure a contract against receiving ether, because selfdestruct will always send ether to the address in the argument. This is a design decision of the Ethereum platform.
A) will throw an exception, because the fallback function is non-payable and thus cannot receive ether.
C) selfdestruct doesn't send anything to a contract, it just re-assigns the owner of the contract to a new person. Sending ether must be done outside of selfdestruct.

Blockchain CBDE Exam - Topic 5 Question 125 Discussion

Actual exam question for Blockchain's CBDE exam
Question #: 125
Topic #: 5
[All CBDE Questions]

Using selfdestruct(beneficiary) with the beneficiary being a contract without a payable fallback function:

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Margart
7 days ago
A is clear. Can't send ether to a contract without a payable function.
upvoted 0 times
...
Tambra
12 days ago
B is the best choice. It's a fundamental design of Ethereum.
upvoted 0 times
...
Audry
17 days ago
I disagree with C. Selfdestruct definitely sends ether to the address.
upvoted 0 times
...
Adrianna
22 days ago
A makes sense. If the fallback is non-payable, it should throw.
upvoted 0 times
...
Jeniffer
27 days ago
I lean towards B. Selfdestruct always sends ether, can't avoid that.
upvoted 0 times
...
Jacki
1 month ago
I think A is correct. Non-payable means no ether can be received.
upvoted 0 times
...
Magnolia
1 month ago
Wait, are we sure about B? That seems too absolute.
upvoted 0 times
...
Chauncey
1 month ago
C) is misleading, selfdestruct does send ether to the address.
upvoted 0 times
...
Marge
2 months ago
B) sounds off, selfdestruct does send ether, right?
upvoted 0 times
...
Bernardo
2 months ago
Totally agree with A! Makes sense.
upvoted 0 times
...
Queenie
2 months ago
A) is correct, can't send ether to a non-payable fallback.
upvoted 0 times
...
Theodora
2 months ago
Wait, are we sure about B? That seems too absolute.
upvoted 0 times
...
Colette
2 months ago
C) is misleading, selfdestruct does send ether to the address.
upvoted 0 times
...
Kenny
2 months ago
B) sounds off, selfdestruct does send ether, right?
upvoted 0 times
...
Adaline
4 months ago
Totally agree with A! Makes sense.
upvoted 0 times
...
Margart
4 months ago
A) is correct, can't send ether to a non-payable fallback.
upvoted 0 times
...
Evangelina
5 months ago
I’m confused about the implications of selfdestruct. Does it really just re-assign ownership? I thought it had to do with ether transfer too.
upvoted 0 times
...
Lashawn
5 months ago
I feel like I saw a similar question where selfdestruct was discussed, and it mentioned that it doesn't actually send ether to a contract. So maybe C is the right choice?
upvoted 0 times
...
Leslie
5 months ago
I'm not entirely sure, but I remember something about selfdestruct always sending ether. Could it be that option B is correct?
upvoted 0 times
...
Jamika
5 months ago
I think option A makes sense because if the fallback function is non-payable, it can't accept ether, right?
upvoted 0 times
...

Save Cancel