Blockchain & Web3

EVM & Gas Optimization

6 practice questions. Free questions open a full answer guide; the rest unlock with Pro.

  • What are the most impactful gas optimizations you reach for in a Solidity contract, and how do you decide they're actually worth it? Senior level
  • Why does choosing storage, memory, or calldata for a Solidity function parameter affect gas cost, and how would you decide which to use?Go Pro Junior level
  • When would you use transient storage in a Solidity contract instead of regular storage, and what changed to make it worthwhile?Go Pro Senior level
  • Why do storage reads and writes dominate gas costs on the EVM, and what concretely can you do to bring them down?Go Pro Mid level
  • Beyond storage layout, what Solidity-level techniques do you reach for to reduce gas, and how do you know they actually help?Go Pro Mid level
  • What is variable packing in a Solidity contract's storage, and why can it reduce gas costs?Go Pro Junior level
Want questions matched to your role? Paste a job title, job description, or CV for a personalized set, or go Pro to unlock the full bank.