Plutus Quiz B
Select the most correct option
What does
pubKeyHashAddressproduce? A.AddresswithPubKeyCredentialand no staking B. RawPubKeyHashC.ValidatorHashD.Credentialonly E.NothingtoPubKeyHash (Address (ScriptCredential _) _)yields: A.JustaPubKeyHashB.NothingC. A runtime error D. A defaultPubKeyHashE. Inline datumCalling
stakingCredential (Address cred s)returns: A.credB.sC.Just credD. AlwaysNothingE. AScriptErrorencodeByteStringtakes aByteStringand returns: A. Base16-encodedTextB.ByteStringof hex digits C.LedgerBytesD. AStringE. UTF-8JsonThe type of
fromHexis: A.BS.ByteString -> Either String LedgerBytesB.Text -> Either String LedgerBytesC.String -> BS.ByteStringD.LedgerBytes -> BS.ByteStringE.BS.ByteString -> LedgerBytesThe
newtype LedgerByteswraps: A.P.BuiltinByteStringB.BS.ByteStringC.StringD.TextE.IntegerThe
IsStringinstance forLedgerBytesuses: A.unsafeFromEither . fromHex . fromStringB.fromBytesC.encodeByteStringD.toBuiltinE.toStringinstance PlutusTx.Eq Credentialdefines equality by: A. Matching only like constructors B. Always returningTrueC. Using theShowinstance D. Always returningFalseE. Auto-derivedEqThe
DCertPoolRegisterconstructor carries twoPubKeyHashfields representing: A. Pool ID and VRF key B. Delegator and delegatee C. Pool params hash D. Nonce and index E. Stake credential and rewardThe
Extended adata type has constructors: A.NegInf,Finite,PosInfB.Zero,OneC.Closed,OpenD.LowerBound,UpperBoundE.IntervalstrictLowerBound aconstructs: A.LowerBound (Finite a) FalseB.LowerBound (Finite a) TrueC.UpperBound (Finite a) FalseD.LowerBound aE.NegInfupperBound ayields: A.UpperBound (Finite a) TrueB.LowerBound (Finite a) TrueC.Finite aD.PosInfE.NegInfThe
Closuretype alias means: A.True= inclusive endpoint B.True= exclusive endpoint C. Unused in intervals D. AlwaysFalseE. AlwaysTrueThe
Functorinstance forIntervalallowsfmapto: A. Map over both endpoints B. Map over term bodies C. No effect D. Only for lists E. Only forMaybeThe
Prettyinstance forInterval aprints as: A."[l, r]"B."l,r"C."l , r"D. With a comma between lower and upper E. With parentheses onlyinterval s s'produces an interval that: A. Includes bothsands'B. Excludes both endpoints C. Includes onlysD. Includes onlys'E. Is emptyfrom syields: A. All values ≥sB. All values ≤sC. Only the pointsD. Empty interval E. All real numbersto syields: A. All values ≤sB. All values ≥sC. Closed interval aroundsD. Empty interval E. Full intervalalwaysis the interval: A.(-∞, +∞)closed both ends B. A single point C. Empty D. Only non-negative E. Only non-positiveneveris the interval: A. Empty B.alwaysC. Closed D. Full E. Single-pointsingleton sis equivalent to: A.interval s sB.alwaysC.neverD.from sE.to shull a breturns: A. Smallest interval containingaandbB. Largest interval contained in both C.alwaysD.neverE. Random intervaloverlaps l rchecks whether: A.landrshare any points B.lcontainsrfully C.rcontainslfully D. AlwaysTrueE. AlwaysFalsecontains a bisTrueif: A. Intervalbis entirely withinaB.ais withinbC. They are equal D. Disjoint E. AlwaysFor
Interval (Finite 3 False) (Finite 4 False)onInt,isEmptyreturns: A. False B. True C. Runtime error D. Not allowed E.Maybe Boolbefore h ireturnsTruewhen: A.his less than the lower bound ofiB.his greater than the upper bound C.his inside D. Always E. Neverafter h ireturnsTruewhen: A.his greater than the upper bound ofiB.his less than the lower bound C.his inside D. Always E. NeverPOSIXTimeRangeis an alias for: A.Interval POSIXTimeB.(POSIXTime, POSIXTime)C.ValueD.TxInfoE.TxInInfoDiffMilliSecondsderives theIntegralclass, so it can be: A. Used as an integer in arithmetic B. Mapped over C. Only compared D. Converted to text E. Serialized onlyfromMilliSecondsconverts: A.DiffMilliSeconds→POSIXTimeB.POSIXTime→DiffMilliSecondsC.Integer→TimeD.Value→IntervalE.ByteString→TextalwaysSucceedingNAryFunction ngenerates a UPLC script that: A. Takesnarguments and returns the first B. Always fails C. Adds two integers D. CallsErrorE. Creates a singletonalwaysFailingNAryFunction 0yields: A.ErrorB. Identity function C. A variable reference D. A lambda abstraction E. A constant 0summingFunctionapplies which builtin? A.AddIntegerB.SubtractIntegerC.MultiplyIntegerD.DivideIntegerE.IfThenElsesaltFunction salt b0wraps scriptb0by: A. Applying a lambda abstraction tosaltB. Changing its hash only C. Adding a datum D. Embedding a reference script E. Modifying the cost modelshelleyPVis defined as: A.ProtocolVersion 2 0B.ProtocolVersion 3 0C.ProtocolVersion 4 0D.ProtocolVersion 5 0E.ProtocolVersion 7 0alonzoPVequals: A.ProtocolVersion 5 0B.ProtocolVersion 4 0C.ProtocolVersion 7 0D.ProtocolVersion 3 0E.ProtocolVersion 2 0In Plutus.V1.Ledger.Scripts, the
Scriptnewtype wraps: A.UPLC.Program UPLC.DeBruijn DefaultUni DefaultFun ()B.ShortByteStringC.ByteStringD.CompiledCodeE.ValidatorfromCompiledCodeuses which function to drop names? A.toNameless . getPlcB.serialiseC.decodeViaFlatD.applyArgumentsE.mkTermToEvaluatescriptSizereturns: A.UPLC.programSizeof the wrapped program B. Byte length of the script C. Number of lamdas D. Cost model estimate E. Datum sizeapplyArgumentsinjects constant arguments using: A.PLC.mkConstantB.UPLC.LamAbsC.UPLC.ErrorD.mkTermToEvaluateE.scriptCBORDecoderevaluateScriptreturns on success: A.(ExBudget, [Text])B.ExBudgetonly C.[Text]only D.Either EvaluationError ExBudgetE.ScriptunitDatumis defined as: A.Datum $ toBuiltinData ()B.DatumHashC.RedeemerD.ValueE.ScriptunitRedeemeris: A.Redeemer $ toBuiltinData ()B. Datum C. TxOut D. TxIn E. ContextapplyValidatorapplied to its args returns: A. AScriptready to evaluate B.ExBudgetC.LogOutputD.ValueE.TxInforunMintingPolicyScriptunder the hood calls: A.applyMintingPolicyScriptthenevaluateScriptB.applyValidatorC.scriptCBORDecoderD.mkTermToEvaluateE.unliftingModeInThe runtime types
ScriptHash,ValidatorHash, etc., all deriveIsStringvia: A.LedgerBytesB.ByteStringC.TextD.IntegerE.ValueThe
Contexttype wraps: A.BuiltinDataB.DatumC.ValueD.TxIdE.TxInfoIn V1 Tx, the lens
outValuefocuses on: A.txOutValueB.txOutAddressC.txOutDatumHashD.txOutDatumE.txOutReferenceScriptIn V2 Tx,
pubKeyHashTxOut v pkhsets: A.txOutDatum = NoOutputDatumandtxOutReferenceScript = NothingB. Inline datum and a reference script C. Datum hash only D. A script address E. A default cost modelmakeIsDataIndexed ''OutputDatumtags theOutputDatumconstructor with index: A. 2 B. 0 C. 1 D. 3 E. 4
Answers Quiz B
A
B
B
A
A
A
A
A
A
A
A
A
A
A
D
A
A
A
A
A
A
A
A
A
B
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
Last updated