Labour Day Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Question # 4

Consensus is reached:

A.

by the miner nodes which make sure that a transaction is valid.

B.

by every single node in the blockchain network executing the same transaction.

C.

by a cryptographic secure signature algorithm called ECDSA which makes sure that cheating is impossible.

Full Access
Question # 5

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.

Full Access
Question # 6

Address.Call vs. Address.Delegatecall:

A.

Address.call() is used for calling other contracts using the scope of the called contract in terms of storage variables. Address.delegatecall() is used for libraries, which uses the storage variables of the contract who called. Libraries are a great way to re-use already existing code and delegatecall can make sure that no storage is used from the library, instead it looks like the code is directly copied into the calling contract.

B.

Address.delegatecall() is used for calling other contracts using the scope of the called contract in terms of storage variables. Address.call() is used for libraries, which uses the storage variables of the contract who called. Libraries are a great way to re-use already existing code and call() can make sure that no storage is used from the library, instead it looks like the code is directly copied into the calling contract.

Full Access
Question # 7

Variables of the type address store:

A.

a 20 bytes value

B.

a 32 bytes value

C.

a string

D.

a 20 characters long hex number

Full Access
Question # 8

Solidity gets compiled:

A.

to bytecode that can't be understood by humans.

B.

to bytecodes which are essentially opcodes running instruction by instruction.

Full Access
Question # 9

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)

Full Access
Question # 10

Address.send():

A.

will cascade exceptions and address.transfer() will return a false on error.

B.

will return false on error while address.transfer() will cascade transactions.

Full Access
Question # 11

View and Pure Functions:

A.

can only be accessed during calls.

B.

can be accessed during transactions and calls.

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

When using assert to check invariants and it evaluates to false:

A.

all gas is consumed.

B.

all remaining gas is returned.

Full Access
Question # 14

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.

Full Access
Question # 15

The JSON-RPC Protocol:

A.

is used to communicate between blockchain nodes.

B.

is used to ensure safe communication between miners.

C.

is a mean of dumping the blockchain data in a so-called consensus export.

D.

is used to communicate between the blockchain node and externally running applications.

Full Access