ExamGecko
Question list
Search
Search

Question 79 - CBDE discussion

Report
Export

To send ether to a contract without a function call:

A.
a fallback function must be declared and it must be made payable. If there is no fallback function or the fallback function is not payable it will throw an exception.
Answers
A.
a fallback function must be declared and it must be made payable. If there is no fallback function or the fallback function is not payable it will throw an exception.
B.
either a fallback function which is payable exists, or no fallback function at all exists.
Answers
B.
either a fallback function which is payable exists, or no fallback function at all exists.
C.
you cannot send ether to a contract without explicitly calling a function. The fallback function can never receive ether.
Answers
C.
you cannot send ether to a contract without explicitly calling a function. The fallback function can never receive ether.
Suggested answer: A
asked 16/09/2024
J.J. van Ingen
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first