ExamGecko
Question list
Search
Search

Question 53 - CBDE discussion

Report
Export

View and Pure Functions:

A.
a function marked as pure can change the state, while a view function can only return static calls.
Answers
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.
Answers
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.
Answers
C.
a view function can access state variables, but not write to them. A Pure function cannot modify or read from state.
Suggested answer: C
asked 16/09/2024
saud ahmed
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first