Skip to content
Preptima

Smart Contracts interview questions

Solidity, re-entrancy, and EVM gas optimization.

3 questions in Blockchain & Web3.

medium2

mediumConceptCoding

Why does storage layout dominate the gas cost of a contract?

Solidity storage layout dominates gas cost because persistent 32-byte slots are expensive to read and write on every node. Efficient smart contracts pack fields, cache repeated storage reads, avoid unnecessary writes and preserve layout during upgrades.

5 minmid, senior, staff

hard1

hardConceptDesign

How does a proxy make a deployed contract upgradeable, and what does that put at risk?

The proxy upgradeability pattern keeps state in the proxy and delegates calls to replaceable implementation logic, which makes storage layout, initializers and upgrade admin control the core smart contract security risks. Use this solidity answer to show the decision, trade-off, and evidence rather than a memorised definition.

5 minsenior, staff, lead