Web3 Developer Interview Questions

The ultimate interview preparation guide for Web3 developers, covering Blockchain Fundamentals, Ethereum, Solidity, Smart Contract Security, and DeFi ecosystems.

Total Questions:570
Difficulty Levels:
BeginnerIntermediateAdvanced
0%

Overall Progress

0/570

1.What is blockchain and how does it work?

2.What is the difference between blockchain and traditional databases?

3.What is a distributed ledger?

4.What is decentralization and why is it important?

5.What is a block in blockchain?

6.What is a blockchain node?

7.What are the components of a block (header, timestamp, nonce, hash)?

8.What is a genesis block?

9.What is blockchain immutability?

10.What is a hash function in blockchain?

11.What is SHA-256 hashing?

12.What is Merkle tree and Merkle root?

13.What is the purpose of nonce in blockchain?

14.What is mining in blockchain?

15.What is Proof of Work (PoW)?

16.What is Proof of Stake (PoS)?

17.What is the difference between PoW and PoS?

18.What is Delegated Proof of Stake (DPoS)?

19.What is Proof of Authority (PoA)?

20.What is consensus mechanism?

21.What is Byzantine Fault Tolerance (BFT)?

22.What is the 51% attack?

23.What is double spending problem?

24.How does blockchain prevent double spending?

25.What is blockchain fork?

26.What is hard fork vs soft fork?

27.What is orphan block?

28.What is block confirmation?

29.What is block height?

30.What is blockchain finality?

31.What is public blockchain vs private blockchain?

32.What is permissioned vs permissionless blockchain?

33.What is consortium blockchain?

34.What is layer 1 vs layer 2 blockchain?

35.What is blockchain scalability trilemma?

36.What is blockchain interoperability?

37.What is cross-chain bridge?

38.What is sidechain?

39.What is state channel?

40.What is rollup (optimistic vs ZK)?

41.What is Ethereum and how does it differ from Bitcoin?

42.What is Ethereum Virtual Machine (EVM)?

43.What is Gas in Ethereum?

44.What is Gas Price and Gas Limit?

45.What is Gwei?

46.What is an Ethereum account?

47.What is the difference between EOA and Contract Account?

48.What is an Ethereum address?

49.What is a private key and public key?

50.What is a seed phrase (mnemonic)?

51.What is nonce in Ethereum transactions?

52.What is transaction hash (txHash)?

53.What is block number vs block timestamp?

54.What is uncle block in Ethereum?

55.What is Ethereum 2.0 (The Merge)?

56.What is the Beacon Chain?

57.What is sharding in Ethereum?

58.What is validator in Ethereum 2.0?

59.What is staking in Ethereum?

60.What is slashing in Ethereum 2.0?

61.What is EIP (Ethereum Improvement Proposal)?

62.What is EIP-1559?

63.What is base fee and priority fee?

64.What is burn mechanism in EIP-1559?

65.What is London hard fork?

66.What is the difference between Mainnet and Testnet?

67.What are Ethereum testnets (Goerli, Sepolia, Holesky)?

68.What is Ropsten testnet (deprecated)?

69.What is faucet in blockchain?

70.What is Etherscan and how to use it?

71.What is a smart contract?

72.What are the benefits of smart contracts?

73.What are the limitations of smart contracts?

74.What is Solidity?

75.What is the latest Solidity version?

76.What is pragma in Solidity?

77.What is the difference between contract and library?

78.What is the difference between contract and interface?

79.What are state variables in Solidity?

80.What are local variables in Solidity?

81.What are global variables in Solidity (msg.sender, block.timestamp)?

82.What is the difference between memory and storage?

83.What is calldata in Solidity?

84.What is the difference between memory, storage, and calldata?

85.What are data types in Solidity?

86.What is uint vs int?

87.What is uint8, uint256 difference?

88.What is address type in Solidity?

89.What is address payable vs address?

90.What is bytes vs string in Solidity?

91.What is fixed-size vs dynamic arrays?

92.What is mapping in Solidity?

93.What is struct in Solidity?

94.What is enum in Solidity?

95.What are function visibility modifiers (public, private, internal, external)?

96.What is the difference between public and external functions?

97.What are function modifiers in Solidity?

98.What is the purpose of require, assert, and revert?

99.What is the difference between require and assert?

100.What is constructor in Solidity?

101.What is fallback function?

102.What is receive function?

103.What is the difference between fallback and receive?

104.What are events in Solidity?

105.What is indexed parameter in events?

106.What is the purpose of events?

