blockchain CBDE Exam Questions

Questions for the CBDE were updated on : Nov 21 ,2025

Page 1 out of 7. Viewing questions 1-15 out of 102

Question 1

Integrating the community into your testing:

  • A. is great, because they often find bugs which weren't considered before.
  • B. is not good, because you might give out secrets.
Answer:

A

User Votes:
A
50%
B
50%
Discussions
vote your answer:
A
B
0 / 1000

Question 2

To avoid issues during Ethereum platform upgrades:

  • A. it's good to inform users about the updates via a newsletter.
  • B. it's good to have the ability to pause a contract in order to manage the money at risk.
  • C. Ethereum doesn't upgrade the platform. It's fixed and final.
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 3

To develop smart contracts:

  • A. it’s good to start with a local in-memory blockchain with unit tests but then deploy to the mainnet as rapidly as possible.
  • B. it's good to start with a local in-memory blockchain with unit-tests. Then, in the next step, debug and test the smart contract on a test-net like Ropsten or Rinkeby with beta customers to iron out last issues before deploying it to the main-net.
  • C. it's good to start with a test-net with beta-customers like on the Rinkeby or Ropsten testnet, before testing it locally on an in-memory blockchain simulation such as Ganache. Then deploy it to the main-net.
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 4

When a smart contract pays out money:

  • A. it’s good to use a push over a pull method.
  • B. it’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.
  • C. it's good to use only pull and no push method.
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 5

When considering smart contracts and the blockchain it's good:

  • A. to move all existing logic to the blockchain, so everything runs on the same system. This way it might be more complex, but easier to maintain.
  • B. to move only those parts to the blockchain that really need the blockchain. This way smart contracts can be easier to read, easier to test and are not so complex.
  • C. to move those parts to the blockchain that deal with Ether transfers. All other parts can remain in traditional database systems. This way only the value-transfer is on the blockchain.
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 6

When you are programming a game like poker of battleships where you need to hide opponents
values is:

  • A. with private state variables. This way nobody else other than the smart contract itself can see the information
  • B. with external contracts holding those values. This way we can make sure that the information flow is following a clear logic and nobody else can access this information.
  • C. You can't hide anything on the blockchain, because the information is public, just the call is private which means only other smart contracts would be limited in accessing that information.
Answer:

C

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 7

When you do external calls to other smart contracts:

  • A. you should follow the checks-effects-interactions pattern and avoid state changes after the call.
  • B. you should follow the effects-checks-interactions pattern and avoid state changes before the call.
  • C. you should follow the checks-effects-interactions pattern, which is only necessary when you do calls to contracts where a direct contract call is not possible.
Answer:

A

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 8

To generate a random number:

  • A. it's good to use the block timestamp, as this is always different.
  • B. it's good to use the block hash as this is clearly always very different.
  • C. it's good to use the RANDAO smart contract.
  • D. it's not possible to have a random number in a deterministic environment such as the Ethereum blockchain.
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 9

If you are starting a new ERC20 token:

  • A. it would be best to start from scratch, just looking at the required interface.
  • B. it is beneficial to copy and paste the already existing code from the Ethereum wiki and modify this until you like it.
  • C. best is to start with an audited implementation, for example from OpenZeppelin, in order to reuse already existing code.
Answer:

C

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 10

Why is Unit-Testing so important?

  • A. It helps you to find bugs, regression bugs and sometimes also helps you to understand your code from different angles.
  • B. It is a great way to spend time on something that you get paid for. But ultimately it will just slow down the development process.
Answer:

A

User Votes:
A
50%
B
50%
Discussions
vote your answer:
A
B
0 / 1000

Question 11

Using truffle-contract over Web3.js:

  • A. is a must for every developer, because Web3.js changes so often.
  • B. is a convenient way because Web3.js is currently still in beta and truffle-contract can handle transactions with JavaScript-promises.
  • C. they are both completely different things. Truffle-Contract is a framework while Web3.js is a library.
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 12

Truffle has an integrated in-memory blockchain which makes unit-testing very easy:

  • A. True, but it's still good to use Ganache, or even a real private network for testing.
  • B. False, it's necessary to use Ganache or even a real private network for testing.
Answer:

A

User Votes:
A
50%
B
50%
Discussions
vote your answer:
A
B
0 / 1000

Question 13

Truffle boxes are a great way:

  • A. to contribute to the box community which is the distributed file system for truffle.
  • B. to start with a pre-configured environment for most web-development needs.
  • C. to use tools that makes boxing of Dapps for different platforms very easy.
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 14

With the truffle config file you can manage:

  • A. the amount of gas your contract deployment and transactions, against your contract, will need. This way you can essentially lower the gas costs over traditional web3.js dApps.
  • B. different Networks to deploy your contracts to. This way you can easily deploy to a local blockchain, the main-net or the Ropsten/Rinkeby Test-Net with only one parameter.
  • C. you can manage your secret API keys to the Ethereum Network. This way you can get access to several different Ethereum nodes at the same time without the need to switch your keyfiles.
Answer:

B

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 15

It's easy to write clean-room unit-tests with truffle:

  • A. for Java, JavaScript, and C++
  • B. for JavaScript using Web3.js
  • C. for Solidity and JavaScript
  • D. for any language, as long as it adheres to the open Testing-Interface from Truffle
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000
To page 2