View and Pure Functions:
A) a function marked as pure can change the state, while a view function can only return static calls.
B) a function marked as view can never access state variables, while pure functions are here to return only one value.
C) a view function can access state variables, but not write to them. A Pure function cannot modify or read from state.
Correct Answer:
Verified
Q28: A version pragma is a great way
Q29: Variables of the type address store:
A) a
Q30: Loops in Solidity:
A) are a great way
Q31: To store almost all data in the
Q32: View and Pure Functions:
A) can only be
Q34: On a consortium network:
A) everybody can become
Q35: Address.send():
A) will cascade exceptions and address.transfer() will
Q36: Gas costs accrue on sending a transaction:
A)
Q37: The following are value types in Solidity.
A)
Q38: You need to use _ to get
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents