Ethereum is a blockchain platform designed to execute smart contracts and support decentralized applications.
Incorrect! Try again.
2What is the native cryptocurrency of Ethereum?
Ethereumâan overview
Easy
A.Tether
B.Solana
C.Ether
D.Bitcoin
Correct Answer: Ether
Explanation:
Ether (ETH) is Ethereum's native cryptocurrency and is used to pay transaction fees.
Incorrect! Try again.
3What type of network is the Ethereum mainnet?
The Ethereum network
Easy
A.A centralized cloud network operated by one organization
B.A local offline network
C.A public blockchain network
D.A private banking network
Correct Answer: A public blockchain network
Explanation:
The Ethereum mainnet is a public blockchain that users and applications can access.
Incorrect! Try again.
4Which component allows a user to manage Ethereum accounts and sign transactions?
Components of the Ethereum ecosystem
Easy
A.Block
B.Wallet
C.Compiler
D.Validator
Correct Answer: Wallet
Explanation:
A wallet helps users manage accounts, protect keys, and sign Ethereum transactions.
Incorrect! Try again.
5What is the main purpose of the Ethereum Virtual Machine (EVM)?
Ethereum Virtual Machine (EVM)
Easy
A.Replacing all blockchain nodes with a single central server
B.Storing physical documents
C.Designing website images
D.Executing smart contract code
Correct Answer: Executing smart contract code
Explanation:
The EVM provides the environment in which Ethereum smart contract code is executed.
Incorrect! Try again.
6What does gas measure in an Ethereum transaction?
Ethereum Virtual Machine (EVM)
Easy
A.Block storage age
B.Network distance
C.Wallet balance
D.Computational work
Correct Answer: Computational work
Explanation:
Gas measures the computational resources required to process transactions and execute smart contracts.
Incorrect! Try again.
7What is a smart contract?
Smart contracts
Easy
A.A centralized application maintained only by a bank
B.A program executed on a blockchain
C.A paper agreement scanned into a wallet
D.A password used to unlock a node
Correct Answer: A program executed on a blockchain
Explanation:
A smart contract is a program stored and executed on a blockchain such as Ethereum.
Incorrect! Try again.
8What usually triggers the execution of an Ethereum smart contract function?
Smart contracts
Easy
A.A request sent only to a centralized database administrator
B.A computer shutdown
C.A printed legal notice
D.A transaction or message call
Correct Answer: A transaction or message call
Explanation:
Smart contract functions are commonly invoked through transactions or message calls.
Incorrect! Try again.
9Which tool provides a browser-based environment for writing and testing Solidity contracts?
Ethereum development environment
Easy
A.Etherscan
B.Remix IDE
C.MetaMask
D.Ethereum Name Service
Correct Answer: Remix IDE
Explanation:
Remix IDE is a browser-based development environment used to write, compile, test, and deploy Solidity contracts.
Incorrect! Try again.
10What does an Ethereum block contain?
Blocks and blockchain
Easy
A.A complete copy of every website hosted on the internet
B.A collection of transactions
C.A single wallet password
D.A list of email accounts
Correct Answer: A collection of transactions
Explanation:
An Ethereum block records a collection of validated transactions and related block data.
Incorrect! Try again.
11Which item must a wallet owner keep secret?
Wallets and client software
Easy
A.Public address
B.Block number
C.Transaction hash
D.Private key
Correct Answer: Private key
Explanation:
A private key authorizes transactions and must remain secret to protect the associated assets.
Incorrect! Try again.
12Which of the following is an Ethereum execution client?
Wallets and client software
Easy
A.Solidity
B.Ether
C.OpenZeppelin
D.Geth
Correct Answer: Geth
Explanation:
Geth, short for Go Ethereum, is an Ethereum execution client written in Go.
Incorrect! Try again.
13What is a basic function of an Ethereum node?
Nodes and miners
Easy
A.Printing cryptocurrency coins
B.Storing all transactions in one privately controlled spreadsheet
C.Creating internet domain names
D.Verifying blockchain data
Correct Answer: Verifying blockchain data
Explanation:
Ethereum nodes maintain and verify blockchain data according to the network's rules.
Incorrect! Try again.
14Who proposes blocks on Ethereum mainnet after its transition to proof of stake?
Nodes and miners
Easy
A.Miners
B.Validators
C.Contract compilers
D.Wallet users
Correct Answer: Validators
Explanation:
Ethereum mainnet now uses proof of stake, in which validators propose and attest to blocks.
Incorrect! Try again.
15Which API style is commonly used to communicate with an Ethereum node?
APIs
Easy
A.JSON-RPC
B.Bluetooth
C.A proprietary interface that can be accessed only by cryptocurrency exchanges
D.SMTP
Correct Answer: JSON-RPC
Explanation:
Ethereum clients commonly provide JSON-RPC methods for retrieving data and submitting transactions.
Incorrect! Try again.
16What is a decentralized application (DApp)?
Tools and DApps
Easy
A.A website whose entire operation must be controlled by one central administrator
B.A program used only to create paper records
C.An application stored only on one laptop
D.An application that uses smart contracts
Correct Answer: An application that uses smart contracts
Explanation:
A DApp typically uses smart contracts for some or all of its backend logic.
Incorrect! Try again.
17What does the Ethereum Name Service (ENS) provide?
Supporting protocols
Easy
A.Automatic smart contract auditing
B.Free Ether for new users
C.Human-readable names for addresses
D.A centralized password database maintained by Ethereum validators
Correct Answer: Human-readable names for addresses
Explanation:
ENS maps readable names, such as names ending in .eth, to Ethereum addresses and other records.
Incorrect! Try again.
18Which programming language is widely used to write Ethereum smart contracts?
Programming languages
Easy
A.Solidity
B.SQL
C.HTML
D.Bash
Correct Answer: Solidity
Explanation:
Solidity is a widely used high-level programming language for Ethereum smart contracts.
Incorrect! Try again.
19What is created when a smart contract is successfully deployed to Ethereum?
Contract deployment
Easy
A.A contract address
B.A new private network
C.A physical security token
D.A permanent administrator account that can freely modify every Ethereum block
Correct Answer: A contract address
Explanation:
A successfully deployed smart contract receives an address through which users and other contracts can interact with it.
Incorrect! Try again.
20Which Geth command is commonly used to connect a console to a running Geth node?
Exploring Web3 with Geth
Easy
A.geth compile
B.geth replace-blockchain-with-database
C.geth attach
D.geth wallet
Correct Answer: geth attach
Explanation:
The geth attach command opens an interactive JavaScript console connected to a running Geth node.
Incorrect! Try again.
21A user wants an Ethereum account that can initiate transactions directly using a private key. Which type of account should be used?
Ethereumâan overview
Medium
A.A smart contract account
B.A decentralized storage account
C.A validator deposit contract
D.An externally owned account
Correct Answer: An externally owned account
Explanation:
An externally owned account is controlled by a private key and can initiate transactions. A contract account executes code only when triggered.
Incorrect! Try again.
22A signed transaction intended for one Ethereum-compatible network should not be replayed on another network. Which transaction field primarily provides this protection?
The Ethereum network
Medium
A.The contract bytecode
B.The block gas limit
C.The network chain ID
D.The recipient balance
Correct Answer: The network chain ID
Explanation:
The chain ID is included in transaction signing so that a transaction signed for one network is invalid on a network with a different chain ID.
Incorrect! Try again.
23A frontend application has a deployed contract address but cannot correctly encode calls to its functions. Which additional artifact does it most directly need?
Components of the Ethereum ecosystem
Medium
A.The block header
B.A complete archive containing every historical Ethereum state and transaction receipt
C.The contract ABI
D.The validator key
Correct Answer: The contract ABI
Explanation:
The Application Binary Interface (ABI) describes contract functions, parameters, return values, and events so client software can encode and decode interactions.
Incorrect! Try again.
24A contract function runs out of gas after changing a state variable but before execution completes. What is the expected result?
Ethereum Virtual Machine (EVM)
Medium
A.The state change is reverted, but the spent gas is not refunded
B.The state change remains, but the transaction is removed from the block
C.The state change is reverted, and the sender receives the full gas fee
D.The state change remains, and all unused gas is returned
Correct Answer: The state change is reverted, but the spent gas is not refunded
Explanation:
An out-of-gas exception reverts state changes made by the call. Gas consumed during failed execution is still charged.
Incorrect! Try again.
25A withdrawal function sends Ether to a user before reducing the user's recorded balance. Which vulnerability is most likely?
Smart contracts
Medium
A.Hash collision
B.Replay across chains
C.Block size overflow
D.Reentrancy
Correct Answer: Reentrancy
Explanation:
The recipient can potentially call the withdrawal function again before its balance is updated. The checks-effects-interactions pattern helps prevent this.
Incorrect! Try again.
26A developer needs fast, repeatable contract tests with controllable accounts and no real transaction fees. Which environment is most suitable?
Ethereum development environment
Medium
A.The Ethereum mainnet
B.A production validator configured to synchronize and retain the complete history of mainnet
C.A local development blockchain
D.A public block explorer
Correct Answer: A local development blockchain
Explanation:
A local development blockchain provides test accounts, instant or controlled block creation, and simulated Ether without mainnet costs.
Incorrect! Try again.
27A DApp waits for several additional blocks after a transaction is included before treating it as reliable. What risk is this practice mainly intended to reduce?
Blocks and blockchain
Medium
A.Contract compilation failure
B.Temporary chain reorganization
C.Private-key generation failure
D.ABI encoding mismatch
Correct Answer: Temporary chain reorganization
Explanation:
A short chain reorganization can replace recently added blocks. Waiting for confirmations or finality reduces the risk of relying on a transaction that is later displaced.
Incorrect! Try again.
28A DApp asks a browser wallet to send a transaction. Which operation should normally remain inside the wallet?
Wallets and client software
Medium
A.Calculating the latest block number
B.Downloading every historical block
C.Compiling the contract source code
D.Signing with the user's private key
Correct Answer: Signing with the user's private key
Explanation:
The wallet protects the private key and signs authorized transactions locally. A DApp should not directly receive the user's private key.
Incorrect! Try again.
29On Ethereum's current proof-of-stake network, which participant is responsible for proposing blocks in assigned slots?
Nodes and miners
Medium
A.An RPC-only wallet
B.A contract compiler
C.A proof-of-work miner
D.A selected validator
Correct Answer: A selected validator
Explanation:
Ethereum now uses proof of stake. Selected validators propose blocks, while other validators attest to them; proof-of-work miners no longer secure Ethereum mainnet.
Incorrect! Try again.
30A DApp needs to read a contract's current value without creating a transaction or changing blockchain state. Which JSON-RPC method is most appropriate?
APIs
Medium
A.eth_sendRawTransaction
B.eth_estimateGas
C.eth_getTransactionReceipt
D.eth_call
Correct Answer: eth_call
Explanation:
eth_call executes a message call locally against a chosen block state. It can return data without broadcasting a state-changing transaction.
Incorrect! Try again.
31A DApp dashboard must update when a contract emits a Transfer event. Which data source should the frontend monitor?
Tools and DApps
Medium
A.Compiler warnings
B.Validator withdrawal credentials
C.Account private keys
D.Contract event logs
Correct Answer: Contract event logs
Explanation:
Events are stored as transaction logs and can be queried or subscribed to by DApps to detect relevant contract activity.
Incorrect! Try again.
32A DApp must distribute a large document without storing the entire file in expensive contract storage. Which approach is most appropriate?
Supporting protocols
Medium
A.Place the complete file inside each block header
B.Convert the file into a wallet seed phrase
C.Store the file in every transaction's input and repeatedly submit it
D.Store the file in IPFS and keep its content identifier on-chain
Correct Answer: Store the file in IPFS and keep its content identifier on-chain
Explanation:
IPFS provides content-addressed off-chain storage. Keeping the content identifier on-chain allows users to verify that retrieved content matches the referenced file.
Incorrect! Try again.
33After compiling a Solidity contract, which pair of outputs is most useful for deployment and frontend interaction?
Programming languages
Medium
A.Private key and mnemonic
B.Block hash and state root
C.EVM bytecode and ABI
D.Nonce and gas refund
Correct Answer: EVM bytecode and ABI
Explanation:
Deployment uses the compiled EVM bytecode, while applications use the ABI to encode function calls and decode returned values and events.
Incorrect! Try again.
34A contract constructor fails a require condition during deployment. What should the developer expect?
Contract deployment
Medium
A.Deployment reverts and no usable contract is created
B.Deployment pauses until another transaction completes
C.Deployment creates a contract whose constructor is automatically executed again in the next block
D.Deployment succeeds with an empty contract balance
Correct Answer: Deployment reverts and no usable contract is created
Explanation:
Constructor failure reverts contract creation. The transaction consumes gas, but no successfully deployed contract remains at the expected address.
Incorrect! Try again.
35After attaching to a running Geth JavaScript console, which expression can be used to inspect the latest block number known to the node?
Exploring Web3 with Geth
Medium
A.admin.nodeInfo.id
B.personal.listWallets
C.eth.accounts.length
D.eth.blockNumber
Correct Answer: eth.blockNumber
Explanation:
In the Geth JavaScript console, eth.blockNumber returns the number of the latest block currently known to the connected node.
Incorrect! Try again.
36A script is preparing several transactions from the same account. Which Web3 query best helps choose a nonce that includes already pending transactions?
Using the pending state includes confirmed and locally known pending transactions, helping prevent nonce reuse when multiple transactions are prepared.
Incorrect! Try again.
37A client receives a transaction hash immediately after broadcasting a transaction. What should it check to confirm that the transaction was included and whether execution succeeded?
Blocks and blockchain
Medium
A.The peer discovery table
B.The sender's public key only
C.The compiler's source map
D.The transaction receipt and its status
Correct Answer: The transaction receipt and its status
Explanation:
A receipt becomes available after inclusion and contains fields such as block information, gas used, logs, and execution status.
Incorrect! Try again.
38A Solidity function needs a temporary array only while the current external call is executing. Which EVM data area is generally appropriate?
Ethereum Virtual Machine (EVM)
Medium
A.Event logs
B.Storage
C.Memory
D.Contract bytecode
Correct Answer: Memory
Explanation:
Memory is temporary and exists only for the duration of a call. Storage persists across transactions and is generally more expensive to modify.
Incorrect! Try again.
39A contract must settle an insurance claim using rainfall measured in the physical world. Why is an oracle needed?
Smart contracts
Medium
A.The contract cannot store numeric values
B.The EVM cannot perform conditional statements
C.The EVM cannot directly retrieve external real-world data
D.The validator must manually rewrite the deployed bytecode whenever new weather measurements become available
Correct Answer: The EVM cannot directly retrieve external real-world data
Explanation:
Smart contracts execute deterministically from blockchain data and cannot directly access external systems. An oracle supplies the required off-chain information.
Incorrect! Try again.
40An offline wallet has already signed and serialized an Ethereum transaction. Which JSON-RPC method should be used to broadcast it?
APIs
Medium
A.eth_sendRawTransaction
B.eth_getStorageAt
C.eth_call
D.eth_getCode
Correct Answer: eth_sendRawTransaction
Explanation:
eth_sendRawTransaction submits serialized, signed transaction data to a node without exposing the signing private key.
Incorrect! Try again.
41An EOA has confirmed nonce . It broadcasts two otherwise valid transactions: transaction with nonce reaches a node before transaction with nonce . What is the most accurate expected behavior?
Ethereumâan overview
Hard
A.The node queues until becomes executable, after which both may execute in nonce order.
B.The node includes both transactions in arrival order because nonces only prevent cross-chain replay.
C.The node executes immediately and permanently rejects as stale.
D.The node rewrites the nonce of to and treats as a replacement.
Correct Answer: The node queues until becomes executable, after which both may execute in nonce order.
Explanation:
Transactions from an EOA execute strictly by nonce. A future-nonce transaction may be queued, but it cannot execute before all preceding nonces.
Incorrect! Try again.
42Two EVM-compatible networks accidentally use the same EIP-155 chain ID. An account has matching nonce and sufficient funds on both networks. Which consequence is most relevant?
The Ethereum network
Hard
A.Their validators will automatically merge both networks into a single canonical chain.
B.Their execution clients will reject all transactions because the network IDs differ.
C.A transaction on either network will automatically update the account nonce on the other.
D.A signed transaction may be replayable across both networks if its other validity conditions hold.
Correct Answer: A signed transaction may be replayable across both networks if its other validity conditions hold.
Explanation:
EIP-155 binds signatures to a chain ID. Reusing that ID can permit cross-network replay when nonce, balance, and transaction validity also align.
Incorrect! Try again.
43After Ethereum's transition to proof of stake, a non-validating full node runs only an execution client and has no consensus client connected through the Engine API. What critical capability is missing?
Components of the Ethereum ecosystem
Hard
A.It cannot independently follow the proof-of-stake canonical head and finalized checkpoints.
B.It cannot verify account signatures because signature recovery belongs to consensus clients.
D.It cannot store contract state because state tries are maintained only by validator clients.
Correct Answer: It cannot independently follow the proof-of-stake canonical head and finalized checkpoints.
Explanation:
The execution client executes payloads, while the consensus client tracks fork choice and finality. A post-merge full node normally requires both.
Incorrect! Try again.
44A contract copies a large slice of transaction calldata into previously unused memory and then hashes it. Which statement best describes the EVM effects?
Ethereum Virtual Machine (EVM)
Hard
A.Calldata remains immutable, while copying and nonlinear memory expansion both contribute gas costs.
B.Calldata becomes mutable after copying, while memory expansion has a constant gas cost.
C.Hashing reads calldata directly, so copying into memory cannot affect total gas consumption.
D.The copied bytes enter persistent storage and remain available in later transactions.
Correct Answer: Calldata remains immutable, while copying and nonlinear memory expansion both contribute gas costs.
Explanation:
Calldata is immutable transaction input. Copying it incurs copy cost, and enlarging EVM memory incurs an expansion cost that grows nonlinearly.
Incorrect! Try again.
45Contract changes its own storage and then makes a low-level call to contract . Contract changes storage but executes REVERT; checks the returned status and continues successfully. What is the resulting state?
Ethereum Virtual Machine (EVM)
Hard
A.Both contracts retain their changes because a low-level call isolates all reverts.
B. retains its changes, loses its changes, and unused call gas is returned to .
C. loses its changes, retains its changes, and the entire gas allocation is consumed.
D.Both contracts lose their changes because any nested REVERT must revert the outer transaction.
Correct Answer: retains its changes, loses its changes, and unused call gas is returned to .
Explanation:
REVERT rolls back the failing call frame and its descendants. A low-level caller can observe failure and continue, preserving its own earlier changes.
Incorrect! Try again.
46A withdrawal function reads balances[msg.sender], sends Ether using call, and only afterward sets the balance to zero. Which modification most directly addresses the reentrancy vulnerability without relying solely on gas stipends?
Smart contracts
Hard
A.Replace call with delegatecall so that the recipient executes in the sender's context.
B.Emit the withdrawal event before the call so reentrant invocations can be detected on-chain.
C.Check tx.origin before sending and retain the existing order of state updates.
D.Set the balance to zero before the external call and optionally add a reentrancy guard.
Correct Answer: Set the balance to zero before the external call and optionally add a reentrancy guard.
Explanation:
Checks-effects-interactions removes the withdrawable state before control is transferred. A guard provides additional protection against cross-function reentrancy.
Incorrect! Try again.
47An upgradeable proxy uses DELEGATECALL. A new implementation changes the order and types of state variables, after which balances appear corrupted. Which EVM property explains this result?
Smart contracts
Hard
A.DELEGATECALL resets the proxy's storage root whenever implementation bytecode changes.
B.DELEGATECALL runs implementation code against proxy storage, so incompatible layouts reinterpret existing slots.
C.DELEGATECALL copies implementation storage into proxy storage before each external invocation.
D.DELEGATECALL uses the implementation's storage but replaces msg.sender with the proxy address.
Correct Answer: DELEGATECALL runs implementation code against proxy storage, so incompatible layouts reinterpret existing slots.
Explanation:
DELEGATECALL preserves the caller's storage context and original msg.sender. Upgrades must therefore maintain storage-layout compatibility.
Incorrect! Try again.
48A test suite forks Ethereum at a fixed historical block and all integration tests pass. The deployed DApp later fails because an oracle's current state differs from its state at the fork block. What conclusion is justified?
Ethereum development environment
Hard
A.Fork-based testing proves compatibility with all states descended from the selected block.
B.The failure demonstrates that the fork node used a different EVM instruction set from mainnet.
C.A pinned fork reproduces historical state, not every later state transition or external dependency condition.
D.Historical forks automatically replay pending transactions and future oracle updates.
Correct Answer: A pinned fork reproduces historical state, not every later state transition or external dependency condition.
Explanation:
Fork tests are realistic only for the selected block state. They do not prove behavior under later oracle values, governance changes, or future transactions.
Incorrect! Try again.
49Under EIP-1559, suppose a block uses exactly twice its gas target, which is also the protocol's maximum block gas usage. Ignoring integer rounding, how does the next block's base fee change?
Blocks and blockchain
Hard
A.It increases by because the per-block adjustment is bounded.
B.It remains unchanged because the block did not exceed its maximum gas limit.
C.It increases by because gas usage is twice the target.
D.It increases by because only gas above the target affects the fee.
Correct Answer: It increases by because the per-block adjustment is bounded.
Explanation:
The adjustment is approximately . At twice the target, the increase is .
Incorrect! Try again.
50A DApp observes a successful receipt and immediately treats its event as irreversible. A short chain reorganization then removes the containing block. Which interpretation is correct?
Blocks and blockchain
Hard
A.The receipt belonged to a former canonical branch and must be rechecked on the new chain.
B.The receipt remains canonical because successful EVM execution cannot be reorganized.
C.The transaction must remain final, although its event may move to a different log index.
D.The transaction is automatically replayed with the same block hash on the replacement branch.
Correct Answer: The receipt belonged to a former canonical branch and must be rechecked on the new chain.
Explanation:
Execution success does not imply consensus finality. After a reorganization, the transaction may be re-included, delayed, or omitted, so its receipt must be queried again.
Incorrect! Try again.
51A user broadcasts two EIP-1559 transactions from one account with the same nonce but different recipients. The second satisfies the client's replacement-fee rules. What outcome should the wallet expect?
Wallets and client software
Hard
A.The transaction with the lower value executes first, and the other receives a new nonce.
B.Both transactions can execute because their recipients and calldata differ.
C.Validators combine both transactions into one operation using the larger priority fee.
D.At most one can execute; the accepted replacement competes for that nonce and supersedes the other.
Correct Answer: At most one can execute; the accepted replacement competes for that nonce and supersedes the other.
Explanation:
An EOA nonce can be consumed only once. A sufficiently higher-fee transaction may replace another pending transaction with the same sender and nonce.
Incorrect! Try again.
52A hardware wallet is used with an untrusted remote Ethereum node. Which workflow best preserves the wallet's key-isolation guarantee?
Wallets and client software
Hard
A.Send the private key to the node over TLS and ask the node to erase it after signing.
B.Construct and sign locally, verify transaction fields on the device, and submit only the raw signed transaction.
C.Unlock the account permanently on the remote node but require a password for each RPC request.
D.Ask the node to sign the transaction and verify the resulting transaction hash on the device.
Correct Answer: Construct and sign locally, verify transaction fields on the device, and submit only the raw signed transaction.
Explanation:
The private key should remain inside the hardware wallet. The node only needs the signed serialized transaction for propagation.
Incorrect! Try again.
53Which description accurately reflects block production on post-merge Ethereum?
Nodes and miners
Hard
A.Consensus clients execute every opcode, while execution clients only broadcast validator signatures.
B.Execution-layer miners select the canonical chain, while validators only calculate transaction gas.
C.A selected validator proposes a block, the execution client builds or validates its payload, and attesters vote.
D.Proof-of-work miners construct execution payloads, while validators merely finalize their block rewards.
Correct Answer: A selected validator proposes a block, the execution client builds or validates its payload, and attesters vote.
Explanation:
Ethereum now uses proof of stake. Consensus clients manage proposing, attesting, fork choice, and finality; execution clients process the execution payload.
Incorrect! Try again.
54A write operation simulated with eth_call at the latest block returns success, but the same signed transaction later reverts after inclusion. Which explanation is most accurate?
APIs
Hard
A.The simulation used a particular state and context; intervening state changes can invalidate its assumptions.
B.eth_call permanently reserves the simulated nonce but not the simulated contract state.
C.eth_call executes under consensus finality, whereas transactions execute without consensus rules.
D.eth_call ignores EVM reverts and always reports successful return data.
Correct Answer: The simulation used a particular state and context; intervening state changes can invalidate its assumptions.
Explanation:
eth_call performs non-persistent execution against a selected state. Inclusion may occur later under different storage, balances, timestamps, fee conditions, or block context.
Incorrect! Try again.
55Solidity emits event Registered(string indexed name, uint256 value). A client receives only the log topics and data. What can it determine about name without an external candidate set?
APIs
Hard
A.It can obtain only the string's indexed hash and generally cannot recover the original value.
B.It can recover the string by removing the event signature bytes from the first topic.
C.It can ABI-decode the original string directly from the indexed topic.
D.It can read the string from log data because all event arguments are duplicated there.
Correct Answer: It can obtain only the string's indexed hash and generally cannot recover the original value.
Explanation:
Indexed dynamic values such as strings are represented by hashes in topics. The original value is not ABI-encoded into log data unless emitted separately.
Incorrect! Try again.
56A DApp indexes logs and must remain correct across short reorganizations. Which design is most robust?
Tools and DApps
Hard
A.Treat every websocket log as final because subscriptions are emitted only after consensus finalization.
B.Use transaction hashes alone because a transaction always appears in the same block after reorganization.
C.Store block hashes with logs, delay final decisions, and reconcile records when the canonical chain changes.
D.Index only log positions because block number and log index remain invariant across competing branches.
Correct Answer: Store block hashes with logs, delay final decisions, and reconcile records when the canonical chain changes.
Explanation:
Reorg-aware indexers retain chain provenance, process removed or replaced logs, and apply a confirmation or finality policy before irreversible actions.
Incorrect! Try again.
57A smart contract stores an IPFS CID for a DApp asset. Months later, no IPFS node retains the corresponding content. Which statement is correct?
Supporting protocols
Hard
A.Ethereum validators reconstruct the missing file from the CID during contract execution.
B.The CID still identifies the content, but content addressing alone does not guarantee availability.
C.The CID changes automatically to reference the nearest available replica.
D.The contract can derive the original file from the CID because the hash is reversible.
Correct Answer: The CID still identifies the content, but content addressing alone does not guarantee availability.
Explanation:
A CID provides integrity and identity, not persistence. Pinning, replication, or an incentive layer is needed to keep the content retrievable.
Incorrect! Try again.
58A Solidity contract authorizes operations using keccak256(abi.encodePacked(a, b)), where both a and b are user-controlled strings. What is the main risk and appropriate correction?
Programming languages
Hard
A.Different string pairs can have identical packed bytes; use abi.encode or unambiguous delimiters.
B.The hash is limited to 160 bits; cast it to bytes32 before checking authorization.
C.String hashing exposes private data; encrypt both values and continue using packed encoding.
D.Packed encoding adds random padding; use inline assembly to remove the padding before hashing.
Correct Answer: Different string pairs can have identical packed bytes; use abi.encode or unambiguous delimiters.
Explanation:
For example, ("ab", "c") and ("a", "bc") produce the same packed concatenation. Standard ABI encoding preserves boundaries between dynamic arguments.
Incorrect! Try again.
59A factory deploys contracts with CREATE2. Which expression determines the deployed address, and what implication follows for constructor arguments?
Contract deployment
Hard
A.It uses the transaction origin and storage root; proxy initialization determines the final address.
B.It hashes the deployer's nonce and runtime code; constructor arguments never influence the result.
C.It hashes the sender and current block hash; redeployment is possible after every new block.
D.It uses the sender, salt, and hash of initialization code; encoded constructor arguments affect the address.
Correct Answer: It uses the sender, salt, and hash of initialization code; encoded constructor arguments affect the address.
Explanation:
The address is the last 20 bytes of . Constructor arguments are part of initCode.
Incorrect! Try again.
60Two independent services connected to the same Geth node each query eth_getTransactionCount(address, "pending") simultaneously and receive nonce . Both then sign different transactions with nonce . What is the best remedy?
Exploring Web3 with Geth
Hard
A.Use different chain IDs for the services so both transactions can consume nonce independently.
B.Increase both gas limits because nonce collisions occur only when intrinsic gas is insufficient.
C.Coordinate nonce allocation with a shared manager and reconcile it against pending and confirmed transactions.
D.Query the latest nonce instead because it atomically reserves the next nonce for the requesting service.
Correct Answer: Coordinate nonce allocation with a shared manager and reconcile it against pending and confirmed transactions.
Explanation:
The RPC query does not reserve a nonce. Concurrent senders need synchronization, replacement handling, and reconciliation with node state.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →