On this pageExamQuestion 1โWhich notions are defined inside the smart contract?The type definition of the storageThe balance of the contractThe initial value of the storageThe value of the entrypoint and its related parametersThe type definition of the entrypointThe size of the storageThe code of the smart contractThe list of users allowed to call the smart contractQuestion 2โWhat is returned by the execution of a smart contract?The current storage state when invoking the smart contractThe modified storage state after invoking the smart contractThe entrypoint that has been called (and its related parameters)The list of emitted operations produced by the execution of the smart contractThe balance of the contractThe size of the storageThe code of the smart contractThe list of users allowed to call the smart contractQuestion 3โConsider the following Michelson smart contract:parameter nat;storage nat;code { DUP; CAR; DIP { CDR }; ADD; NIL operation; PAIR }CopyWhat is the stack at the beginning of the execution (considering parameter value is 2 and storage value is 5)?Check the right answer.nat 2 , nat 5nat 5, nat 2(PAIR (nat 2) (nat 5))(PAIR (nat 5) (nat 2))Question 4โConsider the following Michelson smart contract.parameter nat;storage nat;code { DUP; CAR; DIP { CDR }; ADD; NIL operation; PAIR }CopyConsidering that the parameter value is 1 and that the storage value is 1, what will be the output of the execution? 2[ PAIR (1 1) ]Pair (1 1)Pair ([], 2)Pair (2, [])Question 5โConsider the following Michelson smart contract:parameter (or (pair %assign address nat) (nat %global)) ;storage (pair (big_map %owners address nat) (nat %value)) ;code { DUP ; CDR ; SWAP ; CAR ; IF_LEFT { SWAP ; DUP ; CDR ; DUG 2 ; CAR ; SWAP ; UNPAIR ; DIP { SOME }; UPDATE ; PAIR ; NIL operation ; PAIR } { SWAP ; CAR ; PAIR ; NIL operation ; PAIR } }CopyWhat are the possible invocations of this smart contract?`(Pair (Pair "tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv" 7) 23)``Left 30``Left "tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv" 7``Right 45``Right Right 12``Left Left "tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv"``Left (Pair "tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv" 7)` `Left (Pair "tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv" (Pair 7 23))``Right (Pair "tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv" 23)``(Pair (Left "tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv") (Right 23))``Left (Pair (Left "tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv") (Right 23))`Question 6โConsider the following Michelson smart contract storage:storage (pair (pair (set %participants nat) (pair (nat %age) (string %name))) (pair (big_map %owners address nat) (nat %value)));CopyNotice that the storage is composed of nested pairs. Let's consider that the storage is the top element of the stack. Which instruction can be used to retrieve the big_map part of the storage?CDRCARCDARCADRCAARCADARCADDRQuestion 7โConsider the following smart contract that allows to increment or decrement an integer counter:parameter (or (int %increment) (int %decrement)) ;storage int ;code { DUP ; CDR ; SWAP ; CAR ; XXXXX { SWAP ; SUB } { ADD } ; NIL operation ; PAIR }CopyThe XXXXX instruction must be replaced by a conditional instruction. Which instruction should be used?IFIF_SOMEIF_NONEIF_CONSIFCMPEQIF_LEFTIF_RIGHTQuestion 8โThe following contract is incomplete:parameter (or (pair %assign string nat) (string %remove)) ;storage (big_map string nat) ;code { DUP ; CDR ; SWAP ; CAR ; IF_LEFT { UNPAIR ; DIP { SOME } } { XXXXXXX }; UPDATE ; NIL operation ; PAIR }CopyNotice that the storage is a big_map and that the parameter allows two possible invocations: "assign" and "remove".The "assign" entrypoint takes two arguments ( a "key" as a string and a "value" as a nat) set in a pair. The goal of the "assign" entrypoint is to modify the storage (the big_map) by assigning the given "value" to the given "key". The "remove" entrypoint takes a single argument (a "key" as a string). The goal of the "remove" entrypoint is to modify the storage by removing the given "key" from the big_map. Complete the missing "XXXXXXX" sequence of instructions according to the previously-mentioned statements.UNPAIR ; SOMEUNPAIR ; NONEUNPAIR ; DIP { SOME null }UNPAIR ; DIP { NONE }SWAP ; DIP { SOME }PAIR ; DIP { SOME }DIP { NONE }DIP { NONE null }DIP { NONE nat }DIP { NONE unit }DIP { SOME }DIP { SOME nat }DIP { SOME null }Question 9โConsider the following "QCM_9.tz" smart contract.parameter int ;storage (pair (set int) bool) ;code { DUP ; CDAR ; SWAP ; CAR ; DIP { DUP } ; MEM ; SWAP ; PAIR ; NIL operation ; PAIR }CopyWe invoke this contract with the following command:tezos-client run script QCM_9.tz on storage 'Pair {1;2;3;4} True' and input '5'CopyNotice that this command defines the initial storage state as Pair {1;2;3;4} True and the parameter as 5.What is the resulting storage state?Pair {1;2;3;4;5} TruePair {5;1;2;3;4} TruePair {1;2;3;4;5} FalsePair {5;1;2;3;4} FalsePair {1;2;3;4} FalsePair {1;2;3;4} TrueQuestion 10โConsider the following "QCM_10.tz" smart contract:parameter unit ;storage (map string nat) ;code { CDR ; MAP { CDR ; DUP ; PUSH nat 2 ; SWAP ; EDIV ; IF_NONE { FAIL } { CDR ; INT ; IFEQ {} { PUSH nat 2; MUL} } } ; NIL operation ; PAIR }CopyWe invoke this contract with the following command:tezos-client run script QCM_10.tz on storage '{ Elt "alice" 1; Elt "bob" 2; Elt "carin" 3 }' and input 'Unit'CopyNotice that this command defines the initial storage state as { Elt "alice" 1; Elt "bob" 2; Elt "carin" 3 } and the parameter as Unit.What is the resulting storage state ?{ Elt "alice" 1; Elt "bob" 2; Elt "carin" 3 }{ Elt "alice" 1; Elt "bob" 4; Elt "carin" 3 }{ Elt "alice" 1; Elt "bob" 4; Elt "carin" 6 }{ Elt "alice" 1; Elt "bob" 2; Elt "carin" 6 }{ Elt "alice" 2; Elt "bob" 2; Elt "carin" 3 }{ Elt "alice" 2; Elt "bob" 4; Elt "carin" 3 }{ Elt "alice" 2; Elt "bob" 2; Elt "carin" 6 }{ Elt "alice" 2; Elt "bob" 4; Elt "carin" 6 }