Beginner
Solidity Basics: Your First Lines of Code — Quick self-check
Know how a Solidity file is structured.
Developer Beginner
8/9 — Solidity Basics: Your First Lines of Code — Quick self-check
Prove you own itUse these prompts to verify you can explain Solidity basics without peeking. Say answers out loud or jot them for a teammate.
Mini drillIf any answer feels shaky, redo the hands-on steps with a small contract and recheck the ABI and explorer view.
Key points
- Explain what SPDX and:Pragma lines do and why they matter.
- Describe the difference between:Public, external, internal, and private.
- When would you choose:Calldata over memory? Give an example.
- Why might you avoid:Making a state variable public and instead write a getter?
- What happens if you:Forget payable on a function meant to receive ETH?
- How do auto-generated getters:Affect the ABI surface?
- Name one risk of:Using a wide compiler pragma.
- How would you confirm:In an explorer which functions are callable?