Labour Day Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

Blockchain CBDE BTA Certified Blockchain Developer - Ethereum Exam Practice Test

Page: 1 / 10
Total 102 questions

BTA Certified Blockchain Developer - Ethereum Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$42  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36.75  $104.99
Question 1

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

Options:

A.

all gas is consumed

B.

all remaining gas is returned.

Question 2

When defining a new datatype:

Options:

A.

its best to use a contract with public storage variables, so it can be used like a class.

B.

it's best to use a struct, which is cheaper than deploying a new contract.

C.

it's not possible to generate new datatypes in Solidity.

Question 3

Why is it important to follow the same Interfaces?

Options:

A.

Websites that try to interface with the Token would have to know the exact ABI. It is upfront clear how the interaction has to be with the standard Interfaces.

B.

The Ethereum Foundation can easily validate the Tokens and approve any audits by following the standard interface.

Question 4

On a consortium network:

Options:

A.

everybody can become a miner, everybody can send transactions and everything is public.

B.

usually only a few selected nodes can be miners. Transactions can be further limited.

Question 5

Loops in Solidity:

Options:

A.

are a great way to circumvent gas requirements, because a loop will only consume gas once.

B.

are dangerous when used with data structures that grow, such as arrays or mapping, because it is hard to estimate the gas requirements.

C.

should be avoided where possible, because of unknown side-effects on the gas requirements.

Question 6

All low-level functions on the address, so address.send(), address.call.valueQQ, address.callcode and address.delegatecall:

Options:

A.

are interrupting execution on error, because they throw an exception.

B.

continuing execution on error silently, which is the reason why they are so dangerous.

C.

returning Booleans to indicate an error during execution.

D.

.send() throws an exception, while the other functions are returning Booleans during execution to indicate an error.

Question 7

Having a bug-bounty program early on:

Options:

A.

can help to engage the community in testing your smart contracts and therefore help to find bugs early.

B.

might be a burden as it is an administrative overhead mainly.

C.

is completely useless. Who wants to test beta-ware software? It’s better to start with the bug-bounty program after the contract is released on the main-net.

Question 8

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.

Question 9

GETH:

Options:

A.

is the reference implementation of the Ethereum protocol and every other node implementation internally uses the closed-source from Geth.

B.

is the library that is used for the blockchain node Go-Ethereum. It is also used by Parity is parts, because it's closed source.

C.

is one of the many blockchain nodes that implement the Ethereum Protocol. It's open source and everyone can contribute.

Question 10

To store almost all data in the Ethereum Blockchain:

Options:

A.

a Linked List with pointers to previous blocks hashes is used.

B.

a Merkle Patricia Trie is used.

C.

a Radix Trie is used because the Merkle Patricia Trie is too inefficient.

Question 11

When considering smart contracts and the blockchain it's good:

Options:

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.

Question 12

Public Keys vs. Private Keys. Which statement is true?

Options:

A.

The Public Key is for Signing Transactions, the Private Key must be given out to verify the signature.

B.

The Private Key signs transactions, the Public Key can verify the signature.

C.

The Private Key is to generate a Public Key. The Public Key can sign transactions, the address is here to verify the transactions.

Question 13

Solidity files:

Options:

A.

can't be split across multiple files, everything should be in one single file.

B.

can be split across multiple files, but every contract must be in a file with the same name as the contract itself.

C.

can be spread across multiple files. To import all contract from a file you can use "import 'myfile.sol'. To import Contract MyContract from myfile.sol you use "import {MyContract as SomeContract} from 'myfile.sol';".

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

Question 15

Events:

Options:

A.

are stored on chain and are a great way to get a return value when a contract calls another contract.

B.

are stored in something like a side-chain and cannot be accessed by contracts.

C.

are used primarily for debugging exceptions in solidity.

Page: 1 / 10
Total 102 questions