107.What is inheritance in Solidity?

108.What is multiple inheritance?

109.What is function overriding?

110.What is virtual and override keywords?

111.What is abstract contract?

112.What is interface in Solidity?

113.What is the difference between abstract and interface?

114.What is library in Solidity?

115.What is the 'using for' directive?

116.What is import in Solidity?

117.What is payable modifier?

118.What is view and pure functions?

119.What is the difference between view and pure?

120.What is constant vs immutable variables?

121.What is reentrancy attack?

122.How do you prevent reentrancy attacks?

123.What is the Checks-Effects-Interactions pattern?

124.What is ReentrancyGuard?

125.What is integer overflow and underflow?

126.How does SafeMath prevent overflow/underflow?

127.Is SafeMath still needed in Solidity 0.8+?

128.What is front-running attack?

129.How do you prevent front-running?

130.What is sandwich attack?

131.What is flash loan attack?

132.What is oracle manipulation attack?

133.What is access control vulnerability?

134.What is tx.origin vs msg.sender vulnerability?

135.What is delegatecall vulnerability?

136.What is selfdestruct and its risks?

137.What is timestamp manipulation?

138.What is block.timestamp vs block.number?

139.What is randomness vulnerability in blockchain?

140.How do you generate secure random numbers?

141.What is Chainlink VRF?

142.What is unchecked call return value?

143.What is denial of service (DoS) attack in smart contracts?

144.What is gas limit DoS?

145.What is short address attack?

146.What is signature replay attack?

147.What is ERC20 approve/transferFrom vulnerability?

148.What is infinite approval risk?

149.What is logic error in smart contracts?

150.What is OpenZeppelin and why use it?

151.What is OpenZeppelin Ownable contract?

152.What is OpenZeppelin AccessControl?

153.What is Pausable pattern?

154.What is emergency stop pattern?

155.What is circuit breaker pattern?

156.What is rate limiting in smart contracts?

157.What is smart contract audit?

158.What are common audit tools (Slither, Mythril, Echidna)?

159.What is formal verification?

160.What is the DAO hack and lessons learned?

161.What is Web3.js?

162.What is Ethers.js?

163.What is the difference between Web3.js and Ethers.js?

164.How do you connect to Ethereum using Web3.js?

165.What is a provider in Web3.js/Ethers.js?

166.What is JsonRpcProvider?

167.What is InfuraProvider vs AlchemyProvider?

168.What is Web3Provider for MetaMask?

169.What is signer in Ethers.js?

170.How do you create a wallet programmatically?

171.How do you import wallet from private key?

172.How do you import wallet from mnemonic?

173.How do you get account balance?

174.How do you send ETH transaction?

175.How do you estimate gas for a transaction?

176.How do you wait for transaction confirmation?

177.How do you interact with smart contracts?

178.What is ABI (Application Binary Interface)?

179.How do you get contract ABI?

180.How do you call a contract function (read)?

181.How do you send a transaction to contract (write)?

182.How do you listen to contract events?

183.How do you filter past events?

184.What is event signature and topics?

185.How do you decode transaction data?

186.How do you sign a message?

187.How do you verify a signature?

188.What is EIP-712 typed data signing?

189.How do you encode function call data?

190.What is contract factory in Ethers.js?

191.How do you deploy a contract using Ethers.js?

192.How do you use multicall for batch requests?

193.How do you handle errors in Web3 transactions?

194.What is nonce management in transactions?

195.How do you speed up a pending transaction?

196.How do you cancel a pending transaction?

197.What is gas price oracle?

198.How do you implement retry logic for transactions?

199.What is BigNumber in Ethers.js?

200.How do you convert between Wei, Gwei, and Ether?

201.What is Hardhat?

202.What is Truffle?

203.What is the difference between Hardhat and Truffle?

204.What is Foundry?

205.What is Remix IDE?

206.What is Hardhat Network?

207.How do you configure Hardhat?

208.What is hardhat.config.js?

209.How do you compile contracts in Hardhat?

210.How do you deploy contracts using Hardhat?

211.What is Hardhat deploy plugin?

212.What is Hardhat Ignition?

213.How do you verify contracts on Etherscan?

214.What is hardhat-etherscan plugin?

215.How do you test smart contracts?

216.What is Mocha and Chai for testing?

217.How do you write unit tests for contracts?

218.What is test coverage?

219.How do you check test coverage in Hardhat?

220.What is gas reporting in tests?

221.What is fixture in Hardhat tests?

222.How do you test time-dependent contracts?

223.How do you impersonate accounts in tests?

224.How do you fork mainnet for testing?

225.What is Hardhat console?

226.What is Hardhat tasks?

227.How do you create custom Hardhat tasks?

228.What is Hardhat scripts vs tasks?

229.What is artifact in Hardhat?

230.What is contract verification?

231.What is Tenderly for debugging?

232.What is Hardhat Tracer?

233.What is gas optimization techniques?

234.How do you optimize storage layout?

235.What is contract size optimization?

236.What is the 24KB contract size limit?

237.How do you split large contracts?

238.What is proxy pattern for upgradeability?

239.What is transparent proxy?

240.What is UUPS proxy (Universal Upgradeable Proxy Standard)?

241.What is ERC-20 token standard?

242.What are the required functions in ERC-20?

243.What is totalSupply in ERC-20?

244.What is balanceOf function?

245.What is transfer function?

246.What is approve and transferFrom?

247.What is allowance function?

248.What is the difference between transfer and transferFrom?

249.What is ERC-20 decimals?

250.What is token minting?

251.What is token burning?

252.What is capped supply?

253.What is pausable token?

254.What is snapshot mechanism?

255.What is ERC-721 (NFT standard)?

256.What are the main functions in ERC-721?

257.What is tokenURI in ERC-721?

258.What is the difference between ERC-20 and ERC-721?

259.What is ERC-1155 (Multi-Token Standard)?

260.What are the advantages of ERC-1155?

261.What is the difference between ERC-721 and ERC-1155?

262.What is ERC-777 token standard?

263.What is ERC-4626 (Tokenized Vault Standard)?

264.What is ERC-2981 (NFT Royalty Standard)?

265.What is ERC-165 (Standard Interface Detection)?

266.What is wrapped token (WETH)?

267.Why do we need wrapped ETH?

268.What is token bridge?

269.What is cross-chain token transfer?

270.What is token vesting?

271.What is linear vesting vs cliff vesting?

272.What is token lockup period?

273.What is airdrop?

274.What is merkle tree for airdrops?

275.What is whitelist for token sale?

276.What is token presale vs public sale?

277.What is ICO (Initial Coin Offering)?

278.What is IDO (Initial DEX Offering)?

279.What is IEO (Initial Exchange Offering)?

280.What is token economics (tokenomics)?

281.What is DeFi?

282.What is DEX (Decentralized Exchange)?

283.What is AMM (Automated Market Maker)?

284.What is liquidity pool?

285.What is liquidity provider (LP)?

286.What is LP token?

287.What is impermanent loss?

288.How do you calculate impermanent loss?

289.What is Uniswap and how does it work?

290.What is the constant product formula (x * y = k)?

291.What is Uniswap V2 vs V3?

292.What is concentrated liquidity in Uniswap V3?

293.What is PancakeSwap?

294.What is SushiSwap?

295.What is Curve Finance?

296.What is stableswap algorithm?

297.What is slippage in DEX?

298.What is price impact?

299.What is front-running in DEX?

300.What is MEV (Maximal Extractable Value)?

301.What is flash bots?

302.What is lending protocol?

303.What is Aave and how does it work?

304.What is Compound protocol?

305.What is collateral factor?

306.What is liquidation in DeFi?

307.What is health factor?

308.What is flash loan?

309.How do flash loans work?

310.What are use cases of flash loans?

311.What is yield farming?

312.What is liquidity mining?

313.What is APY vs APR?

314.What is staking?

315.What is liquid staking?

316.What is synthetic asset?

317.What is oracle in DeFi?

318.What is Chainlink oracle?

319.What is oracle problem?

320.What is price feed manipulation?

321.What is governance token?

322.What is DAO (Decentralized Autonomous Organization)?

323.What is on-chain governance?

324.What is proposal and voting?

325.What is timelock in governance?

326.What is multi-sig wallet?

327.What is Gnosis Safe?

328.What is wrapped Bitcoin (WBTC)?

329.What is stablecoin?

330.What is algorithmic stablecoin vs collateralized?

331.What is NFT (Non-Fungible Token)?

332.What is the difference between fungible and non-fungible?

333.What is NFT metadata?

334.What is IPFS (InterPlanetary File System)?

335.Why store NFT data on IPFS?

336.What is CID in IPFS?

337.What is Pinata for IPFS?

338.What is NFT.Storage?

339.What is on-chain vs off-chain metadata?

340.What is generative NFT?

341.What is NFT rarity?

342.What is NFT collection?

