โ† All CCE Flashcard Decks

Smart Contracts and Ethereum Flashcards

7 cards from real CCE practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Smart Contracts and Ethereum flashcards as text
  1. What does EIP-1559 change about Ethereum's transaction fee mechanism?

    Answer: It introduces a base fee that is burned and a priority tip paid to validators

    EIP-1559 replaced the first-price auction model with a protocol-defined base fee burned each block, plus an optional priority tip to incentivize validators.

  2. What is the Ethereum Virtual Machine (EVM) stack depth limit?

    Answer: 1024 levels

    The EVM enforces a maximum call stack depth of 1024 frames; exceeding it causes a stack overflow exception and reverts the transaction.

  3. Which Solidity keyword prevents a function from modifying contract state?

    Answer: view

    Functions marked 'view' can read state variables but cannot write to storage, send Ether, or emit events, guaranteeing no state changes occur.

  4. What is 'gas stipend' in Ethereum, and how much is it?

    Answer: A small amount of gas (2,300) automatically forwarded when a contract sends Ether via transfer()

    When using transfer() or send(), Ethereum forwards only 2,300 gas to the recipient, enough for a log but insufficient for complex state changes, limiting reentrancy risk.

  5. In Ethereum's Proof of Stake, what is 'slashing'?

    Answer: Penalizing validators who double-sign or vote for conflicting blocks by destroying part of their stake

    Slashing is a cryptoeconomic penalty that destroys a portion of a validator's staked ETH when they commit provably malicious acts like equivocation.

  6. What is a 'Merkle Patricia Trie' used for in Ethereum?

    Answer: Efficiently encoding and verifying account balances, storage, and transaction data in each block

    Ethereum uses Merkle Patricia Tries to store world state, transactions, and receipts, allowing cryptographic proofs of inclusion with minimal data.

  7. What distinguishes an EOA (Externally Owned Account) from a contract account in Ethereum?

    Answer: EOAs are controlled by a private key and have no code; contract accounts have deployed bytecode and are controlled by their logic

    EOAs are owned by users via private keys and contain no code, while contract accounts contain EVM bytecode that executes autonomously when triggered.