Winter Special Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

CBDE Sample Questions Answers

Questions 4

Solidity gets compiled:

Options:

A.

to bytecode that can't be understood by humans.

B.

to bytecodes which are essentially opcodes running instruction by instruction.

Buy Now
Questions 5

A Mapping consists of keys and value.

Options:

A.

the Keys can be anything, but the value can't be another mapping or struct.

B.

the Value can be anything, but the key cannot be another mapping, struct, integer or Boolean.

C.

the value can be anything, but the key cannot be another mapping, struct, enum or dynamically sized array.

Buy Now
Questions 6

It's not possible to use inheritance from multiple sources in Solidity.

Options:

A.

True

B.

False

Buy Now
Questions 7

Address.Call vs. Address.Delegatecall:

Options:

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.

Buy Now
Questions 8

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.

Buy Now
Questions 9

Hashing Mining uses:

Options:

A.

Keccack256 while internally to hash values it's easy to use the Dagger-Hashimoto to create a meaningful hash.

B.

the Dagger-Hashimoto hashing while internally the EVM uses SHA256 which is an alias for Keccack256.

C.

the Dagger-Hashimoto hashing while internally the EVM uses Keccack256 which is almost similar to SHA256, but has a different padding so produces different hashes.

Buy Now
Questions 10

Address.call.value():

Options:

A.

sends the gas stipend of 2300 gas and returns a false on error.

B.

sends all the gas along and cascades exceptions.

C.

sends all the gas along and returns a false on error.

D.

sends the gas stipend of 2300 gas and cascades exceptions.

Buy Now
Questions 11

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.

Buy Now
Questions 12

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.

Buy Now
Questions 13

When a new block is mined:

Options:

A.

a list of transactions as well as uncles is incorporated in the block. All gas that is used during those transactions is added to the miners' balance. Also, the block reward is added to the miner. Then the same transactions are run again by every participating node in the network to achieve consensus.

B.

a list of transactions is incorporated in that block. Gas used during the execution is attached to the executing contracts while the block reward is automatically spread across the mining pool to ensure a fair spread. Consensus is reached by a special form of hash code.

Buy Now
Questions 14

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.

Buy Now
Questions 15

Smart Contracts:

Options:

A.

are always living on the same address, because the blockchain is deterministic. So, one account can always have one smart contract.

B.

are having the same address as the EOA.

C.

are sitting on their own address. The Address is created from the nonce and the EOA address and could be known in advance before deploying the smart contract.

D.

the address of the smart contract is a random address which gets generated by the miner who mines the contract-creation transaction.

Buy Now
Questions 16

Function and Variable Visibility:

Options:

A.

a function that is marked as internal cannot be called by other contracts, unless the function is used by a derived contract. Private Functions cannot be called by any other outside contract and public variables are generating automatically a getter function.

B.

a function that is marked as external can never be called internally. Private functions can also be called by derived contracts using inheritance. Private variables are accessible also in derived contracts.

Buy Now
Questions 17

The Fallback function:

Options:

A.

cannot receive Ether, not even by adding the payable modifier.

B.

can contain as much logic as you want, but it’s better to keep it short and not exceed the gas stipend of 2300 gas.

C.

can be used to avoid receiving ether.

Buy Now
Questions 18

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.

Buy Now
Questions 19

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';".

Buy Now
Questions 20

Variables of the type address store:

Options:

A.

a 20 bytes value

B.

a 32 bytes value

C.

a string

D.

a 20 characters long hex number

Buy Now
Questions 21

Importing from GitHub:

Options:

A.

works across all compilers and platforms the same way.

B.

is generally possible, but currently works only in Remix, but doesn't work in Truffle.

Buy Now
Questions 22

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.

Buy Now
Questions 23

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.

Buy Now
Questions 24

A version pragma is a great way to make it clear:

Options:

A.

for which compiler version a smart contract was developed for. It helps to avoid breaking changes.

B.

for which blockchain a smart contract was developed for. It helps to avoid confusion with beta-customers.

C.

for which blockchain node a smart contract was developed for. It helps to avoid mixing up different versions of go-ethereum.

Buy Now
Questions 25

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.

Buy Now
Questions 26

The difference between address.send() and address.transfer() is:

Options:

A.

.send returns a Boolean and .transfer throws an exception on error. Both just forward the gasstipend of 2300 gas and are considered safe against re-entrancy.

B.

.send throws an exception and .transfer returns a Boolean on error. Both just forward the gasstipend of 2300 gas and considered safe against re-entrancy

C.

.send returns a Boolean and .transfer throws an exception on error. .send is considered dangerous, because it sends all gas along, while .transfer only sends the gas stipend of 2300 gas along

D.

.send and .transfer are both considered low-level functions which are dangerous, because they send all gas along. It's better to use address.call.value()() to control the gas-amount.

Buy Now
Questions 27

The following are value types in Solidity.

Options:

A.

Integer, Boolean, Struct, Mapping and Enum.

B.

Integer, Boolean, Enum and Addresses.

C.

Integer, Boolean, Structs and Fixed Point Numbers.

Buy Now
Questions 28

Block Timestamp:

Options:

A.

the timestamp is based on the time zone of the miner, that is why it changes the difficulty continuously to reflect network latency.

B.

the timestamp can't be influenced by a miner and is generally considered safe to be used for randomness on the blockchain.

C.

the timestamp can be influenced by a miner to a certain degree but it's always independent from the time-zone.

Buy Now
Questions 29

To Iterate through a mapping, you:

Options:

A.

can use the length parameter of the mapping.

B.

you need an external helper variable.

C.

you cannot iterate any mapping to make the overall language design more safe.

Buy Now
Questions 30

Truffle boxes are a great way:

Options:

A.

to contribute to the box community which is the distributed file system for truffle.

B.

to start with a pre-configured environment for most web-development needs.

C.

to use tools that makes boxing of Dapps for different platforms very easy.

Buy Now
Exam Code: CBDE
Exam Name: BTA Certified Blockchain Developer - Ethereum
Last Update: Nov 21, 2024
Questions: 102
$64  $159.99
$48  $119.99
$40  $99.99
buy now CBDE