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

Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions
Questions # 21:

To avoid issues during Ethereum platform upgrades:

Options:

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.


Expert Solution
Questions # 22:

Externally Owned Accounts (EoA):

Options:

A.

are changing their address every time a Transaction is sent because of the nonce.


B.

are keeping their address, but on the blockchain a nonce is increased every time they send a transaction to avoid replay attacks.


Expert Solution
Questions # 23:

To send ether to a contract without a function call:

Options:

A.

a 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.


B.

either a fallback function which is payable exists, or no fallback function at all exists.


C.

you cannot send ether to a contract without explicitly calling a function. The fallback function can never receive ether.


Expert Solution
Questions # 24:

According to the official Style Guide:

Options:

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.


Expert Solution
Questions # 25:

Proof of Work (PoW) vs. Proof of Stake.

Options:

A.

PoW is computationally intensive which requires lots of energy. On the other hand, miners earn straightforward a reward for mining a block and incorporating transactions.


B.

PoW is better than PoS, because with PoS we increase the amount of energy spent on the network.


C.

PoS is mining with specialized new hardware that has to be purchased with a stack of Ether in the network. Hence the Name: Proof of Stake, which derives from Stack.


Expert Solution
Questions # 26:

View and Pure Functions:

Options:

A.

a function marked as pure can change the state, while a view function can only return static calls.


B.

a function marked as view can never access state variables, while pure functions are here to return only one value.


C.

a view function can access state variables, but not write to them. A Pure function cannot modify or read from state.


Expert Solution
Questions # 27:

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

Options:

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.


Expert Solution
Questions # 28:

Using selfdestruct(beneficiary) with the beneficiary being a contract without a payable fallback function:

Options:

A.

will throw an exception, because the fallback function is non-payable and thus cannot receive ether.


B.

it's impossible to secure a contract against receiving ether, because selfdestruct will always send ether to the address in the argument. This is a design decision of the Ethereum platform.


C.

selfdestruct doesn't send anything to a contract, it just re-assigns the owner of the contract to a new person. Sending ether must be done outside of selfdestruct.


Expert Solution
Questions # 29:

Truffle:

Options:

A.

is a framework that helps developers with Testing, Deployment and Management of Smart Contracts and Distributed Applications.


B.

is a library that helps developers to connect to Ethereum nodes, because it abstracts the JSONRPC interface.


C.

is a framework for Java, similar to Web3.js for JavaScript. It's a great way to develop distributed Java enterprise applications.


Expert Solution
Questions # 30:

Which is the right order for Denominations?

Options:

A.

Wei, Finney, Szabo, Ether, Tether.


B.

Finney, Szabo, Mether, Gwei.


C.

Gwei, Szabo, Finney, Ether.


Expert Solution
Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions