CSE 598 Week 4 Quiz Transactions on the Blockchain
Due Nov 6, 2022 at 11:59pm
Points 10
Questions 8
Available after Oct 31, 2022 at 12am
Time Limit None
Attempt History
Attempt Time Score
LATEST Attempt 1 2 minutes 10 out of 10
Score for this quiz: 10 out of 10
Submitted Nov 6, 2022 at 6:35pm
This attempt took 2 minutes.
Question 1
pts
1. Which data field in a transaction's output is used to refer to it in a subsequent transaction?
“address”; This data field allows a future transaction to reference the specific address intended for the output.
“scriptPubKey”; This data field allows a future transaction to reference the specific locking script used in the
output.
“txid”; This data field allows a future transaction to reference the specific transaction this output is located in.
Correct!
“n”; This data field allows a future transaction to reference the specific output in a transaction that is to be spent.
Question 2
pts
2. Given this input script: 3 5
And this output script: A B 3 OP_EQUAL
What two opcodes should replace A and B to make this a valid transaction?
A: OP_DUP, B: OP_EQUAL
A: OP_EQUAL, B: OP_DUP
Correct!
A: OP_DUP, B: OP_EQUALVERIFY
A: OP_EQUALVERIFY, B: OP_DUP