Recall & Review
beginner
What is storage in blockchain?
Storage is the permanent place where data is saved on the blockchain. It keeps information even after the program stops running.
Click to reveal answer
beginner
What is memory (or memory usage) in blockchain smart contracts?
Memory is a temporary space used while the contract runs. It holds data only during execution and is cleared afterward.
Click to reveal answer
intermediate
Why is storage more expensive than memory in blockchain?
Storage costs more because it saves data permanently on the blockchain, which requires more resources and space. Memory is temporary and cheaper.
Click to reveal answer
intermediate
Give an example of when to use storage vs memory in a smart contract.
Use storage to save user balances permanently. Use memory for temporary calculations or data that only matters during one function call.
Click to reveal answer
intermediate
How does using storage vs memory affect blockchain performance?
Using storage slows down the contract and costs more gas because it writes to the blockchain. Using memory is faster and cheaper but data is lost after execution.
Click to reveal answer
Which of the following is true about storage in blockchain?
✗ Incorrect
Storage saves data permanently, unlike memory which is temporary.
What happens to data stored in memory after a smart contract function finishes?
✗ Incorrect
Memory data exists only during execution and is cleared afterward.
Why should you minimize storage usage in smart contracts?
✗ Incorrect
Storage operations cost more gas and slow down execution.
Which type of data is best stored in memory during contract execution?
✗ Incorrect
Temporary calculations only need memory during execution.
What is a key difference between storage and memory in blockchain?
✗ Incorrect
Storage keeps data permanently; memory is temporary during execution.
Explain the difference between storage and memory usage in blockchain smart contracts.
Think about how long data lasts and the cost to save it.
You got /5 concepts.
Describe why minimizing storage usage is important in blockchain development.
Consider cost and speed when saving data.
You got /4 concepts.