343.What is lazy minting?

344.What is NFT marketplace (OpenSea, Rarible)?

345.What is NFT royalty?

346.What is ERC-2981 royalty implementation?

347.What is NFT auction (English vs Dutch)?

348.What is NFT staking?

349.What is fractional NFT?

350.What is NFT burn?

351.What is soulbound token (SBT)?

352.What is dynamic NFT?

353.What is NFT reveal mechanism?

354.What is whitelist minting?

355.What is public minting?

356.What is mint price and max supply?

357.What is NFT provenance?

358.What is NFT licensing?

359.What is CC0 (Creative Commons Zero)?

360.What is phygital NFT?

361.What is Web3 wallet?

362.What is MetaMask?

363.How do you detect MetaMask in browser?

364.How do you connect wallet to dApp?

365.What is WalletConnect?

366.What is Rainbow Kit?

367.What is Web3Modal?

368.What is ConnectKit?

369.What is wagmi library?

370.What is viem library?

371.How do you switch networks in MetaMask?

372.How do you add custom network to wallet?

373.How do you add custom token to wallet?

374.What is wallet signature request?

375.What is Sign-In with Ethereum (SIWE)?

376.How do you authenticate users with wallet?

377.What is nonce in wallet authentication?

378.How do you handle wallet disconnection?

379.How do you listen to account changes?

380.How do you listen to network changes?

381.What is transaction confirmation modal?

382.How do you display transaction status?

383.What is transaction explorer link?

384.How do you format Ethereum addresses?

385.How do you display ENS names?

386.What is ENS (Ethereum Name Service)?

387.How do you resolve ENS to address?

388.How do you reverse resolve address to ENS?

389.What is IPFS gateway?

390.How do you display NFT images from IPFS?

391.What is React hooks for Web3?

392.What is useAccount hook in wagmi?

393.What is useBalance hook?

394.What is useContract hook?

395.What is useSigner hook?

396.How do you handle loading states in Web3?

397.How do you handle errors in dApp?

398.What is optimistic UI updates?

399.How do you implement transaction notifications?

400.What is ethers.js providers vs signers?

401.What is Layer 2 scaling solution?

402.What is the difference between Layer 1 and Layer 2?

403.What is state channel?

404.What is Lightning Network (Bitcoin L2)?

405.What is Plasma?

406.What is rollup?

407.What is optimistic rollup?

408.What is ZK-rollup (Zero-Knowledge rollup)?

409.What is the difference between optimistic and ZK-rollup?

410.What is Arbitrum?

411.What is Optimism?

412.What is zkSync?

413.What is StarkNet?

414.What is Polygon (formerly Matic)?

415.What is Polygon PoS vs Polygon zkEVM?

416.What is Base (Coinbase L2)?

417.What is Linea (ConsenSys L2)?

418.What is fraud proof in optimistic rollups?

419.What is challenge period?

420.What is validity proof in ZK-rollups?

421.What is data availability problem?

422.What is sequencer in L2?

423.What is bridge between L1 and L2?

424.What is canonical bridge vs third-party bridge?

425.What is withdrawal delay in L2?

426.How do you deploy contracts on L2?

427.What is gas cost difference between L1 and L2?

428.What is L2 compatibility with Ethereum?

429.What is EVM equivalence vs EVM compatibility?

430.What is cross-L2 interoperability?

431.What is Solana and its differences from Ethereum?

432.What is Rust for Solana development?

433.What is Anchor framework?

434.What is Solana program (smart contract)?

435.What is Proof of History (PoH)?

436.What is Binance Smart Chain (BSC)?

437.What is BNB token?

438.What is Avalanche blockchain?

439.What is Avalanche Subnet?

440.What is Polygon blockchain?

441.What is Fantom blockchain?

442.What is Cosmos ecosystem?

443.What is IBC (Inter-Blockchain Communication)?

444.What is Polkadot blockchain?

445.What is parachain in Polkadot?

446.What is Cardano blockchain?

447.What is Plutus (Cardano smart contracts)?

448.What is Near Protocol?

449.What is Aptos blockchain?

450.What is Sui blockchain?

451.What is Move programming language?

452.What is Tezos blockchain?

453.What is Algorand blockchain?

454.What is Flow blockchain (for NFTs)?

455.What is Cadence language?

456.What is multi-chain vs cross-chain?

457.What is blockchain bridge security risks?

458.What is wrapped token on different chains?

459.What is chain abstraction?

460.What is account abstraction?

461.What is EIP-4337 (Account Abstraction)?

