Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 4 MCQsBitcoin Network, Payments, Clients and APIs
What is the primary purpose of the Bitcoin peer-to-peer network?
Not quite. Try another option.
Answer: To broadcast transactions and blocks
The peer-to-peer network distributes Bitcoin transactions and blocks among participating nodes.
Question 2 of 60 · The Bitcoin network · Easy
What does a Bitcoin full node independently verify?
Not quite. Try another option.
Answer: Transactions and blockchain rules
A full node checks transactions and blocks against Bitcoin's consensus rules.
Question 3 of 60 · Wallets · Easy
What does a Bitcoin wallet primarily manage?
Not quite. Try another option.
Answer: Private and public keys
A Bitcoin wallet manages the cryptographic keys used to receive and spend bitcoin.
Question 4 of 60 · Wallets · Easy
Which wallet information should be kept secret?
Not quite. Try another option.
Answer: The private key
A private key can authorize spending, so it must be protected from unauthorized access.
Question 5 of 60 · Bitcoin payments · Easy
What information does a payer commonly need to send a Bitcoin payment?
Not quite. Try another option.
Answer: The recipient's Bitcoin address
A recipient provides a Bitcoin address to indicate where the payment should be sent.
Question 6 of 60 · Bitcoin payments · Easy
What does a Bitcoin transaction confirmation indicate?
Not quite. Try another option.
Answer: The payment has entered a block
A confirmation begins when a transaction is included in a mined block.
Question 7 of 60 · Innovation in Bitcoin · Easy
What is Segregated Witness, commonly called SegWit?
Not quite. Try another option.
Answer: A Bitcoin protocol upgrade
SegWit is a Bitcoin upgrade that changed how signature data is represented in transactions.
Question 8 of 60 · Innovation in Bitcoin · Easy
Which Bitcoin feature enables conditions to be attached to spending?
Not quite. Try another option.
Answer: The scripting system
Bitcoin Script defines conditions that must be satisfied before an output can be spent.
Question 9 of 60 · Advanced protocols · Easy
What is the main goal of the Lightning Network?
Not quite. Try another option.
Answer: To support faster off-chain payments
The Lightning Network uses payment channels to support fast, low-cost payments outside the main blockchain.
Question 10 of 60 · Advanced protocols · Easy
What does a multisignature Bitcoin arrangement require?
Not quite. Try another option.
Answer: Several required cryptographic signatures
A multisignature arrangement requires signatures from multiple approved keys according to its spending rules.
Question 11 of 60 · Bitcoin investment · Easy
Which risk is commonly associated with investing in bitcoin?
Not quite. Try another option.
Answer: Significant price volatility
Bitcoin's market price can rise or fall sharply, creating substantial investment risk.
Question 12 of 60 · Bitcoin investment · Easy
What is diversification in an investment portfolio?
Not quite. Try another option.
Answer: Spreading funds across different assets
Diversification spreads investments across assets rather than concentrating all funds in one asset.
Question 13 of 60 · Buying and selling Bitcoin · Easy
What service commonly matches buyers and sellers of bitcoin?
Not quite. Try another option.
Answer: A cryptocurrency exchange
A cryptocurrency exchange provides a marketplace where users can buy and sell bitcoin.
Question 14 of 60 · Buying and selling Bitcoin · Easy
What does a market order generally do on a Bitcoin exchange?
Not quite. Try another option.
Answer: Trades near the available market price
A market order seeks immediate execution using the best prices currently available.
Question 15 of 60 · Bitcoin client installation · Easy
Which software is a widely used full-node implementation of Bitcoin?
Not quite. Try another option.
Answer: Bitcoin Core
Bitcoin Core is a widely used open-source client that can operate as a Bitcoin full node.
Question 16 of 60 · Bitcoin client installation · Easy
What may Bitcoin Core initially download when configured as a full node?
Not quite. Try another option.
Answer: The Bitcoin blockchain
A new full node downloads and verifies blockchain data during its initial synchronization.
Question 17 of 60 · Experimenting further with bitcoin-cli · Easy
What is bitcoin-cli mainly used for?
Not quite. Try another option.
Answer: Sending commands to Bitcoin Core
bitcoin-cli is a command-line tool for communicating with a running Bitcoin Core node.
Question 18 of 60 · Experimenting further with bitcoin-cli · Easy
Which bitcoin-cli command returns general blockchain status information?
Not quite. Try another option.
Answer: getblockchaininfo
getblockchaininfo reports details such as the current chain, block count, and synchronization progress.
Question 19 of 60 · Bitcoin programming · Easy
Which interface lets programs send structured commands to Bitcoin Core?
Not quite. Try another option.
Answer: The JSON-RPC interface
Bitcoin Core exposes a JSON-RPC interface that applications can use to request data and perform supported operations.
Question 20 of 60 · Bitcoin programming · Easy
What is a Bitcoin transaction ID, often written as TXID?
Not quite. Try another option.
Answer: An identifier derived from transaction data
A TXID is a hash-based identifier used to reference a particular Bitcoin transaction.
Question 21 of 60 · The Bitcoin network · Medium
A Bitcoin node receives two valid competing blocks at the same height. One branch later receives another valid block. Which rule determines the branch the node should follow?
Not quite. Try another option.
Answer: Follow the branch with the most accumulated proof-of-work
Bitcoin nodes select the valid chain with the greatest accumulated chainwork. A node may reorganize to that branch when it overtakes the competing branch.
Question 22 of 60 · The Bitcoin network · Medium
A transaction is valid under Bitcoin's consensus rules, but its fee rate is below a node's minimum relay fee. What will that node most likely do?
Not quite. Try another option.
Answer: Reject it from its mempool and usually not relay it
Mempool admission and transaction relay use local policy rules in addition to consensus rules. A low-fee transaction can be consensus-valid but still rejected by a node's mempool.
Question 23 of 60 · Wallets · Medium
A user backs up the seed phrase of a hierarchical deterministic wallet before generating 50 additional receiving addresses. Assuming no extra passphrase is used, what can the backup restore?
Not quite. Try another option.
Answer: The private keys for addresses derived from the same seed
An HD wallet deterministically derives many keys from one seed. Restoring that seed allows the wallet to regenerate later receiving and change addresses along the same derivation paths.
Question 24 of 60 · Wallets · Medium
A company wants an internet-connected system to monitor funds and prepare payments without storing private keys online. Which design best meets this requirement?
Not quite. Try another option.
Answer: Use a watch-only wallet online and sign PSBTs offline
A watch-only wallet can track addresses and prepare Partially Signed Bitcoin Transactions. An offline wallet can then verify and sign those transactions without exposing private keys online.
Question 25 of 60 · Bitcoin payments · Medium
A wallet selects UTXOs worth BTC and BTC. It sends BTC and pays a fee of BTC. What change output should it create?
Not quite. Try another option.
Answer: BTC
The selected inputs total BTC. The change is BTC.
Question 26 of 60 · Bitcoin payments · Medium
A merchant delivers an expensive product immediately after seeing an unconfirmed Bitcoin transaction. Which risk is most directly increased?
Not quite. Try another option.
Answer: The transaction may be replaced or conflict with another spend
An unconfirmed transaction is not yet included in the blockchain and can conflict with another transaction spending the same input. Waiting for confirmations reduces this double-spend risk.
Question 27 of 60 · Innovation in Bitcoin · Medium
Why was Segregated Witness important for protocols that depend on referencing an unconfirmed parent transaction?
Not quite. Try another option.
Answer: It made relevant transaction identifiers resistant to third-party signature malleability
SegWit separates witness data from the transaction identifier calculation. For SegWit spends, this prevents third parties from changing signatures in a way that alters the transaction ID.
Question 28 of 60 · Innovation in Bitcoin · Medium
A Taproot output contains several alternative spending conditions, but only one condition is used. What is a key on-chain benefit of its script-tree design?
Not quite. Try another option.
Answer: Only the executed script path and its proof need to be revealed
Taproot's script-tree structure allows a spender to reveal only the condition being used and the data needed to prove its inclusion. This can improve privacy and reduce on-chain data.
Question 29 of 60 · Advanced protocols · Medium
Three directors control a Bitcoin treasury using a 2-of-3 multisignature policy. Which statement correctly describes the spending condition?
Not quite. Try another option.
Answer: Any two directors can spend, while one key alone is insufficient
A 2-of-3 policy accepts signatures from any two of the three authorized keys. Losing one key does not prevent spending, while compromising only one key is insufficient to steal the funds.
Question 30 of 60 · Advanced protocols · Medium
In a cross-chain atomic swap, why are hashlocks commonly combined with timelocks?
Not quite. Try another option.
Answer: Hashlocks reveal a shared secret, while timelocks permit later refunds
Claiming one side of the swap reveals the secret needed to claim the other side. Timelocks allow participants to recover their funds if the swap is not completed.
Question 31 of 60 · Bitcoin investment · Medium
An investor buys the same fiat value of Bitcoin every month regardless of price. What is the most accurate effect of this strategy?
Not quite. Try another option.
Answer: It reduces dependence on choosing one purchase time but retains market risk
Dollar-cost averaging spreads purchases across different market prices, reducing sensitivity to a single entry point. It does not eliminate volatility or guarantee a profit.
Question 32 of 60 · Bitcoin investment · Medium
An investor moves Bitcoin from a custodial exchange to a properly initialized hardware wallet. Which risk trade-off has most directly changed?
Not quite. Try another option.
Answer: Exchange counterparty risk falls, but key-management responsibility increases
Self-custody reduces dependence on an exchange's solvency and withdrawal policies. However, the investor becomes responsible for protecting the seed, backups, and signing devices.
Question 33 of 60 · Buying and selling Bitcoin · Medium
Bitcoin trades at $31,000, but a buyer submits a limit buy order at $30,000. What should the buyer expect?
Not quite. Try another option.
Answer: The order executes only at $30,000 or a lower available price
A limit buy sets the maximum price the buyer is willing to pay. The order may remain unfilled if sellers never offer Bitcoin at $30,000 or less.
Question 34 of 60 · Buying and selling Bitcoin · Medium
An exchange quotes a bid of $42,000 and an ask of $42,400 for one bitcoin. Ignoring fees, which price applies to a customer making an immediate purchase?
Not quite. Try another option.
Answer: $42,400, because an immediate buyer pays the ask price
The ask is the lowest price at which a seller currently offers Bitcoin. An immediate buyer crosses the spread and purchases at the available ask price.
Question 35 of 60 · Bitcoin client installation · Medium
Before installing a downloaded Bitcoin client, which procedure provides the strongest evidence that the file is both authentic and unchanged?
Not quite. Try another option.
Answer: Verify its signed checksums using a trusted developer signing key
A checksum detects file changes, while a trusted digital signature authenticates the published checksum. Both should be verified before running the installer.
Question 36 of 60 · Bitcoin client installation · Medium
A user enables pruning in Bitcoin Core because disk space is limited. Which outcome should the user expect?
Not quite. Try another option.
Answer: The node validates blocks but deletes older block data after validation
A pruned node still performs blockchain validation but discards older block files to limit storage usage. It generally cannot serve all historical blocks to other peers.
Question 37 of 60 · Experimenting further with bitcoin-cli · Medium
The output of bitcoin-cli getblockchaininfo reports headers: 850000 and blocks: 849997. What is the most reasonable interpretation?
Not quite. Try another option.
Answer: The node knows three more block headers than blocks it has validated
headers indicates the best header height known to the node, while blocks indicates its validated active-chain height. The node is therefore approximately three blocks behind.
Question 38 of 60 · Experimenting further with bitcoin-cli · Medium
Which command sequence should be used to retrieve a decoded, verbose block at height 700000?
Not quite. Try another option.
Answer: Run bitcoin-cli getblockhash 700000, then bitcoin-cli getblock <hash> 2
getblockhash converts a block height into its block hash. Passing that hash to getblock with verbosity level 2 returns decoded block and transaction information.
Question 39 of 60 · Bitcoin programming · Medium
A payment application must calculate transaction outputs and fees precisely. Which internal representation is safest for monetary values?
Not quite. Try another option.
Answer: Integer values measured in satoshis
Using integer satoshi amounts avoids floating-point rounding errors. One bitcoin equals satoshis.
Question 40 of 60 · Bitcoin programming · Medium
A merchant's web application receives a transaction ID from a customer's browser. What should the application do before marking the invoice as securely paid?
Not quite. Try another option.
Answer: Query a trusted node and verify the output, amount, and required confirmations
A transaction ID supplied by a customer is only a claim. The application should verify through a trusted node that the transaction pays the expected script and amount and has sufficient confirmations.
Question 41 of 60 · The Bitcoin network · Hard
A Bitcoin node receives two valid competing chain tips. Chain A has height 850,100 and cumulative chainwork . Chain B has height 850,098 and cumulative chainwork . Assuming neither chain violates consensus rules, which tip will the node select?
Not quite. Try another option.
Answer: Chain B, because it has greater cumulative proof-of-work
Bitcoin selects the valid chain with the greatest cumulative chainwork, not necessarily the greatest height. Chain B represents more total proof-of-work.
Question 42 of 60 · The Bitcoin network · Hard
While processing a BIP152 compact block, a node reconstructs every transaction except three whose short IDs are ambiguous or absent from its mempool. What is the normal recovery procedure?
Not quite. Try another option.
Answer: Request the missing transactions with getblocktxn, then validate the reconstructed block
The receiver requests missing transaction indexes using getblocktxn; the peer replies with blocktxn. The complete block must still pass all normal consensus validation.
Question 43 of 60 · Wallets · Hard
A watch-only wallet imports the descriptor wpkh([d34db33f/84h/0h/0h]xpub.../0/*). What can it do without access to the corresponding private keys?
Not quite. Try another option.
Answer: Derive receiving addresses and detect payments, but not produce valid signatures
The origin path documents how the xpub was obtained. The wallet can derive the unhardened /0/* public children, but an xpub cannot generate private keys or signatures.
Question 44 of 60 · Wallets · Hard
An HD wallet is restored from its seed, but an address at receive index 5,000 was used after a long sequence of unused addresses. A standard discovery scan stops before reaching it. Which remedy addresses the actual problem?
Not quite. Try another option.
Answer: Increase the derivation look-ahead or descriptor range and rescan the relevant blocks
A blockchain rescan cannot find outputs for scripts the wallet never derived. The wallet must extend its address range or gap limit and then scan the relevant blockchain history.
Question 45 of 60 · Bitcoin payments · Hard
A merchant receives an unconfirmed payment that signals replaceability. The merchant controls the payment output and can create a high-fee child transaction. Which statement best characterizes the merchant's security?
Not quite. Try another option.
Answer: CPFP may accelerate confirmation, but it cannot prevent a conflicting replacement of the parent
Child-pays-for-parent can improve package mining incentives, but the unconfirmed parent may still be replaced or conflicted. Confirmations are needed for stronger settlement assurance.
Question 46 of 60 · Bitcoin payments · Hard
A finalized payment transaction has weight 721 WU, spends inputs totaling 150,000 sat, and pays the recipient 100,000 sat. At exactly 25 sat/vB, with no other deductions or dust issue, what change output is required?
Not quite. Try another option.
Answer: 45,475 sat
Virtual size is vB, so the fee is sat. Change is sat.
Question 47 of 60 · Innovation in Bitcoin · Hard
For a transaction whose inputs are all native SegWit inputs, what happens if a third party modifies only witness serialization without invalidating the transaction?
Not quite. Try another option.
Answer: The wtxid can change while the txid remains unchanged
The legacy txid excludes SegWit witness data, while the wtxid includes it. This separation mitigates third-party transaction-ID malleability for SegWit spends.
Question 48 of 60 · Innovation in Bitcoin · Hard
A Taproot output commits to one key-path spend and several script leaves. If one script-path leaf is exercised, what is revealed on-chain?
Not quite. Try another option.
Answer: The executed script, its control block, and the hashes needed for its Merkle path
A Taproot script-path spend selectively reveals the executed leaf and a control block proving its commitment. Unexecuted sibling scripts remain hidden behind hashes.
Question 49 of 60 · Advanced protocols · Hard
In a cross-chain atomic swap, Alice chooses secret and first locks coins on Chain A. Bob then locks coins on Chain B using the same hashlock. Which timelock and redemption arrangement protects both parties?
Not quite. Try another option.
Answer: Alice's Chain A refund expires later; Alice redeems on B and reveals for Bob
Alice redeems Bob's contract and reveals . Bob then uses to redeem Alice's contract. Alice's original contract needs the longer timeout so Bob has time to act.
Question 50 of 60 · Advanced protocols · Hard
In a penalty-based Lightning channel, a dishonest peer broadcasts a revoked commitment transaction while the honest peer is offline. What must a watchtower do?
Not quite. Try another option.
Answer: Detect the revoked commitment and publish the preconstructed justice transaction before the delay expires
Revoked states expose a penalty path. A watchtower monitors for a matching breach and broadcasts the justice transaction before the dishonest party's delayed output becomes spendable.
Question 51 of 60 · Bitcoin investment · Hard
An investment gains 50% in year one and loses 50% in year two. Ignoring fees and taxes, what happens to an initial investment of $100,000?
Not quite. Try another option.
Answer: It ends at $75,000, representing a cumulative loss of 25%
Returns compound multiplicatively: . Equal percentage gains and losses do not cancel because they apply to different bases.
Question 52 of 60 · Bitcoin investment · Hard
A portfolio begins with $60 in Bitcoin and $40 in cash. Bitcoin then falls 40% while cash is unchanged. To restore the original 60/40 allocation without adding funds, what trade is required?
Not quite. Try another option.
Answer: Buy $9.60 of Bitcoin using cash
After the decline, Bitcoin is worth $36 and the portfolio is worth $76. A 60% target is must be moved from cash to Bitcoin.
Question 53 of 60 · Buying and selling Bitcoin · Hard
An exchange order book has asks of 0.3 BTC at $60,000, 0.4 BTC at $60,200, and 0.5 BTC at $60,500. Ignoring fees, what is the volume-weighted average execution price of a 0.8 BTC market buy?
Not quite. Try another option.
Answer: $60,162.50 per BTC
The order consumes 0.3, 0.4, and 0.1 BTC from the three levels. The VWAP is .
Question 54 of 60 · Buying and selling Bitcoin · Hard
The best ask is $60,100. A trader submits a post-only limit buy for 2 BTC at $60,000. What is the most accurate expected behavior?
Not quite. Try another option.
Answer: The order rests on the book and may fill partially or fully at $60,000 or lower
The buy does not cross the current best ask, so it can rest as maker liquidity. A buy limit sets the maximum execution price but does not guarantee execution.
Question 55 of 60 · Bitcoin client installation · Hard
Which procedure provides the strongest practical verification of a downloaded Bitcoin Core release before installation?
Not quite. Try another option.
Answer: Verify trusted signatures on the checksum manifest, then match the binary's cryptographic hash
TLS alone does not establish release authenticity. Verifying trusted maintainer signatures and then checking the binary against the authenticated hash detects substitution or corruption.
Question 56 of 60 · Bitcoin client installation · Hard
Which statement accurately describes a Bitcoin Core node operating with block pruning enabled?
Not quite. Try another option.
Answer: It validates the chain and retains the UTXO set, but discards old block data and limits historical rescans
Pruning reduces storage after full validation; it does not turn the node into a trusted or SPV client. Historical blocks that were discarded cannot be served or rescanned without obtaining them again.
Question 57 of 60 · Experimenting further with bitcoin-cli · Hard
A confirmed transaction is absent from the mempool, and the node was started without -txindex. Its containing block is known and still stored locally. Which RPC can retrieve the decoded transaction?
Not quite. Try another option.
Answer: getrawtransaction "txid" true "blockhash"
Supplying the containing block hash allows getrawtransaction to search that available block without a global transaction index. The second argument requests decoded JSON output.
Question 58 of 60 · Experimenting further with bitcoin-cli · Hard
Several wallets must independently sign the same funded multisignature PSBT. Which command sequence correctly combines and broadcasts the result?
Not quite. Try another option.
Answer: walletprocesspsbt per signer, combinepsbt, finalizepsbt, then sendrawtransaction
Each wallet adds its partial signatures to a PSBT copy. combinepsbt merges them, finalizepsbt produces the complete raw transaction, and sendrawtransaction broadcasts its hex.
Question 59 of 60 · Bitcoin programming · Hard
Under legacy or SegWit v0 signature hashing, what does SIGHASH_SINGLE | SIGHASH_ANYONECANPAY primarily allow when the signed input has a corresponding output index?
Not quite. Try another option.
Answer: Other inputs may be added, while the signature commits to the current input and matching output
ANYONECANPAY limits the input commitment to the current input, while SINGLE commits to the output at the same index. This supports collaborative constructions with carefully aligned indexes.
Question 60 of 60 · Bitcoin programming · Hard
A native P2WSH output commits to a 2-of-3 CHECKMULTISIG witness script. Which witness-stack structure correctly spends it with two valid signatures?
Not quite. Try another option.
Answer: An empty dummy element, two ordered signatures, and the witness script as the final element
CHECKMULTISIG consumes an extra dummy element because of its historical off-by-one behavior. For native P2WSH, the signatures and witness script are supplied in the witness, while scriptSig is empty.
That's unit 4
Answer a few questions and your score shows up here.
Nearly through. Did unit 4 of CSE436 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of CSE436 save you a night before the exam?
Then you can help keep it free for the next batch. 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.