Pass the Blockchain Blockchain Developer - Ethereum CBDE Questions and answers with CertsForce

Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

Integrating the community into your testing:

Options:

A.

is great, because they often find bugs which weren't considered before.


B.

is not good, because you might give out secrets.


Expert Solution
Questions # 12:

When a smart contract pays out money:

Options:

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.


Expert Solution
Questions # 13:

A Hashing Algorithm is deterministic. What does it mean?

Options:

A.

it always produces the same output given the same input.


B.

it uses equally distributed data to produce the output given a long input.


C.

it shouldn't be possible to re-generate the input given the output.


Expert Solution
Questions # 14:

With the truffle config file you can manage:

Options:

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.


Expert Solution
Questions # 15:

Sending one Ether is actually internally translated:

Options:

A.

to Wei, so it will send the equivalent of 10^18 Wei.


B.

to Finney, so it will send the equivalent of 10^3 Finney.


C.

to Szabo, so it will send the equivalent of 10^6 Szabo.


Expert Solution
Questions # 16:

To get most out of the blockchain, it is best:

Options:

A.

to use it for the whole business logic. It’s always best to have everything in once place.


B.

to use it only for things which need the benefits of the blockchain.


Expert Solution
Questions # 17:

Inheritance is useful, because a contract that is derived from another contract can make use of:

Options:

A.

all public state variables and properties, public and internal functions and modifiers.


B.

all public and private state variables, public, internal and external functions, but not modifiers


C.

all public state variables and properties, public functions and modifiers, but not internal, external or private ones.


Expert Solution
Questions # 18:

To compare a String in Solidity you use:

Options:

A.

string1 == string2


B.

the internal function "str_compare(str1,str2)"


C.

you can't directly compare two strings, but one method would be to hash both strings and compare the hashes.


D.

bytes32(string1) == bytes32(string2)


Expert Solution
Questions # 19:

When you do external calls to other smart contracts:

Options:

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.


Expert Solution
Questions # 20:

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

Options:

A.

the User.


B.

contract A.


Expert Solution
Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions