Quiz

Q1 Ethereum Virtual Machine is a

Q2 The length of addresses on Ethereum is

Q3 The types of accounts on Ethereum are

Q4 The difference(s) between Bitcoin and Ethereum is/are

Q5 Ethereum smart contracts do not run into halting problem because

Q6 Ethereum nodes talk to each other via

Q7 A nonce is present in

Q8 The gas tracking website https://etherscan.io/gastracker says that Low gas cost is 40 wei This affects

Q9 The number of transactions in a Ethereum block depend on

Q10 Miners are responsible for setting

Q11 User A sends transaction T1 from address A1 with gasPrice G1 and later transaction T2 from address A2 with gasPrice G2

Q12 Which of the following statements is/are true about gas?

Q13 Which of the following EVM components is/are non-volatile across transactions?

Q14 Which of the following operation(s) touch(es) storage?

Q15 Which of the following statement(s) is/are false?

Comment:

0x31 BALANCE 1 1 Get balance of the given account 0x3f EXTCODEHASH 1 1 Get hash of an account’s code 0x40 BLOCKHASH 1 1 Get the hash of one of the 256 most recent complete blocks 0x43 NUMBER 0 1 Get the block’s number

from points 70, 71 of Ethereum 101 - by Secureum

Q16 Which of the following information cannot be obtained in the EVM?

Comment:

0x31 BALANCE 1 1 Get balance of the given account 0x40 BLOCKHASH 1 1 Get the hash of one of the 256 most recent complete blocks 0x44 DIFFICULTY 0 1 Get the block’s difficulty

(there's no operation to access transaction logs)

from points 70, 71 of Ethereum 101 - by Secureum

Q17 Which call instruction could be used to allow modifying the caller account’s state?

Comment:

0xf1 CALL 7 1 Message-call into an account 0xf2 CALLCODE 7 1 Message-call into this account with an alternative account’s code 0xf4 DELEGATECALL 6 1 Message-call into this account with an alternative account’s code, but persisting the current values for sender and value 0xfa STATICCALL 6 1 Static message-call into an account

from point 77 of Ethereum 101 - by Secureum

Another variant of call is delegatecall, which replaced the more dangerous callcode. [...] Essentially, delegatecall runs the code of another contract inside the context of the execution of the current contract.

from "Calling Other Contracts (send, call, callcode, delegatecall)" of Mastering Ethereum

Permits non-state-changing calls to itself or other contracts while disallowing any modifications to state during the call (and its subcalls, if present) to increase smart contract security and assure developers that re-entrancy bugs cannot arise from the call.

from "Appendix A: Ethereum Standards" of Mastering Ethereum

Q18 The most gas-expensive operation is

Q19 Transaction T1 attempts to write to storage values S1 and S2 of contract C. Transaction T2 attempts to read the same storage values S1 and S2. However, T1 reverts due an exception after writing S1 but before writing S2. Which of the following is/are true?

Q20 Ethereum’s threat model is characterised by

Q21 The number of modified Merkle-Patricia trees in an Ethereum block is

Comment:

Blocks contain block header, transactions and ommers’ block headers. Block header contains [...] `stateRoot`, `transactionsRoot` and `receiptsRoot` are 256-bit hashes of the root nodes of modified Merkle-Patricia trees.

from points 53, 54 of Ethereum 101 - by Secureum

Q22 EVM is not a von Neumann architecture because

Q23 EVM stores

Q24 Miners are incentivized to validate and create new blocks by

Q25 Hardfork on Ethereum

Q26 Gas for EVM opcodes

Q27 Smart contracts on Ethereum

Q28 EVM opcodes

Q29 Security of Ethereum DApps depend on

Q30 Security Audits for smart contracts are performed because

Q31 The high-level languages typically used for writing Ethereum smart contracts are

Q32 The number of decimals in Ether is

Last updated