Black Friday Special Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Blockchain > Blockchain Developer - Ethereum > CBDE

CBDE BTA Certified Blockchain Developer - Ethereum Question and Answers

Question # 4

Finish the sentence: The Library Web3.js is …:

A.

useful when developing distributed applications with HTML and JavaScript, because it already implements the abstraction of the JSON-RPC interface of Ethereum Nodes.

B.

necessary when developing distributed applications with HTML and JavaScript, because the proprietary JSON-RPC interface of Ethereum Nodes is a closed source.

Full Access
Question # 5

When using require to check input parameters and it evaluates to false:

A.

all gas is consumed

B.

all remaining gas is returned.

Full Access
Question # 6

Which is the right order for Denominations?

A.

Wei, Finney, Szabo, Ether, Tether.

B.

Finney, Szabo, Mether, Gwei.

C.

Gwei, Szabo, Finney, Ether.

Full Access
Question # 7

If a User calls contract A and that calls Contract B, then msg.sender in Contract B will contain the address of:

A.

the User.

B.

contract A.

Full Access
Question # 8

What's the correct scientific notation?

A.

1 Ether = 10^18 wei, 10^9 Gwei, 10^3 Finney

B.

1 Ether = 10^19 wei, 10^13 Gwei, 10^3 Finney

C.

1 Ether = 10^16 wei, 10^13 Gwei, 10^3 Finney

D.

1 Ether = 10^18 wei, 10^6 Gwei, 10^6 Finney

Full Access
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.

Full Access
Question # 10

According to the official Style Guide:

A.

you should capitalize function names, events and contract names, to avoid confusion with JavaScript. You should use Tabs to indentation and a maximum of 80 characters per line.

B.

contract names should be capitalized, while functions should be mixedCase. You should use 4 spaces as indentation and a maximum of 79 (or 99) characters per line.

C.

contract should be mixedCase, as well as function names. Events should be capitalized. 2 spaces should be used as indentation and a maximum of 120 characters per line.

Full Access
Question # 11

When solidity is compiled then also Metadata is generated:

A.

the Metadata contains the ABI Array, which defines the Interface to interact with the Smart Contract. Metadata can also contain the address of the smart contract when it gets deployed.

B.

metadata contains the address, and the size of the smart contract. The ABI Array is generated externally upon deploying the smart contract.

C.

the ABI array and the Metadata are not generated when solidity is compiled to bytecode, its generated by a migration software which deploys the smart contract on the blockchain.

Full Access
Question # 12

Single line comments in Solidity are:

A.

working with either // or ///

B.

working with /* comment */ or /** @.. natspec style */

C.

not possible, all comments must be multi-line.

Full Access
Question # 13

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.

Full Access
Question # 14

Unit-Testing on a local chain is important, because it helps you:

A.

to run tests quickly and especially for free, compared to continuous deployment on the MainNetwork. This way you save a lot of fees, time and costs.

B.

to run tests in an environment where logging is activated. On the Main-Net you have no access to transaction logs and this is ultimately the information you need to debug your contracts.

C.

to avoid regression bugs with contracts that are updated constantly on the main-net. Once you update a contract on the main-net, the address stays the same, but the code changes and this can have disastrous side-effects.

Full Access
Question # 15

The following are value types in Solidity.

A.

Integer, Boolean, Struct, Mapping and Enum.

B.

Integer, Boolean, Enum and Addresses.

C.

Integer, Boolean, Structs and Fixed Point Numbers.

Full Access