462.What is smart contract wallet?

463.What is social recovery wallet?

464.What is gas abstraction?

465.What is paymaster in account abstraction?

466.What is bundler in ERC-4337?

467.What is UserOperation?

468.What is signature aggregation?

469.What is ZK-SNARK?

470.What is ZK-STARK?

471.What is zero-knowledge proof?

472.What is privacy-preserving blockchain?

473.What is Tornado Cash?

474.What is mixing service?

475.What is stealth address?

476.What is ring signature?

477.What is homomorphic encryption?

478.What is threshold signature?

479.What is multi-party computation (MPC)?

480.What is verifiable delay function (VDF)?

481.What is MEV (Maximal Extractable Value) explained?

482.What is MEV bot?

483.What is sandwich attack in MEV?

484.What is MEV protection?

485.What is private mempool?

486.What is PBS (Proposer-Builder Separation)?

487.What is censorship resistance?

488.What is validator extractable value?

489.What is transaction ordering?

490.What is mempool monitoring?

491.How would you build a decentralized marketplace?

492.Design a token vesting contract for team allocation

493.How would you implement a DAO voting system?

494.Design an NFT minting dApp with whitelist

495.How would you build a DeFi lending protocol?

496.Design a staking contract with rewards distribution

497.How would you implement a lottery/raffle contract?

498.Design a multisig wallet from scratch

499.How would you build a decentralized exchange (DEX)?

500.Design an auction system for NFTs

501.How would you implement royalty payments for NFT creators?

502.Design a subscription payment system on blockchain

503.How would you build a decentralized social media platform?

504.Design a reputation system on blockchain

505.How to implement a referral reward system in a smart contract?

506.Design a crowdfunding platform on blockchain

507.How would you build a prediction market?

508.Design a token bridge between two chains

509.How would you implement cross-chain messaging?

510.Design a decentralized identity system

511.How to build a supply chain tracking system?

512.Design a decentralized file storage marketplace

513.How to implement dynamic NFT metadata updating logic?

514.Design a gasless transaction system

515.How to build a Web3 game with NFT items?

516.Design an on-chain governance system with delegation

517.How would you implement flash loan arbitrage?

518.Design a MEV protection mechanism

519.How would you build a decentralized job marketplace?

520.Design a Web3 analytics dashboard

521.Explain Uniswap V2 router contract architecture

522.How does Uniswap V3 concentrated liquidity work?

523.Design a DEX aggregator like 1inch

524.How would you optimize gas for swap transactions?

525.Explain impermanent loss mitigation strategies

526.How does OpenSea Seaport protocol work?

527.Design an NFT marketplace bidding system

528.How would you implement lazy minting?

529.Explain NFT metadata standards and IPFS integration

530.How do you handle NFT royalties on-chain vs off-chain?

531.Explain Aave flash loan implementation

532.How does interest rate calculation work in lending?

533.Design a liquidation bot for DeFi

534.How to implement over-collateralized lending?

535.Explain health factor calculation and monitoring

536.How does Chainlink price feed work?

537.Design a weather oracle for crop insurance

538.How to implement VRF for randomness?

539.Explain Chainlink Automation (Keepers)

540.How do you prevent oracle manipulation attacks?

541.How does MetaMask handle multiple networks?

542.Design a browser extension wallet from scratch

543.How to implement hardware wallet integration?

544.Explain transaction signing flow in wallets

545.How do you handle wallet recovery and backups?

546.Explain Polygon PoS bridge mechanism

547.How does zkEVM work in Polygon?

548.Design a gas optimization strategy for L2 rollups

549.How would you implement cross-L2 messaging?

550.Explain fraud proof verification in optimistic rollups

551.How does NFT aggregation work?

552.Design a bidding system with collection offers

553.How would you implement NFT lending?

554.Explain NFT floor price calculation

555.How do you detect wash trading in NFT markets?

556.Explain constant function market makers (CFMM)

557.Design a novel AMM curve

558.How would you implement just-in-time liquidity?

559.Explain MEV supply chain

560.Design a privacy-preserving DeFi protocol

561.Explain EIP proposal process

562.How does Ethereum state management work?

563.Design a tool for smart contract formal verification

564.How would you optimize EVM bytecode?

565.Explain Ethereum's path to full sharding

566.How to implement institutional-grade key management?

567.Design a multi-party computation (MPC) wallet

568.How would you handle transaction policy engines?

569.Explain cold storage vs hot wallet security

570.How do you implement transaction whitelisting?