0
0
Blockchain / Solidityprogramming~5 mins

Why events communicate contract activity in Blockchain / Solidity - Quick Recap

Choose your learning style9 modes available
Recall & Review
beginner
What is the main purpose of events in smart contracts?
Events are used to communicate contract activity to external listeners, such as user interfaces or other off-chain systems, by logging important information when certain actions happen inside the contract.
Click to reveal answer
intermediate
How do events help reduce blockchain data usage?
Events store data in transaction logs instead of contract storage, which is cheaper and more efficient, allowing external apps to track contract activity without increasing on-chain storage costs.
Click to reveal answer
beginner
Why can't smart contracts directly notify external systems without events?
Smart contracts run on the blockchain and cannot push messages outside themselves; events act as signals that external systems can watch for to know when something important happened.
Click to reveal answer
intermediate
What is the difference between contract storage and event logs?
Contract storage holds persistent data on-chain and costs more gas, while event logs are cheaper, temporary records used to notify external listeners about contract actions.
Click to reveal answer
beginner
How do events improve user experience in decentralized applications (dApps)?
Events allow dApps to listen for contract changes and update the user interface in real-time, making interactions smoother and more responsive without constant polling.
Click to reveal answer
What do events in smart contracts primarily do?
ALog contract activity for external systems
BStore permanent data on the blockchain
CExecute contract functions
DSend cryptocurrency to users
Why are events preferred over contract storage for notifying external apps?
AEvents are cheaper and more efficient to store
BEvents can execute code faster
CContract storage is not accessible
DEvents increase gas costs
Which of the following is NOT true about events?
AThey are recorded in transaction logs
BThey help external apps track contract activity
CThey allow smart contracts to push messages directly to users
DThey reduce the need for constant polling
How do events improve decentralized app responsiveness?
ABy reducing blockchain size
BBy storing user data permanently
CBy increasing transaction speed
DBy enabling real-time updates from contract activity
Where are event logs stored?
AIn contract storage variables
BIn transaction logs on the blockchain
COff-chain databases only
DIn user wallets
Explain why events are essential for communicating smart contract activity to external systems.
Think about how apps know what happens inside a contract.
You got /4 concepts.
    Describe the difference between contract storage and event logs and why events are used for notifications.
    Consider cost and purpose of each.
    You got /4 concepts.