Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

Blockchain CBDE - BTA Certified Blockchain Developer - Ethereum

Page: 3 / 3
Total 102 questions

View and Pure Functions:

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.

Solidity gets compiled:

A.

to bytecode that can't be understood by humans.

B.

to bytecodes which are essentially opcodes running instruction by instruction.

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.

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.

To compare a String in Solidity you use:

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)

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.

It’s possible to access the blockchain via an Ethereum Node:

A.

only via JavaScript because there is the proprietary Web3.js library.

B.

by any programming language, as long as it adheres to the JSON-RPC standard.

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

A.

all gas is consumed

B.

all remaining gas is returned.

Go-Ethereum vs. Ganache:

A.

both are the same, just implemented in a different language.

B.

with Go-Ethereum you get a real blockchain node where you can create your own local private network, connect to Test-Networks or the Main-Net, while with Ganache you get an in-memory blockchain simulation.

C.

with Ganache you get a real blockchain node where you can connect to the Test-Networks Rinkeby and Ropsten.

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.