Find out if you're ready for CBDE. Take the free timed mock exam and get your score in minutes, or study the free CBDE questions below with answers and explanations.
Correct answer: Awould be better, because it can reduce the amount of energy needed for mining.
Question 2Choose 1
If a User calls contract A and that calls Contract B, then msg.sender in Contract B will
contain the address of:
Show answerHide answer
Correct answer: Bcontract A.
Question 3Choose 1
If contract MyContractA is derived from Contract MyContractB, then this would be the right
syntax:
Show answerHide answer
Correct answer: Acontract MyContractA is MyContractB { … }
Question 4Choose 1
Block Timestamp:
Show answerHide answer
Correct answer: Cthe timestamp can be influenced by a miner to a certain degree but it's always
independent from the time-zone.
Question 5Choose 1
A Struct is a great way:
Show answerHide answer
Correct answer: Ato define a new datatype in Solidity, so you don't need to use objects of another
contract.
Question 6Choose 1
DApps are:
Show answerHide answer
Correct answer: Ban amazing way to create new applications. Those applications run entirely separated
from other applications on the platform and allow for logical interactions. They can't access
any funds to add an additional layer of trust.
Question 7Choose 1
To send ether to a contract without a function call:
Show answerHide answer
Correct answer: Aa fallback function must be declared and it must be made payable. If there is no fallback
function or the fallback function is not payable it will throw an exception.
Question 8Choose 1
When a smart contract pays out money:
Show answerHide answer
Correct answer: Bit’s good to use a push and a pull method to ensure that participants can get their money
no matter the contract state. In addition to and pushing it should contain a withdraw
method.
Question 9Choose 1
A Mapping consists of keys and value.
Show answerHide answer
Correct answer: Cthe value can be anything, but the key cannot be another mapping, struct, enum or
dynamically sized array.
Question 10Choose 1
On a consortium network:
Show answerHide answer
Correct answer: Busually only a few selected nodes can be miners. Transactions can be further limited.
Full mock exam
Sit the CBDE exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real CBDE exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.